/* ═══════════════════════════════════════════════════════
   ALIGN COUNSELING — Main Stylesheet
   YSL meets Restoration Hardware — Editorial & Warm
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --cream:       #F5F2ED;
  --cream-dark:  #EDE8E0;
  --cream-mid:   #DEDAD3;
  --black:       #0F0F0F;
  --black-mid:   #2C2C2C;
  --black-light: #6B6B6B;
  --taupe:       #9B9189;
  --taupe-light: #C4BDB5;
  --taupe-pale:  #EDEBE6;
  --white:       #FFFFFF;
  --shadow:      rgba(15,15,15,0.06);
  --shadow-md:   rgba(15,15,15,0.12);

  /* Aliases for shared components */
  --brown:       #0F0F0F;
  --brown-mid:   #2C2C2C;
  --brown-light: #9B9189;
  --mauve:       #9B9189;
  --mauve-light: #C4BDB5;
  --mauve-pale:  #EDEBE6;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --max-width: 1200px;
  --nav-height: 88px;
  --radius: 2px;
  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
p { margin-bottom: 1.2rem; color: var(--black-mid); font-size: 1rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }
.section { padding: 7rem 0; }
.section--sm { padding: 4rem 0; }
.section--lg { padding: 10rem 0; }
.section--cream { background: var(--cream); }
.section--warm { background: var(--cream-dark); }
.section--taupe { background: var(--taupe-pale); }
.section--black { background: var(--black); color: var(--cream); }
.section--black p { color: rgba(245,242,237,0.72); }
.section--black h2 { color: var(--cream); }
.section--black .label { color: var(--taupe-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.text-center { text-align: center; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--dark {
  background: var(--black);
  color: var(--cream);
}
.btn--dark:hover { background: var(--black-mid); }
.btn--taupe {
  background: var(--taupe);
  color: var(--white);
}
.btn--taupe:hover { background: #807870; }
.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--cream); }
.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,242,237,0.4);
}
.btn--outline-light:hover { background: rgba(245,242,237,0.1); border-color: var(--cream); }
.btn--light {
  background: var(--cream);
  color: var(--black);
}
.btn--light:hover { background: var(--cream-dark); }

/* ── Navigation — Centered Logo ────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245,242,237,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,15,15,0.07);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 1px 20px var(--shadow); }

.nav__top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}
.nav__social { display: flex; gap: 1.25rem; }
.nav__social a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--black-light);
  transition: color var(--transition);
}
.nav__social a:hover { color: var(--black); }
.nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__logo img { height: 44px; width: auto; }
.nav__cta .btn { padding: 0.75rem 1.75rem; font-size: 0.68rem; }

.nav__bottom {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(15,15,15,0.06);
  background: rgba(237,232,224,0.6);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black-mid);
  padding: 0 1.5rem;
  transition: color var(--transition);
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--black); }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--cream);
  border: 1px solid var(--cream-mid);
  padding: 0.75rem 0;
  min-width: 240px;
  box-shadow: 0 8px 32px var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black-mid);
  transition: all var(--transition);
}
.nav__dropdown a:hover { background: var(--cream-dark); color: var(--black); }
.new-badge {
  display: inline-block;
  background: var(--black);
  color: var(--cream);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 2px 6px;
}

/* Mobile hamburger */
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
.nav__hamburger span { display: block; width: 20px; height: 1px; background: var(--black); transition: all var(--transition); }

.page-content { padding-top: var(--nav-height); }

/* ── Editorial Hero ────────────────────────────────── */
.hero-editorial {
  background: var(--cream);
  padding: 7rem 3rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-editorial__label {
  margin-bottom: 2.5rem;
}
.hero-editorial__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--black);
  max-width: 1100px;
  margin: 0 auto 4rem;
}
.hero-editorial__title em {
  font-style: italic;
  font-weight: 300;
}

