/* ============================================
   style.css — SHARED BY EVERY PAGE
   Global base, hero, top tabs, dropdown,
   "Ready to get started?" banner, footer.

   Page-specific styles live in:
     home.css          home page grid
     consult-form.css  consult request form (home page)
     about.css         about + testimonials pages
     services.css      remote / in-person / in-home / consult pages
     contact.css       contact page
============================================ */

/* ============================================
   GLOBAL
============================================ */
* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, corbel;
  margin: 0;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

a { text-decoration: none; }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  background: #c6b7e2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.3rem 1.5rem;
  text-align: center;
  min-height: 1.6in;   /* baseline height for every page (home is taller, see home.css) */
}

/* faint white logo peeking in from the right edge (sits under .hero-content) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/logo-white-mark-nob.png') no-repeat right -70px center / 300px auto;
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero::before {
    background-size: 200px auto;
    background-position: right -55px center;
  }
}

body:not(.home) .hero {
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1; /* fills the hero height */
}

.hero-content h1 {
  margin-bottom: 0.25rem; /* title closer to subtitle */
  font-size: 2.2rem;
}

.hero-content p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* subtitle only shows on the home page */
body:not(.home) .hero-content p {
  display: none;
}

@media (max-width: 700px) {
  .hero-content h1 {
    font-size: 1.8rem;  /* smaller title on all pages */
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   TOP TABS
============================================ */
.top-tabs {
  margin-top: auto;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  border-top: 1px solid rgba(75,63,92,0.15);
  padding-top: 1.1rem;
  flex-wrap: wrap;
}

.top-tabs a, .top-tabs .tab-dropdown > a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5f5648;
  display: inline-block;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.top-tabs a:hover, .top-tabs .tab-dropdown > a:hover,
.top-tabs .tab-dropdown > a.tapped {
  color: #4b3f5c;
  transform: translateY(-3px);
}

.top-tabs a.active {
  font-weight: 600;
  color: #4b3f5c;
}

/* highlight the "About" / "Services" label when the current page is inside it */
.top-tabs .tab-dropdown:has(.dropdown-menu a.active) > a {
  color: #4b3f5c;
}

@media (max-width: 500px) {
  .top-tabs { gap: 1rem; }
}

/* ============================================
   TABS DROPDOWN (About / Services)
============================================ */
.tab-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.4rem;
  background-color: #f2ede4;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.tab-dropdown:hover .dropdown-menu,
.tab-dropdown:focus-within .dropdown-menu,
.tab-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: #5f5648;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #ddd2eb;
  color: #4b3f5c;
}

@media (max-width: 500px) {
  .dropdown-menu { min-width: 160px; }
}

/* ============================================
   "READY TO GET STARTED?" BANNER + CTA BUTTON
============================================ */
.home-cta {
  position: relative;
  background: #c6b7e2; /* same lilac as hero */
  padding: 3rem 1.5rem;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
}

/* Band, top to bottom: T.S. Eliot quote, thin line, "Ready to get started?", button */
.cta-stack {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto;
}
.home-cta .cta-stack h2,
.home-cta .cta-stack h3 {
  margin: 1.4rem 0 1.1rem;
  font-size: 1.6rem;
  font-weight: 500;
}
.cta-quote {
  margin: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(75, 63, 92, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4b3f5c;
}
.cta-quote p { margin: 0; }
.cta-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, corbel;
  font-size: 0.8rem;
  font-style: normal;
  color: #5f5648;
}
@media (max-width: 600px) {
  .cta-quote { font-size: 1rem; }
}

/* some pages use an h2 here, the services pages use an h3 */
.home-cta h2,
.home-cta h3 {
  position: relative;
  z-index: 2;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #4b3f5c;
}

/* CTA button — mirrors top tabs, with a sliding gradient */
.cta-tab {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #5f5648;
  background-color: #f2ede4; /* fallback color */
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  overflow: hidden;       /* keeps the animation inside the button */
  transition: transform 0.2s ease;
  background-image: linear-gradient(
    90deg,
    #dbc8a9 20%,
    #f2ede4 40%,
    #dbc8a9 60%
  );
  background-size: 200% 100%;
  animation: moveGradient 3s linear infinite;
}

.cta-tab:hover {
  transform: translateY(-1px);
  background-image: none;
  background-color: #dbc8a9; /* matches top tabs hover color */
}

@keyframes moveGradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   FOOTER
============================================ */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* small logo above the tagline + copyright */
footer::before {
  content: '';
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 0.4rem;
  background: url('../images/logo-mark-bold-purple.svg') no-repeat center / contain;
}

footer p { margin: 0; }

.footer-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #4b3f5c;
  margin-bottom: 0.2rem;
}