/* =========================================================
   ALTIUS MIND & WELLNESS — site styles
   Colors and fonts match the current Squarespace site.
   Change the values in :root to restyle the whole site.
   ========================================================= */

:root {
  --text: #3f4a49;          /* dark slate — body text */
  --slate: #495a58;         /* dark section background */
  --accent: #d4967d;        /* coral — buttons, links, wave */
  --logo-green: #2e3f3b;    /* dark green from the logo symbol */
  --white: #ffffff;

  --heading-font: "Petrona", Georgia, serif;  /* free stand-in for Squarespace's Adonis */
  --body-font: "Pontano Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: 4vw;                              /* side margins, same as Squarespace */
  --heading-size: clamp(2.5rem, 4.8vw, 4.2rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden things stay hidden, even buttons */

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 300;
  line-height: 1.24;
  margin: 0;
}

a { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;            /* menu stays at the top while scrolling */
  height: 132px;
  background: var(--white);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-nav { display: flex; gap: 25px; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
}
.site-nav a:hover { opacity: 0.7; }

.site-title {
  font-family: var(--heading-font);
  font-size: 33.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  display: flex; align-items: center; gap: 18px;
}
.site-title-text { max-width: 450px; }
.site-logo-link { margin-inline: auto; display: flex; flex-shrink: 0; }   /* equal space on both sides */
.site-logo { height: 80px; width: auto; flex-shrink: 0; }

.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.instagram { color: var(--text); display: flex; }

.menu-toggle {
  display: block;                 /* two-line menu button shows on every screen size */
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative; color: var(--text);
}
.menu-toggle .bar {
  position: absolute; left: 2px; right: 2px; height: 1.5px; background: currentColor;
  transition: transform 0.25s;
}
.menu-toggle .bar:nth-child(2) { top: 15px; }
.menu-toggle .bar:nth-child(3) { top: 24px; }
.menu-open .menu-toggle .bar:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.extra-open .menu-toggle .bar:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.extra-open .menu-toggle .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Small menu under the two-line button (computers) */
.header-right { position: relative; }
.site-nav .nav-extra { display: none; }        /* "Other Services" lives in the two-line menu on computers */
.extra-menu {
  position: absolute; top: calc(100% + 26px); right: 0;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px 26px; min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.extra-open .extra-menu { opacity: 1; visibility: visible; transform: none; }
.extra-menu a { color: var(--text); text-decoration: none; font-size: 17px; white-space: nowrap; }
.extra-menu a:hover, .extra-menu a.active { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 15.3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 35px;
  transition: opacity 0.2s;
}
.button:hover { opacity: 0.85; }
.button-wide { width: min(422px, 100%); text-align: center; }

/* ---------- Dark sections ---------- */
.dark { background: var(--slate); color: var(--white); text-align: center; }
.dark h2 { font-size: var(--heading-size); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - 132px);
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 72px;
  color: var(--white);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {               /* light tint so the white headline reads */
  content: ""; position: absolute; inset: 0; background: rgba(40, 40, 40, 0.18);
}
.hero h1 { position: relative; z-index: 1; font-size: calc(var(--heading-size) + 7px); }

/* ---------- 2. Services ---------- */
.services h2 { font-size: calc(var(--heading-size) + 1px); }
.services > .button { margin-top: 30px; padding: 15px 28px; font-size: 14px; }   /* Learn More: a bit lower and smaller */
.services {
  position: relative;
  padding: 46px var(--gutter) 190px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin: 70px 0 70px;
}
.service { color: var(--white); text-decoration: none; }
.service-icon { width: 243px; height: 243px; margin: 0 auto 30px; }
.service h3 { font-size: 22.4px; font-weight: 400; }
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
}

/* ---------- 3. Blog carousel ---------- */
.blog-section { padding: 40px var(--gutter) 0; }
.section-label { text-align: center; margin: 0 0 28px; }
.section-label, .section-label a {
  color: var(--accent); text-decoration: none;
  font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase;
}
.blog-section .section-label a { font-size: 20px; }   /* "Blogs" heading, bigger */
.carousel {
  --per-view: 3;                 /* posts visible at once */
  --gap: 32px;
  position: relative;
  padding: 0 64px;               /* room for the arrows */
}
.carousel-window { overflow: hidden; }
.carousel-track { display: flex; gap: var(--gap); transition: transform 0.8s ease; }
.carousel-track > * {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
}
.post-card {
  color: var(--text); text-decoration: none;
  display: flex; flex-direction: column;
}
.post-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  min-height: 2.5em;             /* keeps photos lined up when titles wrap */
  margin-bottom: 14px;
}
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card:hover img { opacity: 0.88; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--text);
  border: 1px solid var(--text); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
@media (max-width: 1000px) { .carousel { --per-view: 2; } }
@media (max-width: 600px) {
  .carousel { --per-view: 1; padding: 0 52px; }
  .carousel-arrow { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

.wave-divider { display: block; width: 100%; height: 90px; margin: 16px 0 0; }
@media (max-width: 860px) { .wave-divider { height: 40px; margin: 12px 0 0; } }

/* ---------- 4. Photo + tagline ---------- */
.tagline-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  padding: 16px var(--gutter) 46px;   /* less space above, closer to the blog */
  align-items: start;
}
.tagline-section img {
  width: 85%; justify-self: center;          /* photo slightly smaller than its column, centered */
  aspect-ratio: 639 / 647; object-fit: cover;
}
.tagline-section h2 {
  font-size: calc(var(--heading-size) - 4px);
  text-align: center;
  margin-top: 116px;
}

/* ---------- 5. Google reviews ---------- */
.reviews-section { padding: 20px var(--gutter) 90px; }
.review-card {
  margin: 0; padding: 0 12px;                 /* no box: text sits on the page */
  text-align: center;
  display: flex; flex-direction: column;
}
.review-stars { align-self: center; font-size: 0.85rem; line-height: 1; margin-bottom: 8px; white-space: nowrap; }
/* Each star is a pale star with a coral copy on top, filled to the rating (so 4.8 shows 80% of the last star) */
.star { position: relative; display: inline-block; color: #ecd9d0; margin: 0 0.07em; }
.star-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent); }
.review-text {
  font-family: var(--heading-font); font-weight: 300;
  font-size: 0.95rem; line-height: 1.55;
  margin: 0 0 10px; flex: 1;
}
.review-name { font-size: 13px; margin: 0; }
.review-source { font-size: 11px; color: #7a8584; margin: 0; }

/* ---------- 6. Call to action ---------- */
.cta { padding: 96px var(--gutter) 96px; }
.cta h2 { max-width: 760px; margin: 0 auto 24px; font-size: calc(var(--heading-size) - 10px); }
.cta .button { width: min(340px, 100%); padding: 15px 28px; font-size: 14px; }   /* Book a consultation: a little smaller */

/* ---------- Footer ---------- */
.site-footer { padding: 46px var(--gutter) 90px; }
.footer-inner { max-width: 422px; margin: 0 auto; }
.site-footer p { margin: 0 0 16px; }
.site-footer .questions { font-size: 25.4px; margin-bottom: 18px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a.plain { color: inherit; text-decoration: none; }
.contact-line { display: flex; align-items: center; gap: 10px; }   /* envelope / phone icon before email & phone */
.instagram-footer {                      /* Instagram icon + handle, one clickable link */
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 0;                         /* sits right under the phone line */
  color: var(--text); text-decoration: none;
}
.instagram-footer:hover .instagram-handle { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.icon-circle {                           /* green bubble for email, phone and Instagram icons */
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--text);
}

/* ---------- Smaller laptops: tighten the header so the menu fits ---------- */
@media (max-width: 1600px) {
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 16px; }
  .site-title { font-size: 29.5px; }
  .site-title-text { max-width: 360px; }
  .site-logo { height: 68px; }
}

/* ---------- Tablet & phone: menu moves behind the ☰ button ---------- */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr; }   /* title hugs its text, logo centers in the space after it */
  .site-title { order: -1; text-align: left; }
  .menu-toggle { display: block; z-index: 20; }

  .site-nav { display: none; }                 /* top links move into the two-line menu panel */
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .site-header { height: 100px; padding: 0 6vw; }
  .site-title { font-size: 21.5px; gap: 12px; }
  .site-title-text { max-width: 236px; }
  .site-logo { height: 42px; }
  .site-header { gap: 10px; }
  .header-right { gap: 10px; }
  .menu-toggle { width: 34px; flex-shrink: 0; }
  .instagram { display: none; }

  .hero { height: calc(100svh - 100px); padding: 0 6vw 48px; }

  .services { padding: 40px 6vw 150px; }
  .service-grid { gap: 12px; margin: 32px 0 40px; }   /* stays 3 across, just smaller */
  .service-icon { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 8px; }
  .service h3 { font-size: 17px; }
  .wave { height: 40px; }

  .tagline-section { grid-template-columns: 1fr; padding: 16px 6vw 80px; gap: 0; }
  .tagline-section h2 { margin-top: 48px; }

  .cta { padding: 64px 6vw; }
  .site-footer { padding: 40px 6vw 80px; }
}

