/* =========================================================
   Compass Tax Center — shared stylesheet
   Palette: deep navy + metallic gold + warm cream
   ========================================================= */

:root {
  /* Brand palette: teal-blue #114D66, green #12521A, mist #D6E4EA, white + gold accent */
  --navy:        #114d66;   /* primary brand blue */
  --navy-800:    #0d3f54;
  --navy-700:    #17627f;
  --green:       #12521a;   /* secondary brand green */
  --green-700:   #1a6a27;
  --gold:        #c19a3e;   /* metallic gold (from logo) */
  --gold-deep:   #a67c1f;
  --gold-soft:   #e6d3a3;
  --cream:       #ffffff;   /* white page background (matches original site) */
  --cream-2:     #eef2f5;   /* very light grey — alternate sections */
  --ink:         #16272f;
  --muted:       #506069;
  --line:        #cdd9df;
  --white:       #ffffff;
  --shadow:      0 12px 34px rgba(17, 77, 102, 0.14);
  --shadow-sm:   0 4px 14px rgba(17, 77, 102, 0.09);
  --radius:      14px;
  --maxw:        1160px;
  --font-serif:  "Quattrocento", Georgia, "Times New Roman", serif;
  --font-sans:   "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: .3px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--green); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #dfe7f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold-soft); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c4d0de; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .3px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* Primary button = brand teal (matches original site). Named "gold" for legacy markup. */
.btn--gold { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(17,77,102,.26); }
.btn--gold:hover { background: var(--navy-700); color: #fff; }
/* On the dark hero, the primary button is white so it stands out over the teal photo */
.hero .btn--gold { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(0,0,0,.20); }
.hero .btn--gold:hover { background: var(--cream-2); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0; min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 68px; width: auto; }
.brand-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.28rem;
  color: var(--navy); line-height: 1.05; letter-spacing: .4px;
}
.brand-name span { display: block; font-family: var(--font-sans); font-size: .62rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-deep); }

