/* ===== ATLAS PIECE SHARED STYLESHEET ===== */
/* Premium managed virtual assistant platform */
/* Color system: dark background (#0F0F0F), ivory text (#FFFDFA), copper accents (#C65A2E) */

/* ===== CSS VARIABLES & RESET ===== */
:root {
  --dark: #0F0F0F;
  --dark-mid: #1A1A1A;
  --dark-card: #222;
  --ivory: #FFFDFA;
  --warm-bg: #F7F5F0;
  --warm-bg-alt: #F0EDE6;
  --copper: #C65A2E;
  --copper-hover: #D4693F;
  --copper-light: rgba(198, 90, 46, 0.08);
  --seafoam: #7FAFAA;
  --seafoam-light: rgba(127, 175, 170, 0.1);
  --text-dark: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #888;
  --text-light: #FFFDFA;
  --text-light-muted: rgba(255, 253, 250, 0.6);
  --border-light: rgba(0, 0, 0, 0.07);
  --border-dark: rgba(255, 253, 250, 0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-pad: 120px;
  --max-w: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--ivory);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1rem;
  font-weight: 500;
}

.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

/* ===== CONTAINER & SECTION UTILITIES ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

.section {
  padding: var(--section-pad) 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--copper);
  color: var(--text-light);
}

.btn--primary:hover {
  background: var(--copper-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(198, 90, 46, 0.3);
}

.btn--primary .arrow {
  transition: transform 0.3s ease;
}

.btn--primary:hover .arrow {
  transform: translateX(3px);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.btn--outline:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255, 253, 250, 0.2);
}

.btn--outline-light:hover {
  border-color: rgba(255, 253, 250, 0.5);
  background: rgba(255, 253, 250, 0.04);
}

.btn--large {
  padding: 18px 40px;
  font-size: 0.92rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(24px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 253, 250, 0.65);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav__links a:hover {
  color: var(--text-light);
}

.nav__cta {
  background: var(--copper) !important;
  color: var(--text-light) !important;
  padding: 10px 22px !important;
  border-radius: 5px;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  border: none !important;
  cursor: pointer;
}

.nav__cta:hover {
  background: var(--copper-hover) !important;
}

.nav__mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__mobile span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--dark-mid);
  border-top: 1px solid var(--border-dark);
  padding: 32px 0;
}

.trust-strip__grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-strip__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--seafoam);
  fill: none;
  stroke-width: 1.5;
}

.trust-strip__text {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 253, 250, 0.75);
  letter-spacing: 0.01em;
}

.trust-strip__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 253, 250, 0.1);
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  background: var(--dark);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
}

.page-hero .overline {
  color: var(--seafoam);
  margin-bottom: 16px;
}

/* ===== CARDS & GRID LAYOUTS ===== */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
}

.card--dark {
  background: var(--dark-card);
  border: 1px solid rgba(255, 253, 250, 0.08);
  color: var(--text-light);
}

.card--dark h3,
.card--dark h4 {
  color: var(--text-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== FAQ ACCORDION STYLES ===== */
.accordion {
  list-style: none;
}

.accordion__item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  transition: all 0.3s ease;
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  width: 100%;
  padding: 0;
  text-align: left;
  transition: all 0.3s ease;
}

.accordion__header:hover {
  color: var(--copper);
}

.accordion__header h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.accordion__toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--copper);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion__item.active .accordion__toggle {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-top: 0;
}

.accordion__item.active .accordion__content {
  max-height: 500px;
  padding-top: 16px;
}

.accordion__text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  transition: all 0.3s ease;
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-light);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-row input,
.form-row select {
  width: 100%;
}

.form-helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  color: #D32F2F;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-success {
  color: var(--seafoam);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 253, 250, 0.45);
  padding: 64px 0 36px;
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  height: 30px;
  width: auto;
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 260px;
  font-weight: 300;
  margin-top: 14px;
}

.footer__heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.75);
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 253, 250, 0.4);
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer__links a:hover {
  color: rgba(255, 253, 250, 0.8);
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ===== LEGAL PAGE STYLES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--text-body);
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content p + p {
  margin-top: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 20px 0 20px 24px;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.legal-content a {
  color: var(--copper);
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: var(--copper-hover);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-success {
  background: var(--seafoam-light);
  border: 1px solid var(--seafoam);
  border-radius: 6px;
  padding: 16px 20px;
  color: #2d5f5c;
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: none;
}

.contact-success.show {
  display: block;
}

.contact-error {
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 6px;
  padding: 16px 20px;
  color: #D32F2F;
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: none;
}

.contact-error.show {
  display: block;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger .fade-in:nth-child(1) {
  transition-delay: 0s;
}

.stagger .fade-in:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger .fade-in:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger .fade-in:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger .fade-in:nth-child(5) {
  transition-delay: 0.32s;
}

.stagger .fade-in:nth-child(6) {
  transition-delay: 0.4s;
}

.parallax-img {
  transition: transform 0.1s linear;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--text-light);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 16px;
}

.mt-2 {
  margin-top: 32px;
}

.mt-3 {
  margin-top: 48px;
}

.mb-1 {
  margin-bottom: 16px;
}

.mb-2 {
  margin-bottom: 32px;
}

.mb-3 {
  margin-bottom: 48px;
}

.flex {
  display: flex;
  gap: 16px;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__mobile {
    display: block;
  }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 28px 28px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .legal-content {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .page-hero {
    padding: 100px 0 50px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .section {
    padding: 60px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .accordion__header h3 {
    font-size: 0.95rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }

  .legal-content h3 {
    font-size: 1rem;
  }

  .btn--large {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  .trust-strip__divider {
    display: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav,
  .footer,
  .trust-strip,
  .page-hero {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }

  .legal-content {
    max-width: 100%;
  }
}
