/* =========================================================
   Mavaortodent – stiluri
   Structură și stil după markmurphydds.com: antet transparent
   peste poze mari, casete crem și maro, butoane drepte,
   Manrope pentru titluri și Work Sans pentru text.
   ========================================================= */

:root {
  --brown: #4B392D;
  --brown-header: #644A3B;
  --ink: #2D1709;
  --cream: #ECE6DA;
  --panel: #F1EDE5;
  --white: #FFFFFF;
  --gold: #D4B483;
  --gold-fab: #E3C892;
  --muted: #5C4A3E;
  --line: rgba(45, 23, 9, .14);

  --head: "Manrope", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;

  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(4rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .01em;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 600; }
h1 strong, h2 strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2 * var(--gutter), 1300px);
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section-cream { background: var(--cream); }
.section-brown { background: var(--brown); color: var(--white); }

.center { text-align: center; }
.intro {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.intro p { margin-top: 1.25rem; font-size: 1.05rem; }

.lead { font-size: 1.05rem; max-width: 60ch; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 20px;
  border: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: .1rem;
}
.btn-brown { background: var(--brown); color: var(--white); }
.btn-brown:hover { background: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--cream); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  text-decoration: none;
}
.link-more::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.link-more:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  transition: background-color .3s, border-color .3s;
}
.header.scrolled,
.header.menu-open {
  background: var(--brown-header);
  border-bottom-color: transparent;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem clamp(16px, 4vw, 64px);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }
.nav-cta { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img { width: 58px; height: 58px; }
.brand .brand-logo { width: auto; height: 48px; }
.brand-text {
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  place-items: center;
}
.bars, .bars::before, .bars::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero cu poză (toate paginile) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 900px);
  display: grid;
  place-items: center;
  padding: 150px var(--gutter) 90px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero.short { min-height: min(78svh, 720px); }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 32, 28, .55);
  z-index: -1;
}
.hero-content { max-width: 820px; }
.hero h1 strong { display: block; }
.hero-sub {
  margin-top: 1.75rem;
  font-family: var(--head);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
}
.hero-text { margin-top: 1.5rem; font-size: 1.15rem; font-weight: 500; }
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: .95rem;
  opacity: .9;
}
.breadcrumb a { color: inherit; }

/* ---------- Despre (poză + casetă maro) ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--brown);
  color: var(--white);
}
.about img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 640px;
  object-fit: cover;
  object-position: 50% 35%;
}
.about-box {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- De ce noi (carusel) ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-left: max(var(--gutter), (100% - 1300px) / 2);
}
.why-text { display: grid; gap: 1.25rem; padding-top: 1rem; }
.why-text p { font-size: 1.05rem; }

.carousel { min-width: 0; }
.carousel-track {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.25rem;
  padding-right: var(--gutter);
}
.carousel-arrows { display: flex; gap: .9rem; }
.carousel-arrows button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  background: var(--cream);
  color: var(--brown);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.carousel-arrows button:hover { background: var(--brown); color: var(--white); }
.carousel-arrows svg { width: 16px; height: 16px; }
.section-brown .carousel-arrows button { border-color: var(--white); background: transparent; color: var(--white); }
.section-brown .carousel-arrows button:hover { background: var(--white); color: var(--brown); }
.carousel-dots { display: flex; gap: .4rem; }
.carousel-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(45, 23, 9, .3);
}
.carousel-dots span.active { background: var(--ink); }
.section-brown .carousel-dots span { background: rgba(255, 255, 255, .35); }
.section-brown .carousel-dots span.active { background: var(--white); }

.why-card {
  width: 254px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  background: var(--cream);
}
.why-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card p { font-family: var(--head); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }

/* ---------- Echipa (carduri alternante) ---------- */
.team-cards { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
}
.team-card:nth-child(even) > :first-child { order: 2; }
.team-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 600px;
  object-fit: cover;
  object-position: 50% 30%;
}
.team-card-text {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}

/* Carusel de poze din cabinet */
.office-track .office-slide {
  width: min(78vw, 640px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.office-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Recenzii ---------- */
.review-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.6rem;
  background: var(--panel);
  color: var(--ink);
}
.stars { color: var(--brown); font-size: 1.35rem; letter-spacing: .12em; }
.review-card p { font-size: .97rem; }
.review-card footer { margin-top: auto; font-size: .9rem; font-weight: 600; }

.video-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.video-frame {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.rating-box { display: grid; gap: 1rem; justify-items: start; }
.rating-box > strong {
  font-family: var(--head);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
}

/* ---------- Servicii (carduri cu poză) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-grid.two { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.service-grid.two .service-card img { aspect-ratio: 1 / .85; }
.service-card-body {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}
.service-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.35;
}
.service-card p { font-size: .95rem; }
.service-card .link-more { margin-top: auto; }
.section-actions { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------- Pacient nou (casetă albă peste poză) ---------- */
.start {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  display: grid;
  place-items: center;
}
.start-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.start-box {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 540px;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.start-box h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

/* ---------- Formular ---------- */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-section > img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: cover;
}
.form { display: grid; gap: 1.1rem; }
.form > p { font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .95rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #CFC6B8;
  border-radius: 0;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 2px rgba(75, 57, 45, .2); }
.form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--muted); }