/* Logo anchors the left, Contact button anchors the right, menu links sit centered between them */
.nav > nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: 1.2px; text-decoration: none;
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); border-bottom-color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
/* "Contact Us" pill button sitting at the far right of the header for balance */
.nav-contact { padding: 11px 26px; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Credential badge (EA seal, framed) ---------- */
.credential {
  display: inline-flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 26px; box-shadow: var(--shadow-sm); text-align: left;
}
.credential img { height: 46px; width: auto; display: block; flex: none; }
.credential .cred-divider { width: 1px; align-self: stretch; background: var(--line); }
.credential .cred-text b {
  display: block; font-family: var(--font-serif); color: var(--navy);
  font-size: 1rem; line-height: 1.15; font-weight: 700;
}
.credential .cred-text span { display: block; font-size: .82rem; color: var(--muted); margin-top: 3px; max-width: 30ch; }
@media (max-width: 520px) {
  .credential { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
  .credential .cred-divider { display: none; }
  .credential .cred-text span { margin-left: auto; margin-right: auto; }
}

/* ---------- Legal banner + title ---------- */
.legal-banner img { display: block; width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; object-position: center top; }
.legal-title { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 30px 0; text-align: center; }
.legal-title h1 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Legal document ---------- */
.legal-doc h2 { font-size: 1.5rem; margin-top: 6px; }
.legal-doc h3 { font-size: 1.12rem; color: var(--navy); margin: 26px 0 6px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }

/* ---------- Back bar (service detail pages) ---------- */
.backbar { background: #fff; border-bottom: 1px solid var(--line); }
.backbar .container { padding: 12px 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .8px; text-decoration: none;
}
.back-link:hover { color: var(--green); }
.back-link svg { display: block; }
.backbar--bottom { background: var(--cream-2); border-bottom: 0; border-top: 1px solid var(--line); }
.backbar--bottom .container { padding: 22px 0; }
.backbar--bottom .back-link { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #eaf1fa;
  overflow: hidden;
}
/* Fallback / base scenic background photo (set via --hero-img on the section) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, url('hero3.jpg'));
  background-size: cover; background-position: center 40%;
  pointer-events: none;
}
/* Rotating slideshow layers (crossfade between several home photos) */
.hero-slides { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center 40%;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
/* Light wash — just enough for text legibility while letting the photos stay vivid */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(6,32,44,.14) 0%, rgba(6,32,44,.20) 55%, rgba(6,32,44,.42) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 3; padding-top: 118px; padding-bottom: 118px; }
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.hero .kicker { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero p.lead { color: #eef4fb; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero .btn-row { margin-top: 30px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__body { padding: 26px; }
.card__img { aspect-ratio: 16/11; width: 100%; object-fit: cover; }

/* Split feature blocks (the two home blocks) */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature-block.reverse .feature-block__media { order: 2; }
.feature-block__media { min-height: 320px; background: var(--cream-2); }
.feature-block__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-block__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }

/* Service icon tiles */
.service {
  text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service img { height: 150px; width: auto; max-width: 100%; margin: 0 auto 20px; object-fit: contain; }
.service h3 { font-size: 1.45rem; margin-bottom: 10px; }
.service p { font-size: .98rem; color: var(--muted); margin: 0; }

/* Photo-topped service cards (image covers the top of the card) */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--cream-2); }
.svc__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { color: var(--navy); font-size: 1.42rem; line-height: 1.1; margin: 0 0 10px; }
.svc__body p { font-size: .95rem; color: var(--muted); margin: 0 0 18px; }
/* "Learn More" button pinned to the bottom of each card so they line up across the row */
.svc__more { margin-top: auto; align-self: flex-start; padding: 10px 22px; font-size: .8rem; }
@media (max-width: 1160px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .svc-grid { grid-template-columns: 1fr; } .svc__img { aspect-ratio: 16 / 9; } }

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.trust .stat { padding: 12px; }
.trust .stat b { font-family: var(--font-serif); font-size: 2.3rem; color: var(--gold-soft); display: block; line-height: 1; }
.trust .stat span { font-size: .9rem; color: #c4d0de; }

/* ---------- Pricing tables ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table caption { text-align: left; font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 12px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .92rem; letter-spacing: .3px; }
.price-table td.price { font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-note { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Plan cards */
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .tag { align-self: flex-start; background: var(--gold-soft); color: var(--navy); font-size: .72rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.plan h3 { margin-bottom: 6px; }
.plan .plan-price { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); margin: 4px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: .96rem; border-bottom: 1px solid var(--cream-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--gold-deep); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-answer { padding: 18px 24px 24px; color: var(--muted); }

/* ---------- Reviews ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.review .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 1.1rem; }
.review blockquote { margin: 0 0 16px; font-size: 1.08rem; color: var(--ink); font-style: italic; }
.review .who { font-weight: 700; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { color: var(--gold-deep); flex: 0 0 24px; }
.info-list b { display: block; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-status.ok { display: block; background: #e6f4ea; color: #1e5631; border: 1px solid #b7dfc2; }
.form-status.err { display: block; background: #fdecea; color: #8a1c13; border: 1px solid #f5c6c0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #eaf1fa; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after {
  content:""; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='none' stroke='%23c19a3e' stroke-width='1' opacity='0.1'%3E%3Ccircle cx='150' cy='150' r='120'/%3E%3Ccircle cx='150' cy='150' r='80'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right -40px top -40px; pointer-events:none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #c4d0de; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--gold-soft); margin-bottom: 14px; letter-spacing: .5px; }
.breadcrumb a { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0b3244; color: #b9ccd4; padding: 60px 0 26px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.site-footer a { color: #b9c6d6; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 92px; width: 92px; object-fit: contain; background: #faf7f0; border-radius: 50%; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.22); margin-bottom: 16px; }
.footer-wordmark { font-family: var(--font-serif); color: #fff; font-size: 1.6rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: #93a4b8; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border: 1px solid #1c5470; border-radius: 50%; display: grid; place-items: center; color: #cdd9e8; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #16506a; margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8aa2ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.badge-strip { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.badge-strip img { height: 70px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; }
  .feature-block.reverse .feature-block__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  /* Keep the Contact Us button visible on phones (a bit smaller), next to the menu icon */
  .nav-contact { display: inline-flex; padding: 9px 18px; font-size: .68rem; letter-spacing: 1px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-block__body { padding: 30px; }
}
