/* ============================================================
   ANANYA ENTERPRISES — design tokens
   ============================================================ */
:root {
  --ink: #101B2D;
  --ink-soft: #1C2C46;
  --paper: #FAF7F1;
  --paper-alt: #F1ECE1;
  --brass: #A9824C;
  --brass-dark: #8A6A3B;
  --slate: #4B5768;
  --slate-light: #7C8898;
  --line: #DCD4C4;
  --white: #FFFFFF;
  --error: #B3402A;
  --success: #2F6B4F;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1160px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.section-inner, .header-inner, .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 108px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--paper); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
  min-height: 38px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  max-width: 720px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass-dark);
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
}
.rule {
  width: 64px;
  height: 2px;
  background: var(--brass);
  border: none;
  margin: 28px 0;
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 60ch;
  color: var(--slate);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p { color: var(--slate-light); margin-top: 10px; font-size: 1.02rem; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 48px;
}
.about-copy p { font-size: 1.05rem; max-width: 62ch; }
.about-copy p + p { margin-top: 1.1em; }

/* BUSINESSES — ledger rows, not identical cards */
.ledger {
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row h3 {
  font-size: 1.25rem;
  border-left: 2px solid var(--brass);
  padding-left: 16px;
}
.ledger-row p {
  color: var(--slate);
  max-width: 58ch;
  padding-top: 2px;
}

/* WHY US */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-item {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-index {
  display: block;
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { font-size: 0.95rem; color: var(--slate-light); }

/* ============================================================
   ENQUIRY FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 48px;
}
.contact-head p { color: var(--slate-light); margin-top: 10px; }

.enquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 7px;
  font-weight: 500;
}
.field label span { color: var(--brass-dark); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brass);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-email {
  margin-top: 14px;
  font-size: 0.95rem;
}
.contact-email a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
/* ============================================================
   THANK-YOU PAGE
   ============================================================ */
.thanks-section { padding: 120px 0; }
.thanks-inner {
  max-width: 560px;
  text-align: left;
}
.thanks-inner h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.thanks-lede { font-size: 1.15rem; color: var(--ink); }
.thanks-inner .btn { margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #C9CEDA;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.footer-brand p { margin-top: 14px; max-width: 40ch; color: #A9B0C0; font-size: 0.95rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}
.footer-nav a { text-decoration: none; color: #C9CEDA; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--white); }

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.footer-actions .btn-ghost:hover { background: var(--white); color: var(--ink); }

.webmail-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
  color: #C9CEDA;
}
.webmail-link:hover, .webmail-link:focus-visible { color: var(--white); }

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8891A3;
}
.privacy-note { max-width: 46ch; }

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

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .hero { padding: 56px 0 56px; }
  .section { padding: 56px 0; }

  .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .enquiry-form { padding: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; }
}

@media (max-width: 400px) {
  .section-inner, .header-inner, .footer-inner { padding: 0 18px; }
  .brand-logo { width: 102px; height: 62px; }
}


/* Form submission status */
.form-status { min-height: 1.5em; margin: 0 0 12px; color: var(--slate); font-size: 0.92rem; }
.form-status:empty { display: none; }
.enquiry-form button:disabled { opacity: 0.65; cursor: wait; }
