/* ==========================================================================
   EstaHub — Style Guide
   Palette:  Navy #0F1B2D / Charcoal #1C2331 / Cream #F7F5F1 / Gold #B08D57
   Type:     Playfair Display (headings) + Inter (body)
   ========================================================================== */

:root {
  --navy: #0F1B2D;
  --navy-light: #16273D;
  --charcoal: #1C1F26;
  --cream: #F7F5F1;
  --white: #FFFFFF;
  --gold: #B08D57;
  --gold-light: #C9A876;
  --muted: #5B6472;
  --border: #E4E0D8;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-soft: 0 10px 40px rgba(15, 27, 45, 0.08);
  --shadow-lift: 0 24px 60px rgba(15, 27, 45, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--muted); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream); }

.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* Outline buttons need to flip to white on dark (navy) backgrounds, or the
   navy border/text disappears against the navy section behind them. */
.hero .btn-outline,
.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.hero .btn-outline:hover,
.cta-band .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0;
}
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15,27,45,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.5rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.brand-tagline { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--gold); text-transform: uppercase; }

.main-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a { color: var(--charcoal); position: relative; }
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.header-phone:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15,27,45,0.94) 0%, rgba(15,27,45,0.86) 45%, rgba(176,141,87,0.55) 130%),
    radial-gradient(circle at 80% 20%, rgba(176,141,87,0.35), transparent 55%),
    var(--navy);
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, transparent);
}

.hero-inner { max-width: 780px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 620px; }
.trust-line { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 1.5rem; max-width: 560px; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 2.4rem 0; border-bottom: 1px solid var(--border); }
.trust-strip-inner { text-align: center; }
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  flex-wrap: wrap;
}
.trust-dot { color: var(--gold); }
.trust-caption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Intro ---------- */
.intro-block { max-width: 760px; }
.icon-row { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.icon-row li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }

.placeholder-note {
  font-size: 0.8rem;
  color: #A0733D;
  background: #FBF3E7;
  border: 1px dashed #E3C298;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-top: 1.5rem;
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row-rev { grid-template-columns: 140px 1fr; }
.feature-media {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-num { font-family: var(--font-head); color: var(--gold-light); font-size: 1.6rem; font-weight: 700; }
.feature-text h3 { margin-bottom: 0.4rem; }
.feature-text p { margin: 0; max-width: 640px; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card-icon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-icon:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-icon h4 { margin-bottom: 0.5rem; }
.card-icon p { margin: 0; font-size: 0.92rem; }

.split-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.split-card h3 { color: var(--gold); text-transform: uppercase; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 1rem; }
.split-card p { font-size: 1.05rem; color: var(--charcoal); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.price-card .price { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin: 0.5rem 0 1rem; }
.price-card .price span { font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }

.price-card-featured {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 3.2rem 2.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transform: scale(1.04);
  border: 1px solid var(--navy);
}
.price-card-featured h3,
.price-card-featured .price,
.price-card-featured .price span { color: var(--white); }
.price-card-featured .check-list li { color: rgba(255,255,255,0.9); }
.price-card-featured .check-list li::before { background: var(--gold-light); }

.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fine-print { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 2rem; }

/* ---------- CTA bands ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.audit-list {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 1.5rem auto 2rem;
  text-align: left;
}
.audit-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.85);
}
.audit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
}
.cta-band-final { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.footer-email { margin-top: 1.5rem; font-size: 1rem; }
.footer-email a { color: var(--gold-light); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonial-carousel {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
}
.testimonial-slide .quote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  font-style: italic;
}
.quote-name { font-size: 0.9rem; color: var(--gold); font-weight: 600; }

/* ---------- FAQ Accordion ---------- */
.accordion { max-width: 780px; margin: 2.5rem auto 0; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.3rem 2rem 1.3rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.2rem;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-trigger::after { content: "\2212"; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel p { padding-bottom: 1.3rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 4.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-delivered { color: var(--gold-light) !important; }

.footer-links h4, .footer-contact h4 { color: var(--white); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-links a { display: block; margin-bottom: 0.6rem; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact a { display: block; margin-bottom: 0.6rem; color: rgba(255,255,255,0.85); font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.contact-form input, .contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form button { margin-top: 0.3rem; align-self: flex-start; }
.form-status { font-size: 0.85rem; color: var(--gold-light); min-height: 1.2em; }

.footer-bottom { padding: 1.5rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row, .feature-row-rev { grid-template-columns: 70px 1fr; gap: 1.2rem; }
  .feature-media { width: 60px; height: 60px; }
  .feature-num { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 6.5rem 0 4rem; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
}