/* ---------- Pagini interioare ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
}
.service-detail + .service-detail { margin-top: clamp(2.5rem, 6vw, 4rem); }
.service-detail:nth-of-type(even) > :first-child { order: 2; }
.service-detail > img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  max-height: 600px;
  object-fit: cover;
  object-position: 50% 30%;
}
.service-detail-text {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.service-detail-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .35em;
  width: .45rem; height: .8rem;
  border-right: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
  transform: rotate(45deg);
}
.section-brown .checklist li::before { border-color: var(--gold); }

.urgent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--brown);
  color: var(--white);
}
.urgent h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.urgent p { margin-top: .75rem; max-width: 60ch; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: pas;
}
.steps li {
  counter-increment: pas;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  color: var(--ink);
}
.steps li::before {
  content: counter(pas);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.steps p { font-size: .95rem; }

.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}
.faq details + details { margin-top: .75rem; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brown);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; max-width: 70ch; }

/* Echipa */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.member { background: var(--white); }
.member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}
.member-body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .35rem; }
.member h3 { font-size: 1.3rem; font-weight: 700; color: var(--brown); }
.member-role { font-weight: 600; font-size: .9rem; }
.member p:last-child { font-size: .93rem; }

.team-photo img { width: 100%; }

.portraits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.portraits img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }

/* Rezultate */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.result { background: var(--white); }
.result button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.result img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.result figcaption { padding: 1.1rem 1.25rem 1.3rem; font-size: .95rem; }
.result figcaption strong {
  display: block;
  font-family: var(--head);
  font-size: 1.15rem;
  color: var(--brown);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(20, 14, 10, .88); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; }
.lightbox-close {
  position: fixed;
  top: 1rem; right: 1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Blog */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
}
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  flex: 1;
}
.post-meta { font-size: .88rem; color: var(--muted); }
.post-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--brown); line-height: 1.35; }
.post-card p { font-size: .95rem; }
.post-card .link-more { margin-top: auto; }

.prose {
  max-width: 70ch;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 2em;
  font-weight: 700;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brown); }
.prose blockquote {
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.45;
}
.prose a { color: var(--brown); font-weight: 500; }
.note {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--brown);
  color: var(--white);
  font-size: 1rem;
}
.note a { color: var(--gold); }

/* Contact */
.contact-list { display: grid; }
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { font-weight: 600; }
.contact-list dd a { text-underline-offset: 3px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}
.status.open::before { background: #52C27A; }

.map { min-height: 380px; background: var(--cream); margin-top: 2rem; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brown);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1.2fr .8fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo img { width: auto; height: 90px; }
.footer-logo p { margin-top: .75rem; font-family: var(--head); font-weight: 700; font-size: 1.3rem; }
.footer h3 {
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .8rem;
}
.footer p + p { margin-top: .3rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  font-size: .88rem;
}
.footer-social { display: flex; gap: 1.25rem; }
.footer-social svg { width: 20px; height: 20px; }

/* ---------- Butoane plutitoare ---------- */
.fabs {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  display: grid;
  gap: .7rem;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(45, 23, 9, .5);
  transition: transform .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25D366; }
.fab-call { background: var(--gold-fab); }
.fab-call svg { width: 25px; height: 25px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 1.25rem; }
  .header-actions .btn-white { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portraits { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: grid; }
  .brand { justify-self: start; order: -1; }
  .header-actions .btn { padding: 12px 16px; font-size: .9rem; }
  .header-actions .btn::after { display: none; }
  .nav {
    position: fixed;
    inset: 98px 0 auto;
    max-height: calc(100svh - 98px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--brown-header);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; }
  .nav-cta { display: inline-flex; margin-top: 1.25rem; border-bottom: 0 !important; }

  .about,
  .team-card,
  .service-detail,
  .form-section,
  .video-row { grid-template-columns: 1fr; }
  .team-card:nth-child(even) > :first-child,
  .service-detail:nth-of-type(even) > :first-child { order: 0; }
  .about img, .team-card img, .service-detail > img { min-height: 0; max-height: 420px; }
  .why { grid-template-columns: 1fr; padding-left: var(--gutter); }
  .results-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .urgent { grid-template-columns: 1fr; }
  .urgent .btn { justify-self: start; }
  .video-row { justify-items: center; text-align: center; }
  .rating-box { justify-items: center; }
}

@media (max-width: 600px) {
  .header-inner { padding-block: .9rem; }
  .brand img { width: 46px; height: 46px; }
  .brand .brand-logo { width: auto; height: 44px; }
  .brand-text { font-size: 1.15rem; }
  .header-actions .btn { display: none; }
  .nav { inset: 78px 0 auto; max-height: calc(100svh - 78px); }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .service-grid,
  .service-grid.two,
  .results-grid,
  .posts-grid,
  .team-grid,
  .steps,
  .form-row { grid-template-columns: 1fr; }
  .portraits { grid-template-columns: repeat(2, 1fr); }
  .service-card img { aspect-ratio: 16 / 11; }
  .why-card { width: 230px; min-height: 260px; }
  .review-card { width: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: .2rem; }
  .fab { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.about-box .checklist li::before { border-color: var(--gold); }
.brand .brand-logo, .footer-logo img { filter: brightness(0) invert(1); }
