/* =====================================================================
   Ashford Publishing House — Static theme
   Recreates the React/Tailwind design system on top of Bootstrap 5.
   Color tokens mirror src/index.css (HSL -> HEX).
   ===================================================================== */

:root {
  --aph-primary: #004d70;        /* hsl(199 100% 22%)  navy/teal */
  --aph-primary-90: #004d70e6;
  --aph-accent: #004d70;         /* same as primary in light theme */
  --aph-foreground: #12232b;     /* hsl(199 40% 12%) near-black */
  --aph-background: #f6f8f9;      /* hsl(199 15% 97%) */
  --aph-card: #ffffff;
  --aph-secondary: #eef1f3;      /* hsl(199 15% 94%) */
  --aph-muted: #e8ebec;          /* hsl(199 10% 92%) */
  --aph-muted-foreground: #62676a; /* hsl(199 15% 40%) */
  --aph-border: #dcdfe3;         /* hsl(210 15% 88%) */
  --aph-hero-start: #f0f3f5;     /* hsl(199 20% 95%) */
  --aph-hero-end: #dbe1e4;       /* hsl(199 15% 88%) */

  /* Bootstrap variable overrides */
  --bs-primary: #004d70;
  --bs-primary-rgb: 0, 77, 112;
  --bs-body-color: #12232b;
  --bs-body-bg: #f6f8f9;
  --bs-body-font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --bs-link-color: #004d70;
  --bs-link-hover-color: #003954;
  --bs-border-color: #dcdfe3;
}

/* ---------- Base ---------- */
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  color: var(--aph-foreground);
  background-color: var(--aph-background);
  -webkit-font-smoothing: antialiased;
}

.font-display,
h1, h2, h3, h4, h5, h6,
.display-font {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-body { font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif; }

/* container matches Tailwind: centered, max 1400px, 2rem padding */
.container {
  max-width: 1400px;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (max-width: 575.98px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---------- Color helpers ---------- */
.text-accent { color: var(--aph-accent) !important; }
.text-navy { color: var(--aph-primary) !important; }
.text-foreground { color: var(--aph-foreground) !important; }
.text-muted-foreground { color: var(--aph-muted-foreground) !important; }
.bg-background { background-color: var(--aph-background) !important; }
.bg-secondary-soft { background-color: var(--aph-secondary) !important; }
.bg-card { background-color: var(--aph-card) !important; }
.bg-navy { background-color: var(--aph-primary) !important; }
.bg-primary-navy { background-color: var(--aph-primary) !important; color: #fff; }

/* Eyebrow / section label */
.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aph-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Section spacing utilities (matches py-16 / md:py-24) */
.section { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section { padding-top: 6rem; padding-bottom: 6rem; } }

.section-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .section-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; } }

/* ---------- Buttons ---------- */
.aph-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background-color: var(--aph-primary);
  color: #fff;
  border: 2px solid var(--aph-primary);
  border-radius: 4px;
  transition: background-color .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.aph-btn-primary:hover { background-color: #003a55; border-color: #003a55; color: #fff; }

.aph-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background-color: transparent;
  color: var(--aph-foreground);
  border: 2px solid var(--aph-primary);
  border-radius: 4px;
  transition: background-color .2s, color .2s;
  text-decoration: none;
}
.aph-btn-outline:hover { background-color: var(--aph-primary); color: #fff; }

/* Light button used on dark/primary backgrounds */
.aph-btn-light {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 1rem 2.5rem;
  background-color: #fff; color: var(--aph-primary); border: 2px solid #fff;
  border-radius: 4px; transition: opacity .2s; text-decoration: none;
}
.aph-btn-light:hover { opacity: 0.9; color: var(--aph-primary); }

.aph-btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 1rem 2.5rem;
  background-color: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3);
  border-radius: 4px; transition: border-color .2s; text-decoration: none;
}
.aph-btn-outline-light:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* ---------- Navbar ---------- */
.aph-navbar {
  background-color: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--aph-border);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.aph-logo { height: 2.5rem; width: auto; }
@media (min-width: 768px) { .aph-logo { height: 3rem; } }

.aph-navbar .nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--aph-muted-foreground);
  padding: 0.5rem 0.75rem;
  transition: color .2s;
}
.aph-navbar .nav-link:hover { color: var(--aph-foreground); }
.aph-navbar .nav-link.active { color: var(--aph-accent); }

.aph-navbar .dropdown-menu {
  border: 1px solid var(--aph-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  padding: 0.5rem 0;
}
.aph-navbar .dropdown-item {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--aph-muted-foreground);
  padding: 0.6rem 1rem;
}
.aph-navbar .dropdown-item:hover { color: var(--aph-foreground); background-color: var(--aph-muted); }
.aph-navbar .dropdown-item.active { color: var(--aph-accent); background-color: rgba(0,77,112,.05); }

/* ---------- Hero ---------- */
.hero-gradient {
  background: linear-gradient(180deg, var(--aph-hero-start), var(--aph-hero-end));
}
.home-hero { position: relative; overflow: hidden; min-height: 500px; }
@media (min-width: 768px) { .home-hero { min-height: 600px; } }
.home-hero__bg { position: absolute; inset: 0; }
.home-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right; }
.home-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--aph-background) 0%, rgba(246,248,249,.8) 45%, transparent 100%);
}

/* ---------- Cards ---------- */
.aph-card {
  background-color: var(--aph-card);
  border: 1px solid var(--aph-border);
  border-radius: 0.5rem;
  transition: box-shadow .3s, border-color .3s;
}
.aph-card.hoverable:hover { box-shadow: 0 10px 25px rgba(0,0,0,.08); border-color: rgba(0,77,112,.3); }

.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background-color: rgba(0,77,112,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--aph-accent);
}
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.icon-circle {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background-color: rgba(0,77,112,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--aph-accent); flex-shrink: 0;
}

/* image helpers */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.book-cover { aspect-ratio: 2/3; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.book-cover:hover img { transform: scale(1.05); }
.client-photo { aspect-ratio: 3/4; border-radius: 0.5rem; overflow: hidden; }
.client-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.client-photo:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.aph-footer { background-color: var(--aph-primary); color: #fff; }
.aph-footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.aph-footer a:hover { color: #fff; }
.aph-footer .footer-logo { height: 2.5rem; filter: brightness(0) invert(1); }
.aph-footer .footer-heading {
  font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
.aph-input {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--aph-border);
  border-radius: 4px; background-color: var(--aph-background);
  color: var(--aph-foreground); font-family: 'Source Sans 3', sans-serif; font-size: 0.875rem;
}
.aph-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,77,112,.4); }
.aph-label { font-size: 0.875rem; font-weight: 600; color: var(--aph-foreground); display: block; margin-bottom: 0.4rem; }

/* ---------- Misc ---------- */
.lead-text { font-size: 1.125rem; color: var(--aph-muted-foreground); line-height: 1.7; }
.text-balance { text-wrap: balance; }
a { color: var(--aph-accent); }
.process-step { font-family: 'Playfair Display', serif; font-size: 1.875rem; font-weight: 700; color: var(--aph-accent); }
.faq-toggle { cursor: pointer; }
.faq-toggle .chevron { transition: transform .2s; }
.faq-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