/* ── Arch + Photo Layout ───────────────────────────── */
.hero-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}
.hero-photo-row__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-photo-row__text {
  padding: 2rem 0;
}
.hero-photo-row__text p {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-photo-row__arches {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
}

/* ── Arch Shape ────────────────────────────────────── */
.arch {
  border-radius: 300px 300px 0 0;
  overflow: hidden;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.arch--hero-main {
  flex: 1;
  height: 540px;
}
.arch--hero-secondary {
  flex: 0 0 44%;
  height: 380px;
  margin-bottom: 2.5rem;
}
.arch--tall { height: 520px; }
.arch--md { height: 400px; }
.arch--sm { height: 300px; }

/* ── Circle Images ─────────────────────────────────── */
.circle-img {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
}
.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.circle-img:hover img { transform: scale(1.04); }

/* ── Priority Marquee (Text Only) ──────────────────── */
.priority-marquee {
  overflow: hidden;
  padding: 1.75rem 0;
  border-top: 1px solid var(--cream-mid);
  border-bottom: 1px solid var(--cream-mid);
  background: var(--cream);
}
.priority-marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
}
.priority-marquee__track:hover { animation-play-state: paused; }
.priority-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
.priority-marquee__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.04em;
}
.priority-marquee__word--italic {
  font-style: italic;
}
.priority-marquee__word--caps {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-style: normal;
}
.priority-marquee__dot {
  color: var(--taupe-light);
  font-size: 0.5rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section Headers ───────────────────────────────── */
.section-header { margin-bottom: 4rem; }
.section-header.text-center { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header .label { margin-bottom: 1rem; display: block; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header h2 em { font-style: italic; }
.section-header p { font-size: 1.05rem; color: var(--black-light); }

/* ── Insurance Line (clean) ────────────────────────── */
.insurance-line {
  text-align: center;
  padding: 1.5rem 3rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  border-bottom: 1px solid var(--cream-mid);
}
.insurance-line span { margin: 0 0.75rem; color: var(--cream-mid); }

/* ── Arch Service Cards ────────────────────────────── */
.arch-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.arch-service-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.arch-service-card__img {
  height: 360px;
  border-radius: 300px 300px 0 0;
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: transform 0.4s ease;
}
.arch-service-card:hover .arch-service-card__img { transform: translateY(-6px); }
.arch-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.arch-service-card:hover .arch-service-card__img img { transform: scale(1.04); }
.arch-service-card__body { padding: 0 0.5rem; }
.arch-service-card__body h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.arch-service-card__body p { font-size: 0.93rem; margin-bottom: 1rem; }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--cream-mid);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover { box-shadow: 0 8px 32px var(--shadow); }
.card__icon { font-size: 1.4rem; margin-bottom: 1.25rem; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.card p { font-size: 0.95rem; }

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--cream-mid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service-card:hover { box-shadow: 0 8px 32px var(--shadow-md); }
.service-card__img { height: 240px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { margin-bottom: 0.75rem; }
.service-card__body p { flex: 1; font-size: 0.95rem; margin-bottom: 1.25rem; }

/* Blog cards — CIRCULAR images */
.blog-card { cursor: pointer; }
.blog-card:hover .blog-card__circle img { transform: scale(1.04); }
.blog-card__circle {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.75rem;
}
.blog-card__circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}
.blog-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; line-height: 1.25; }
.blog-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.blog-card__meta { font-size: 0.75rem; color: var(--taupe); letter-spacing: 0.06em; }

/* ── Endorsements ──────────────────────────────────── */
.endorsement {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.endorsement p { font-style: italic; font-size: 1rem; margin-bottom: 1rem; line-height: 1.7; }
.endorsement__author { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.endorsement__role { font-size: 0.75rem; color: var(--taupe-light); margin-top: 0.2rem; }

.endorsement--light p { color: rgba(245,242,237,0.82); }
.endorsement--light .endorsement__author { color: var(--cream); }

/* ── Taylor Block ──────────────────────────────────── */
.taylor-block { display: grid; grid-template-columns: 480px 1fr; gap: 6rem; align-items: center; }
.taylor-block__img { position: relative; }
.taylor-block__img .arch {
  height: 620px;
  border-radius: 310px 310px 0 0;
}
.taylor-block__text .label { margin-bottom: 1rem; display: block; }
.taylor-block__text h2 { margin-bottom: 0.5rem; }
.taylor-block__text h2 em { font-style: italic; }

/* ── Specialty Pills ───────────────────────────────── */
.specialty-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.specialty-pill {
  background: transparent;
  border: 1px solid var(--cream-mid);
  color: var(--black-light);
  padding: 0.35rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Method Steps ──────────────────────────────────── */
.method-steps { display: flex; flex-direction: column; gap: 2rem; }
.method-step { display: flex; gap: 1.75rem; align-items: flex-start; }
.method-step__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.method-step__content h4 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.method-step__content p { font-size: 0.92rem; margin: 0; }

/* ── FAQ ───────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--cream-mid); padding: 1.5rem 0; }
.faq-item:first-child { border-top: 1px solid var(--cream-mid); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--black);
  gap: 1rem;
  user-select: none;
}
.faq-question:hover { color: var(--taupe); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--black); color: var(--cream); border-color: var(--black); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding-top: 1rem; font-size: 0.97rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Pull Quote ────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  text-align: center;
  padding: 4rem 2rem;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.4;
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-size: 8rem;
  line-height: 0;
  position: absolute;
  top: 5rem; left: 0;
  color: rgba(245,242,237,0.12);
  font-family: var(--font-display);
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-light);
  margin-top: 1.5rem;
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  background: var(--black);
  padding: 6rem 0;
  text-align: center;
  color: var(--cream);
}
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner h2 em { font-style: italic; color: rgba(245,242,237,0.65); }
.cta-banner p { color: rgba(245,242,237,0.65); margin-bottom: 2.5rem; font-size: 1rem; }

/* ── Stats ─────────────────────────────────────────── */
.stats-bar { display: flex; }
.stat { flex: 1; padding: 2.5rem 2rem; text-align: center; background: var(--black); color: var(--cream); border-right: 1px solid rgba(255,255,255,0.07); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 300; color: var(--cream); line-height: 1; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,242,237,0.5); }

/* ── Approach Grid ─────────────────────────────────── */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.approach-item { padding: 1.75rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.approach-item h4 { margin-bottom: 0.5rem; font-size: 1.05rem; color: var(--cream); }
.approach-item p { font-size: 0.9rem; margin: 0; }

/* ── Timeline ──────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--cream-mid); }
.timeline-item { position: relative; padding: 0 0 2.5rem 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--taupe); border: 2px solid var(--cream); box-shadow: 0 0 0 2px var(--taupe-light); }
.timeline-item .year { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--taupe); margin-bottom: 0.25rem; }
.timeline-item h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.timeline-item p { font-size: 0.92rem; margin: 0; }

/* ── Page Hero ─────────────────────────────────────── */
.page-hero { padding: 5rem 0 4rem; background: var(--cream-dark); border-bottom: 1px solid var(--cream-mid); }
.page-hero .label { margin-bottom: 1rem; display: block; }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 em { font-style: italic; }
.page-hero__sub { font-size: 1.1rem; max-width: 600px; color: var(--black-mid); margin-bottom: 2rem; }

/* ── Footer ────────────────────────────────────────── */
.footer { background: var(--black); color: var(--cream); padding: 5rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.footer__brand img { height: 36px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.8; }
.footer__brand p { font-size: 0.88rem; color: rgba(245,242,237,0.5); line-height: 1.7; margin-bottom: 1.25rem; }
.footer__col h5 { font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,242,237,0.35); margin-bottom: 1.25rem; }
.footer__col a { display: block; font-size: 0.88rem; color: rgba(245,242,237,0.6); padding: 0.3rem 0; transition: color var(--transition); }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { font-size: 0.75rem; color: rgba(245,242,237,0.3); margin: 0; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; color: rgba(245,242,237,0.5); transition: color var(--transition); }
.footer__social a:hover { color: var(--cream); }

/* ── SR Only ───────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Utilities ─────────────────────────────────────── */
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; } .mt-4 { margin-top: 2rem; }
.divider { height: 1px; background: var(--cream-mid); margin: 3rem 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black); transition: gap var(--transition); }
.link-arrow:hover { gap: 0.75rem; }
.link-arrow::after { content: '→'; font-style: normal; }
.link-arrow--light { color: rgba(245,242,237,0.7); }
.link-arrow--light:hover { color: var(--cream); }

/* ── Animations ────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease both; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .taylor-block { grid-template-columns: 380px 1fr; gap: 4rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .arch-services { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .taylor-block { grid-template-columns: 1fr; }
  .hero-photo-row { grid-template-columns: 1fr; }
  .arch-services { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 80px; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav__top { padding: 0 1.25rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero-editorial { padding: 5rem 1.5rem 3rem; }
  .hero-editorial__title { font-size: clamp(3rem, 10vw, 5rem); }
  .footer__grid { grid-template-columns: 1fr; }

  /* Homepage hero — text first, photo second */
  .hero-main-grid {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .hero-main-grid > div:first-child {
    order: 2;
    height: 320px !important;
    width: 100%;
  }
  .hero-main-grid > div:last-child {
    order: 1;
    padding: 3rem 1.5rem 2rem !important;
  }

  /* Quick links dark section — stack */
  .quick-links-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .quick-links-section > div:first-child {
    padding: 3rem 1.5rem !important;
  }
  .quick-links-section > div:last-child {
    height: 260px !important;
    min-height: unset !important;
  }

  /* Full-bleed vw sections — reset on mobile */
  section[style*="100vw"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    position: relative !important;
  }

  /* Hide blog preview circles in page heroes on mobile */
  /* Blog preview circles in page heroes — stack below on mobile */
  .page-hero a[href*="/blog"] {
    display: block !important;
    width: 100% !important;
    margin-top: 2rem !important;
    text-align: center !important;
  }
  .page-hero a[href*="/blog"] > div[style*="border-radius:50%"] {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto 0.75rem !important;
  }
  .page-hero a[href*="/blog"] > div[style*="width:300px"] {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto 0.75rem !important;
  }

  /* Page hero grids — stack */
  .page-hero .container > div[style*="grid"] {
    display: block !important;
  }

  /* All inline repeat(3) grids — single column */
  div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* All inline repeat(2) grids — single column */
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* All inline repeat(4) grids — 2 columns */
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Approach section — hide floating circle */
  section[style*="background:#111"] a[style*="border-radius:50%"],
  section[style*="background: #111"] a[style*="border-radius:50%"] {
    display: none !important;
  }

  /* Service card image heights */
  div[style*="height:300px"] { height: 200px !important; }
  div[style*="height:480px"] { height: 260px !important; }
  div[style*="height:500px"] { height: 260px !important; }
  div[style*="height:460px"] { height: 260px !important; }
  div[style*="height:600px"] { height: 300px !important; }

  /* Arch photo */
  div[style*="border-radius:300px 300px 0 0"] {
    height: 280px !important;
    max-width: 100% !important;
  }

  /* Sticky → relative on mobile */
  div[style*="position:sticky"] { position: relative !important; }

  /* Blog slider */
  #blog-slider a { flex: 0 0 240px !important; }
  #blog-slider div[style*="border-radius:50%"] {
    width: 240px !important;
    height: 240px !important;
  }

  /* CTA banner */
  .cta-banner { padding: 4rem 1.5rem; }
  .cta-banner h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Pull quote */
  .pull-quote { font-size: 1.4rem; padding: 0 0.5rem; }

  /* Stats bar — 2 cols */
  div[style*="grid-template-columns:repeat(4,1fr)"][style*="gap:1px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Insurance line */
  .insurance-line { font-size: 0.7rem; text-align: center; line-height: 2; }

  /* Meet Taylor grid */
  div[style*="grid-template-columns:45% 55%"] {
    display: block !important;
  }
  div[style*="grid-template-columns:45% 55%"] > div:first-child {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .grid-4 { grid-template-columns: 1fr; }

  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  .page-hero h1,
  .page-hero h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }
}

/* ── Homepage hero grid ── */
@media (max-width: 768px) {
  .hero-main-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .quick-links-section {
    grid-template-columns: 1fr !important;
  }
}

/* ── Approach section mobile ── */
@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .approach-circle {
    display: none !important;
  }
}

/* ── Hero: Desktop layout (photo LEFT via order, text RIGHT) ── */
.hero-main-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: calc(88vh - var(--nav-height));
  align-items: center;
}
.hero-photo { order: -1; } /* photo appears left on desktop */
.hero-text  { order:  1; } /* text appears right on desktop */

@media (max-width: 768px) {
  .hero-main-grid {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .hero-text {
    order: 1 !important;
    padding: 2.5rem 1.5rem 1.5rem !important;
  }
  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
    margin-left: 0 !important;
    letter-spacing: -0.01em !important;
  }
  .hero-text h1 span {
    padding-left: 0 !important;
  }
  .hero-photo {
    order: 2 !important;
    height: 340px !important;
    padding: 0 !important;
  }
  .hero-photo > div {
    height: 340px !important;
    max-width: 100% !important;
    border-radius: 200px 200px 0 0 !important;
    margin-right: 0 !important;
  }
  .hero-label { padding-top: 1rem !important; }

  /* Quick links: hide the photo on mobile (avoid double Taylor photo) */
  .quick-links-image { display: none !important; }
  .quick-links-section {
    grid-template-columns: 1fr !important;
  }
  .quick-links-section > div:first-child {
    padding: 3rem 1.5rem !important;
  }

  /* Meet Taylor: stack, photo first then text */
  .meet-taylor-grid {
    display: block !important;
  }
  .meet-taylor-grid > div:first-child {
    margin-bottom: 2rem;
  }
  .meet-taylor-grid > div:first-child > div {
    height: 360px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

/* ── Hero mobile — definitive fix ── */
@media (max-width: 768px) {
  .hero-section {
    overflow: visible !important;
  }
  .hero-text {
    background: var(--cream) !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 2.5rem 1.5rem 2rem !important;
  }
  .hero-photo {
    position: relative !important;
    z-index: 1 !important;
    height: 360px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    align-items: unset !important;
  }
  .hero-photo > div {
    height: 360px !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .hero-photo > div img {
    object-position: center 20% !important;
  }
}

/* ── Hero mobile — final fix ── */
@media (max-width: 768px) {
  .hero-text {
    padding-bottom: 3rem !important;
  }
  .hero-photo > div {
    border-radius: 200px 200px 0 0 !important;
  }
  .hero-photo > div img {
    object-position: center 15% !important;
  }
}

/* ── Two hero versions ── */
.hero-mobile { display: none; }
.hero-desktop { display: block; }
@media (max-width: 768px) {
  .hero-mobile  { display: block !important; }
  .hero-desktop { display: none  !important; }
}

/* ── Service page sticky image columns — fix mobile overlap ── */
@media (max-width: 768px) {
  /* Force grid-2 with sticky image to stack cleanly */
  .grid-2[style*="align-items:start"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .grid-2[style*="align-items:start"] > div[style*="position:sticky"] {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    order: 2 !important;
  }
  .grid-2[style*="align-items:start"] > div:not([style*="position:sticky"]) {
    order: 1 !important;
  }
  .grid-2[style*="align-items:start"] img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
  }

  /* Also fix regular grid-2 sections with photos */
  .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .grid-2 img[style*="height:460px"],
  .grid-2 img[style*="height:480px"],
  .grid-2 img[style*="height:500px"] {
    height: 260px !important;
  }

  /* Trauma types grid — 2 cols on mobile not 4 */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Approach grid in service pages */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}


/* ── Trauma page 01-08 cards — force 2 cols on mobile ── */
@media (max-width: 768px) {
  /* Prevent any grid from overflowing the viewport */
  .container {
    overflow-x: hidden !important;
  }

  /* Trauma signs grid — 2 cols */
  div[style*="grid-template-columns:repeat(4,1fr)"][style*="gap:1.25rem"] {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
  }

  /* Trauma approach section — unstick photo, stack it */
  .grid-2.animate-in[style*="align-items:start"],
  .grid-2[style*="align-items:start"] {
    display: block !important;
  }
  .grid-2[style*="align-items:start"] > div[style*="position:sticky"] {
    position: relative !important;
    top: auto !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }
  .grid-2[style*="align-items:start"] > div[style*="position:sticky"] img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(4,1fr)"][style*="gap:1.25rem"] {
    grid-template-columns: 1fr !important;
  }
}


/* ── Trauma signs grid — proper 2-col stack ── */
@media (max-width: 768px) {
  .trauma-signs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .trauma-signs-grid > div {
    padding: 1.25rem !important;
    min-width: 0 !important;
  }

  /* Trauma approach photo — full width, arch top, no sticky */
  .trauma-photo-col {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
  }
  .trauma-approach-photo {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 200px 200px 0 0 !important;
    display: block !important;
  }
  .trauma-approach-grid {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .trauma-signs-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ── Service approach sections — fix mobile sticky/overlap ── */
@media (max-width: 768px) {
  .service-approach-grid {
    display: block !important;
  }
  .service-sticky-photo {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin-bottom: 2.5rem !important;
  }
  .service-approach-photo {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 200px 200px 0 0 !important;
    display: block !important;
  }
}