/* =========================================================
   BLOG PAGE + BLOG POSTS
   ========================================================= */

/* current page in the menu gets an underline, like Squarespace */
.site-nav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.page-title {
  font-size: calc(var(--heading-size) - 6px);
  text-align: center;
  margin: 0 0 56px;
}

/* ---------- Blog listing: photo left, title + summary right ---------- */
.blog-list { padding: 56px var(--gutter) 80px; }
.blog-entry {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;   /* post photo size on the Blog page */
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  max-width: 1150px;
  margin: 0 auto 56px;
}
.blog-entry-image img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.2s; }
.blog-entry-image:hover img { opacity: 0.88; }
.blog-entry h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); margin: 0 0 16px; }
.blog-entry h2 a { color: var(--text); text-decoration: none; }
.blog-entry h2 a:hover { color: var(--accent); }
.blog-entry-summary { margin: 0 0 22px; max-width: 520px; }
.read-more { text-underline-offset: 4px; }
@media (max-width: 760px) {
  .blog-list { padding: 40px 6vw 60px; }
  .page-title { margin-bottom: 36px; }
  .blog-entry { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .blog-entry-image img { aspect-ratio: 4 / 3; }
  .blog-entry-image { width: 85%; }
}

/* ---------- Single post ---------- */
.post { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; box-sizing: content-box; }
.post-back { font-size: 15px; text-decoration: none; }
.post-back:hover { text-decoration: underline; }
.post h1 { font-size: calc(var(--heading-size) - 8px); margin: 24px 0 32px; }
.post-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 40px; }
.post-lead { font-family: var(--heading-font); font-size: 1.6rem; line-height: 1.35; margin: 0 0 24px; }
.post-body h2 { font-size: 1.75rem; margin: 44px 0 14px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 1.3em; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e3e0da; }
.post-body thead th { background: var(--slate); color: var(--white); font-weight: 400; }
.post-body tbody tr:nth-child(even) { background: #f7f5f0; }
.post-cta {
  background: var(--slate); color: var(--white);
  text-align: center; padding: 40px 28px; margin: 48px 0 32px;
}
.post-cta-text { font-family: var(--heading-font); font-size: 1.4rem; line-height: 1.4; margin: 0 0 22px; }
.post-cta .button { padding: 15px 28px; font-size: 14px; }
.post-next { font-size: 15px; }
@media (max-width: 760px) {
  .post { padding: 32px 6vw 60px; box-sizing: border-box; }
  .post-lead { font-size: 1.35rem; }
  .post-body h2 { font-size: 1.45rem; margin-top: 36px; }
  .post-body table { font-size: 14px; }
  .post-body th, .post-body td { padding: 10px 8px; }
}

/* very narrow phones: slightly smaller title so the logo and menu button fit */
@media (max-width: 380px) {
  .site-title { font-size: 19.5px; }
  .site-title-text { max-width: 215px; }
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */

/* ---------- Hero: photo with centered headline ---------- */
.page-hero {
  position: relative;
  height: calc(100vh - 132px); min-height: 420px; max-height: 780px;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
  color: var(--white); text-align: center; overflow: hidden;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(30, 30, 30, 0.38); }
.page-hero h1 { position: relative; z-index: 1; max-width: 640px; font-size: var(--heading-size); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }

/* ---------- Services, one after another, centered ---------- */
.services-list { padding: 90px var(--gutter) 40px; text-align: center; }
.services-list-title { font-size: var(--heading-size); margin-bottom: 30px; }
.service-detail { max-width: 540px; margin: 0 auto 90px; }
.service-detail-icon { width: 180px; height: 180px; color: var(--text); margin: 0 auto 10px; display: block; }
.service-detail h3 { font-size: 1.9rem; margin-bottom: 22px; }
.service-detail p { margin: 0 0 16px; }
.service-detail-meta { font-size: 15px; letter-spacing: 0.04em; margin: 24px 0 28px !important; }
.service-detail .button { width: min(340px, 100%); padding: 15px 28px; font-size: 14px; }

/* ---------- Questions band ---------- */
.questions-band { padding: 140px var(--gutter); }
.questions-band h2 { font-size: calc(var(--heading-size) - 8px); }
.questions-band a { color: #dcd6c8; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.questions-band a:hover { color: var(--white); }

@media (max-width: 860px) {
  .page-hero { height: calc(100svh - 100px); max-height: 560px; }
  .services-list { padding: 60px 6vw 20px; }
  .service-detail { margin-bottom: 64px; }
  .service-detail-icon { width: 140px; height: 140px; }
  .questions-band { padding: 80px 6vw; }
}

/* ---------- Services: insurance carrier logo carousel ---------- */
.carriers-section { padding: 0 var(--gutter) 100px; }
.carriers-section .section-label { color: var(--logo-green); }
.carriers-disclaimer { text-align: center; font-size: 12px; line-height: 1.5; color: #7a8584; margin: 18px auto 0; max-width: 560px; }
.carousel-logos { --per-view: 5; --gap: 40px; }
.carrier { height: 96px; display: grid; place-items: center; padding: 0 8px; }
.carrier img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.carrier img[src*="ambetter"] { max-height: 66px; }   /* round badge needs more height to match the wide logos */
.carrier-name { font-weight: 600; font-size: 20px; letter-spacing: 0.01em; color: var(--text); text-align: center; line-height: 1.2; }
@media (max-width: 1000px) { .carousel-logos { --per-view: 3; } }
@media (max-width: 600px)  { .carousel-logos { --per-view: 2; --gap: 20px; } .carrier img { max-height: 36px; } .carrier-name { font-size: 17px; } }

/* ---------- Services: "Get a Free Quote" cards ---------- */
.quotes-section { background: #f7f5f0; padding: 90px var(--gutter) 100px; text-align: center; }
.quotes-section h2 { font-size: calc(var(--heading-size) - 6px); margin-bottom: 10px; }
.quotes-intro { margin: 0 0 48px; }
.quote-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.quote-card {
  background: var(--white); color: var(--text); text-decoration: none;
  padding: 36px 28px 32px; display: flex; flex-direction: column; align-items: center;
  border: 1px solid transparent; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.quote-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }
.quote-icon { width: 130px; height: 130px; color: var(--logo-green); margin-bottom: 8px; }
.quote-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.quote-card p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; flex: 1; }
.quote-card-link { color: var(--accent); font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 860px) {
  .quotes-section { padding: 64px 6vw 70px; }
  .quote-cards { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Quote form page ---------- */
.quote-page { max-width: 600px; margin: 0 auto; padding: 48px var(--gutter) 100px; box-sizing: content-box; min-height: 52vh; }
.quote-page h1 { font-size: calc(var(--heading-size) - 10px); margin: 22px 0 28px; }
.quote-progress { height: 4px; background: #ebe7df; margin-bottom: 10px; }
.quote-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.quote-step-count { font-size: 14px; color: #7a8584; margin: 0 0 36px; }
.quote-step { border: 0; padding: 0; margin: 0; }
.quote-step label { display: block; font-family: var(--heading-font); font-size: 1.7rem; line-height: 1.3; margin-bottom: 18px; }
.quote-step input {
  width: 100%; font: inherit; font-size: 19px; color: var(--text);
  padding: 14px 16px; border: 1px solid #c9c4ba; background: var(--white); border-radius: 0;
}
.quote-step input:focus { outline: none; border-color: var(--logo-green); box-shadow: 0 0 0 3px rgba(46, 63, 59, 0.12); }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 19px; }
.money-input input { padding-left: 32px; }
.quote-error { color: #b4462e; font-size: 15px; min-height: 1.6em; margin: 8px 0 0; }
.quote-error a { color: inherit; }
.quote-consent { font-size: 13px; line-height: 1.6; color: #7a8584; margin: 6px 0 0; }
.quote-buttons { display: flex; gap: 14px; margin-top: 26px; }
.quote-buttons .button { padding: 15px 32px; font-size: 14px; cursor: pointer; font-family: inherit; border: 1px solid var(--accent); }
.quote-buttons .button-outline { border-color: var(--text); }
.quote-buttons .button:disabled { opacity: 0.6; cursor: wait; }
.button-outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.button-outline:hover { opacity: 1; background: var(--text); color: var(--white); }
.honeypot { position: absolute; left: -9999px; }
.quote-done h2 { font-size: 2.4rem; margin-bottom: 12px; }
.quote-done p { margin: 0 0 28px; }
@media (max-width: 760px) {
  .quote-page { padding: 32px 6vw 70px; box-sizing: border-box; }
  .quote-step label { font-size: 1.4rem; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-page {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px);
  max-width: 1150px; margin: 0 auto; padding: 80px var(--gutter) 110px; box-sizing: content-box;
}
.contact-page { align-items: center; }
.contact-info { text-align: center; }                       /* centered text */
.contact-info h1 { font-size: calc(var(--heading-size) - 6px); margin-bottom: 20px; }
.contact-info > p:first-of-type { margin: 0 auto 28px; max-width: 380px; }
.contact-links { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.contact-info .contact-line { margin: 0 0 16px; }
.contact-form-wrap {                                         /* the form sits in its own box */
  background: #f7f5f0; border: 1px solid #e6e2da;
  padding: clamp(28px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 15px; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  padding: 12px 14px; border: 1px solid #c9c4ba; background: var(--white); border-radius: 0;
}
.form-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--logo-green); box-shadow: 0 0 0 3px rgba(46, 63, 59, 0.12); }
.contact-form .button { display: block; margin: 6px auto 0; border: 1px solid var(--accent); padding: 15px 44px; font-size: 14px; font-family: inherit; cursor: pointer; }
.contact-form .button:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 860px) {
  .contact-page { grid-template-columns: 1fr; padding: 48px 6vw 80px; box-sizing: border-box; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   FAQ PAGE
   ========================================================= */
.faq-page { max-width: 820px; margin: 0 auto; padding: 90px var(--gutter) 110px; box-sizing: content-box; }
.faq-page h1 { font-size: var(--heading-size); text-align: center; margin-bottom: 48px; }   /* centered heading */

/* accordion: each question sits in its own box; click it to slide the answer open */
.faq-item {
  background: #f7f5f0; border: 1px solid #e6e2da;
  margin-bottom: 14px; transition: border-color 0.2s;
}
.faq-item:hover, .faq-item.open { border-color: var(--accent); }
.faq-item h3 { margin: 0; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: none; border: 0; padding: 24px 30px; cursor: pointer; text-align: left;
  font-family: var(--heading-font); font-size: calc(1.8rem - 6px); font-weight: 600; line-height: 1.3; color: var(--text);   /* bold questions */
}
.faq-icon { position: relative; flex: none; width: 16px; height: 16px; }   /* + that turns into − when open */
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--accent);
  transition: transform 0.3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 30px 26px; }
@media (prefers-reduced-motion: reduce) { .faq-answer, .faq-icon::before, .faq-icon::after { transition: none; } }
.faq-cta { background: var(--accent); color: var(--white); text-align: center; padding: 130px var(--gutter); }
.faq-cta h2 { font-size: calc(var(--heading-size) - 4px); max-width: 760px; margin: 0 auto 40px; }
.faq-cta .button-light { background: var(--white); color: var(--accent); border: 1px solid var(--white); width: min(340px, 100%); padding: 15px 28px; font-size: 14px; }
.faq-cta .button-light:hover { opacity: 1; background: transparent; color: var(--white); }
@media (max-width: 860px) {
  .faq-page { padding: 56px 6vw 64px; box-sizing: border-box; }
  .faq-page h1 { margin-bottom: 32px; }
  .faq-question { padding: 20px; gap: 16px; font-size: calc(1.45rem - 5px); }
  .faq-answer p { padding: 0 20px 22px; }
  .faq-cta { padding: 80px 6vw; }
}

/* =========================================================
   ABOUT US PAGE
   ========================================================= */
/* Meet Shanoska */
.about-bio {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 100px var(--gutter); box-sizing: content-box;
}
.about-headshot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.about-role { font-size: 15px; margin: 0 0 6px; }
.about-bio h2 { font-size: calc(var(--heading-size) - 8px); margin-bottom: 20px; }
.about-bio-text p { margin: 0 0 18px; }
.about-links a { text-underline-offset: 3px; }

/* Text + photo side by side */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center;
  padding: 40px var(--gutter) 90px;
}
.about-split img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.about-split h2 { font-size: calc(var(--heading-size) - 4px); margin-bottom: 26px; }
.about-split p { margin: 0 0 30px; }
.about-split-reverse img { order: -1; }
.about-split .button { padding: 15px 34px; font-size: 14px; }

/* Service rates */
.rates { max-width: 980px; margin: 0 auto; padding: 60px var(--gutter) 110px; box-sizing: content-box; }
.rates > h2 { font-size: var(--heading-size); text-align: center; margin-bottom: 70px; }
.rate { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); margin-bottom: 80px; }
.rate h3 { font-size: calc(var(--heading-size) - 26px); line-height: 1.25; }
.rate p { margin: 0 0 14px; }
.rate-meta a { text-underline-offset: 3px; }

@media (max-width: 860px) {
  .about-bio { grid-template-columns: 1fr; padding: 60px 6vw; box-sizing: border-box; text-align: center; }
  .about-headshot { max-width: 280px; margin: 0 auto; }
  .about-split { grid-template-columns: 1fr; padding: 20px 6vw 60px; }
  .about-split-reverse img { order: 0; }
  .rates { padding: 30px 6vw 70px; box-sizing: border-box; }
  .rates > h2 { margin-bottom: 40px; }
  .rate { grid-template-columns: 1fr; gap: 12px; margin-bottom: 48px; }
}

.about-hero-img { object-position: 50% 40%; }   /* keep faces in view on the About Us photo */

/* About: our promise */
.about-promise { max-width: 900px; margin: 0 auto; padding: 100px var(--gutter) 90px; box-sizing: content-box; text-align: center; }
.about-promise h2 { font-size: calc(var(--heading-size) - 8px); margin: 0 0 26px; }
.about-promise > p { max-width: 720px; margin: 0 auto 18px; }
.about-promise-lead { font-family: var(--heading-font); font-size: 1.45rem; line-height: 1.5; }
.promise-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.promise-point { background: #f7f5f0; border: 1px solid #e6e2da; padding: 30px 22px; }
.promise-point svg { width: 46px; height: 46px; color: var(--accent); margin-bottom: 10px; }
.promise-point h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.promise-point p { margin: 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 860px) {
  .about-promise { padding: 60px 6vw; box-sizing: border-box; }
  .about-promise-lead { font-size: 1.2rem; }
  .promise-points { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
}

.other-services-page .service-detail { max-width: 680px; }   /* a little wider for the longer coaching description */
.other-services-page .service-detail p { font-size: 15.5px; line-height: 1.75; }   /* smaller text for the coaching description */

/* =========================================================
   COVERAGE PAGE + top-right menu sub-links
   ========================================================= */
.extra-menu { display: flex; flex-direction: column; gap: 10px; min-width: 250px; }
.extra-menu .extra-sub { font-size: 14px; color: #6b7675; padding-left: 12px; border-left: 1px solid #e6e2da; }
.extra-menu .extra-sub:hover { color: var(--accent); }
.site-nav .nav-extra + .nav-extra { margin-top: 0; }

.coverage-page { max-width: 900px; margin: 0 auto; padding: 90px var(--gutter) 100px; box-sizing: content-box; }
.coverage-page > .section-label, .coverage-page > h1, .coverage-intro { text-align: center; }
.coverage-page h1 { font-size: calc(var(--heading-size) - 8px); margin: 0 0 18px; }
.coverage-intro { max-width: 640px; margin: 0 auto 50px; }
.coverage-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  background: #f7f5f0; border: 1px solid #e6e2da; padding: 30px 32px; margin-bottom: 16px;
  scroll-margin-top: 200px;               /* menu links land just below the pinned header */
}
.coverage-icon { width: 56px; height: 56px; color: var(--logo-green); }
.coverage-card h2 { font-size: 1.55rem; font-weight: 600; margin: 0 0 4px; }
.coverage-tagline { color: #6b7675; margin: 0 0 12px; font-size: 16px; }
.coverage-card p { margin: 0 0 14px; }
.coverage-link { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.coverage-link:hover { text-decoration: underline; }
.coverage-note { font-size: 13px; color: #7a8584; text-align: center; max-width: 680px; margin: 34px auto 0; line-height: 1.6; }
@media (max-width: 860px) {
  .coverage-page { padding: 56px 6vw 64px; box-sizing: border-box; }
  .coverage-card { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; }
  .coverage-card { scroll-margin-top: 140px; }
}

/* ---------- Services dropdown in the main menu (Coverages) ---------- */
.nav-item { position: relative; display: flex; }
.nav-sub {
  position: absolute; top: calc(100% + 14px); left: -22px; z-index: 30;
  background: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 22px; min-width: 270px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* bridge so the menu stays open */
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .nav-sub a { font-size: 16px; white-space: nowrap; }
.site-nav .nav-sub .nav-sub-type { font-size: 14px; color: #6b7675; padding-left: 12px; border-left: 1px solid #e6e2da; }
.site-nav .nav-sub .nav-sub-type:hover { color: var(--accent); opacity: 1; }
@media (max-width: 1100px) {
  /* phones/tablets: Coverages sits right under Services in the full-screen menu */
  .nav-item { flex-direction: column; align-items: center; gap: 12px; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0; min-width: 0; align-items: center; }
  .nav-sub::before { display: none; }
  .site-nav .nav-sub a { font-size: 21px; color: #6b7675; }
  .site-nav .nav-sub .nav-sub-type { display: none; }
}
/* "Coverages" matches the size of the other menu links */
.site-nav .nav-sub a:not(.nav-sub-type) { font-size: 17px; color: var(--text); }
@media (max-width: 1600px) { .site-nav .nav-sub a:not(.nav-sub-type) { font-size: 16px; } }
@media (max-width: 1100px) { .site-nav .nav-sub a:not(.nav-sub-type) { font-size: 30px; font-family: var(--heading-font); font-weight: 300; } }
/* Home page: shorter top photo section */
.hero { height: 50vh; min-height: 320px; max-height: 470px; }
@media (max-width: 860px) { .hero { height: 42svh; min-height: 260px; } }

/* ---------- Two-line menu panel: same dropdown on every screen size ---------- */
.extra-menu .extra-main { display: none; }               /* top links already show in the menu bar on wide screens */
.extra-menu .extra-divider { height: 1px; background: #e6e2da; margin: 4px 0; }
.extra-menu .active { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1100px) {
  .extra-menu .extra-main { display: block; }            /* narrower screens: the panel also lists the top links */
  .extra-menu { top: calc(100% + 18px); max-height: calc(100vh - 140px); overflow-y: auto; }
  .extra-menu a { font-size: 18px; }
  .extra-menu a.extra-sub { font-size: 15px; }
}
@media (max-width: 860px) { .extra-menu { right: -2px; min-width: 230px; } }
/* Services page: shorter top photo */
.services-hero { height: 50vh; min-height: 320px; max-height: 470px; }
@media (max-width: 860px) { .services-hero { height: 42svh; min-height: 260px; } }
/* Services page: "Our Services" title a little closer to the photo */
.services-hero + .services-list { padding-top: 56px; }
@media (max-width: 860px) { .services-hero + .services-list { padding-top: 40px; } }
/* Home page: space above the carriers carousel when it follows the green "Get started" band */
.cta + .carriers-section { padding-top: 70px; padding-bottom: 60px; }
@media (max-width: 860px) { .cta + .carriers-section { padding-top: 48px; padding-bottom: 36px; } }

/* Office hours + license line (footer and Contact page) */
.contact-hours { align-items: flex-start; }
.contact-hours .icon-circle { margin-top: 2px; }
.license-line { font-size: 13px; color: #6b7675; margin: 22px 0 0 !important; line-height: 1.6; }
.license-line a { text-underline-offset: 3px; }
.contact-info .license-line { margin-top: 10px !important; }
/* Footer sits in the bottom-left corner */
.footer-inner { margin: 0; }

/* Footer heading "Contact us": same look as the old "Questions?" heading, but clickable */
.site-footer .questions a { color: var(--text); text-decoration: none; }
.site-footer .questions a:hover { color: var(--accent); }

/* ---------- Footer: Contact us (left) + Company (middle) ---------- */
.footer-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
.footer-company { justify-self: center; min-width: 200px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 14px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-company { justify-self: start; }
}
/* Legal pages (Privacy, Terms, Refer & Earn) */
.legal-page h1 { margin-top: 0; }
.legal-updated { font-size: 14px; color: #7a8584; }
.footer-links a.active { text-decoration: underline; text-underline-offset: 3px; }

/* Footer license: bigger, with the verify link on its own line */
.site-footer .footer-license { font-size: 16px; color: var(--text); margin: 6px 0 4px !important; }
.site-footer .license-verify { font-size: 14px; margin: 0 !important; }
.site-footer .license-verify a { text-underline-offset: 3px; }

/* =========================================================
   FLOATING BUTTONS (bottom-right on every page)
   ========================================================= */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-btn {
  font: inherit; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.float-book { background: var(--accent); color: var(--white); }
.float-quote { background: var(--logo-green); color: var(--white); }
.float-quote-menu {
  background: var(--white); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; gap: 8px; min-width: 190px;
}
.float-quote-menu p { margin: 0 0 2px; font-size: 13px; color: #7a8584; }
.float-quote-menu a { color: var(--text); text-decoration: none; font-size: 16px; }
.float-quote-menu a:hover { color: var(--accent); }
body.has-float-cta { padding-bottom: 0; }
@media (max-width: 600px) {
  /* phones: the two buttons sit side by side along the bottom */
  .float-cta { right: 12px; left: 12px; bottom: 12px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .float-quote-menu { position: absolute; right: 0; bottom: calc(100% + 10px); }
  .float-btn { font-size: 13px; padding: 12px 16px; flex: 1; text-align: center; }
  body.has-float-cta { padding-bottom: 72px; }   /* so the buttons never cover the end of the page */
}

.float-short { display: none; }
.float-btn { white-space: nowrap; }
@media (max-width: 600px) { .float-long { display: none; } .float-short { display: inline; } }

/* floating buttons fade out while scrolling, then fade back in */
.float-cta { transition: opacity 0.25s ease, transform 0.25s ease; }
.float-cta.float-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .float-cta { transition: opacity 0.2s; } .float-cta.float-hidden { transform: none; } }
/* Footer: email and phone in the same dark color as the office hours (coral on hover) */
.site-footer .contact-line a { color: var(--text); text-decoration: none; }
.site-footer .contact-line a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Phones / narrower screens: About Us sits at the bottom of the menu panel, under Other Services */
@media (max-width: 1100px) { .extra-menu a[href="about.html"] { order: 99; } }

/* With Home added, keep each top link on one line and squeeze the spacing a little on smaller laptops */
.site-nav > a, .site-nav .nav-item > a { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1101px) {
  .site-nav { gap: 15px; }
  .site-nav > a, .site-nav .nav-item > a { font-size: 15px; }
}

/* Home page: the full Altius logo replaces the title text and the small logo mark */
.home-header { height: 170px; }
.home-header .site-title { line-height: 0; }
.home-header .site-title-logo {   /* real text + the circle image, so the logo stays sharp at any size */
  display: flex; flex-direction: column; align-items: center; width: max-content; margin: 0 auto;
  color: #2e3f3b; line-height: 1; --logo-scale: 1;
}
.logo-circle { height: calc(78px * var(--logo-scale)); width: auto; display: block; }
.logo-altius { font-family: "Cinzel", serif; font-weight: 400; font-size: calc(35px * var(--logo-scale)); letter-spacing: 0.12em; margin: calc(6px * var(--logo-scale)) 0 0 0.12em; }
.logo-sub, .logo-solutions { font-family: "Josefin Sans", sans-serif; font-size: calc(9.6px * var(--logo-scale)); letter-spacing: 0.16em; margin-left: 0.16em; }
.logo-sub { margin-top: calc(4px * var(--logo-scale)); }
.logo-solutions { display: flex; align-items: center; gap: 0.9em; width: 100%; margin-top: calc(4px * var(--logo-scale)); font-size: calc(8.4px * var(--logo-scale)); letter-spacing: 0.24em; }
.logo-solutions::before, .logo-solutions::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.6; }
.home-header .header-right { justify-content: flex-end; }
@media (max-width: 1100px) {   /* smaller screens: logo stays centered, Instagram and ☰ on the right */
  .home-header { grid-template-columns: 1fr auto 1fr; }
  .home-header .site-title { grid-column: 2; grid-row: 1; order: 0; }
  .home-header .header-right { grid-column: 3; grid-row: 1; }
}
@media (max-width: 860px) { .home-header { height: 120px; } .home-header .site-title-logo { --logo-scale: 0.7; } }

/* Contact page: email, phone and Instagram in the same dark text color as the office hours */
.contact-info .contact-line a { color: var(--text); text-decoration: none; }
.contact-info .contact-line a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Standard laptops (1101–1300px wide): menu stays in the top-left corner, with smaller text so it fits beside the title */
@media (max-width: 1300px) and (min-width: 1101px) {
  .site-nav { gap: 12px; }
  .site-nav > a, .site-nav .nav-item > a { font-size: 13.5px; }
  .site-header { gap: 16px; }
  .site-title { font-size: 25px; }
  .site-title-text { max-width: 300px; }
  .site-logo { height: 58px; }
}

/* Home page: menu row sits lower, lined up with the word ALTIUS in the logo */
@media (min-width: 1101px) {
  .home-header .site-nav, .home-header .header-right { transform: translateY(48px); }
}

/* Home page: bigger menu text (the centered logo leaves more room), scaled to the screen width */
@media (min-width: 1101px) {
  .home-header .site-nav { gap: clamp(14px, 1.45vw, 30px); }
  .home-header .site-nav > a, .home-header .site-nav .nav-item > a { font-size: clamp(15px, 1.25vw, 20px); }
}
