/* Carisa Vet Medical — performance-first stylesheet */
:root {
  --teal: #055a57;
  --teal-deep: #043f3d;
  --teal-soft: #d8efed;
  --coral: #b83a24;
  --coral-hover: #9a2f1d;
  --ink: #122029;
  --muted: #3a4a54;
  --line: #d5e3e1;
  --paper: #f5f9f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 78, 76, 0.12);
  --radius: 1.25rem;
  --max: 72rem;
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Sora", "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(10, 107, 104, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(224, 90, 60, 0.08), transparent 55%),
    var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, .brand-name {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 249, 248, 0.88);
  border-bottom: 1px solid rgba(213, 227, 225, 0.8);
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--teal-deep);
}
.brand-tag {
  display: block;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
}

.header-phone-desktop {
  display: none;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.header-call-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 0.75rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0.5rem;
}
.header-call-mobile:hover { color: #fff; background: var(--coral-hover); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 4.5rem 0 auto 0;
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 90;
}
body.nav-open { overflow: hidden; }
.site-nav.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.has-submenu {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.has-submenu > .nav-parent {
  grid-column: 1;
}
.submenu-toggle {
  grid-column: 2;
  width: 2.75rem;
  height: 2.75rem;
  height: 2.5rem;
  margin-right: 0.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.submenu-toggle::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.has-submenu.is-open > .submenu-toggle::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem 0.75rem;
  grid-column: 1 / -1;
}
.has-submenu.is-open > .submenu {
  display: grid;
  gap: 0.15rem;
}
.submenu a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 90, 60, 0.28);
}
.btn-primary:hover { background: var(--coral-hover); color: #fff; }
.btn-secondary {
  background: var(--white);
  color: var(--teal-deep);
  border: 1px solid var(--line);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(18rem, 42vh, 26rem);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(6, 40, 42, 0.62) 0%, rgba(6, 40, 42, 0.32) 45%, rgba(6, 40, 42, 0.18) 100%);
}
.hero-content {
  padding: 2.75rem 0;
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.55em;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero .lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  max-width: 32rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero .btn-group {
  margin-top: 0.15rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.muted { color: var(--muted); }
.answer {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 46rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1f20;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #0b1f20;
}
.video-facade-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-facade-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.25rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: 0.85rem;
  background: #ff0033;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.video-facade-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}
.video-facade-play:hover .video-facade-btn,
.video-facade-play:focus-visible .video-facade-btn {
  background: #cc0000;
  transform: translate(-50%, -50%) scale(1.06);
}
.video-facade.is-playing .video-facade-play { display: none; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}
.pill {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.feature {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
  color: var(--teal-deep);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.feature-num {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.service-list {
  display: grid;
  gap: 1rem;
}
.service-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}
.service-item h2,
.service-item h3 {
  font-size: 1.35rem;
  color: var(--teal-deep);
}
.service-item .answer { margin-bottom: 0.75rem; }

.service-menu-list {
  display: grid;
  gap: 0.85rem;
}
.service-menu-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.service-menu-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  color: var(--teal-deep);
}
.service-menu-card p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-menu-card span {
  font-weight: 700;
  color: var(--coral);
  font-size: 0.92rem;
}

.service-single {
  max-width: 46rem;
}
.service-single .answer {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.service-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.service-pager a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-deep);
}
.service-pager a:last-child { text-align: right; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-table caption {
  text-align: left;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1rem 0 0.75rem;
  color: var(--teal-deep);
}
.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.price-table th { background: var(--teal-soft); font-size: 0.92rem; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child {
  font-weight: 700;
  white-space: nowrap;
  color: var(--teal-deep);
}
.price-block {
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(6, 40, 42, 0.16);
  outline: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 40, 42, 0.9);
}
.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 56px 72px;
}
.gallery-lightbox-figure {
  margin: 0;
  max-width: min(1100px, calc(100vw - 144px));
  max-height: calc(100vh - 112px);
  text-align: center;
}
.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.gallery-lightbox-caption {
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.95rem;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.gallery-lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.8rem;
}
.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
}
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
body.gallery-lightbox-open { overflow: hidden; }

@media (max-width: 767px) {
  .gallery-lightbox-dialog { padding: 48px 12px; }
  .gallery-lightbox-figure { max-width: calc(100vw - 24px); }
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--teal-deep);
  margin: 0 0 0.5rem;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal-deep);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.65rem; }
.faq details p { margin: 0; color: var(--muted); }

.page-hero {
  position: relative;
  min-height: 16rem;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* doar o bandă ușoară jos pentru lizibilitatea titlului */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.55) 100%);
}
.page-hero .wrap { padding: 4rem 0 2rem; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.page-hero .hero-kicker {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.contact-card h2 {
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin-bottom: 0.35em;
}
.contact-card p,
.contact-card a { margin: 0; }

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--paper);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.alert {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}
.alert-ok { background: #e5f7ef; color: #0d5c3d; }
.alert-err { background: #fde8e4; color: #8a2d1c; }

.map-embed {
  border: 0;
  width: 100%;
  min-height: 18rem;
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.05);
}

.cta-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 4rem 0;
}
.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 78, 76, 0.92), rgba(6, 78, 76, 0.72));
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.95);
  padding: 3rem 0 2rem;
}
.site-footer a { color: #fff; }
.site-footer p { color: rgba(255, 255, 255, 0.95); }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-nav a { text-decoration: none; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .header-phone-desktop { display: inline; }
  .header-call-mobile { display: none; }
  .nav-toggle { display: none; }
  body.nav-open { overflow: visible; }
  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .site-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }
  .site-nav a {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
  }
  .has-submenu {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .submenu-toggle { display: none; }
  .has-submenu > .nav-parent {
    padding-right: 1.35rem;
    position: relative;
  }
  .has-submenu > .nav-parent::after {
    content: "";
    position: absolute;
    right: 0.45rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
  }
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 22rem;
    max-width: min(28rem, 90vw);
    margin: 0;
    padding: 0.5rem;
    padding-top: calc(0.5rem + 0.4rem);
    background: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    z-index: 80;
    /* bridge: keep hover while moving from parent into menu */
    border-top: 0.4rem solid transparent;
  }
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu,
  .has-submenu.is-open > .submenu {
    display: grid;
    gap: 0.1rem;
  }
  .submenu a {
    white-space: normal;
    line-height: 1.35;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

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