/* ==========================================================================
   Vetpet Veteriner Kliniği — Edirne
   Palette drawn from the clinic itself: anthracite walls, bone-tile floors,
   the mustard armchair in the lounge, royal-blue scrubs.
   ========================================================================== */

:root {
  --ink: #26292b;
  --ink-2: #33393c;
  --ink-soft: #565e62;
  --paper: #fbf9f4;
  --paper-2: #f2ecdf;
  --amber: #e9a13b;
  --amber-deep: #b87717;
  --blue: #3d5a80;
  --wa: #1fab55;
  --line: rgba(38, 41, 43, 0.12);
  --radius: 16px;
  --arch: 12rem 12rem var(--radius) var(--radius);
  --shadow: 0 12px 40px -12px rgba(38, 41, 43, 0.25);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amber-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Top bar — 7/24 emergency line
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #e9e5da;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  color: var(--amber);
}

.topbar .acil {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar .acil .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--amber-deep) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
}

.btn-amber:hover {
  background: var(--amber-deep);
  color: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: #148a41;
}

.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .btn-ghost {
  color: #fff;
}

.on-dark .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Pulse divider — the clinic's heartbeat, used between sections
   -------------------------------------------------------------------------- */

.pulse-divider {
  display: block;
  width: min(420px, 70%);
  margin: 0 auto;
  color: var(--amber);
}

.pulse-divider svg {
  width: 100%;
  height: 28px;
  display: block;
}

.pulse-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: #efece4;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero .eyebrow {
  color: var(--amber);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5em;
}

.hero h1 .hl {
  color: var(--amber);
  font-style: normal;
}

.hero .lede {
  font-size: 1.15rem;
  color: #c9c4b8;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-figure {
  position: relative;
  justify-self: center;
}

.hero-figure img {
  border-radius: var(--arch);
  width: min(380px, 100%);
  box-shadow: var(--shadow);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 70%;
  height: 70%;
  border: 2px solid var(--amber);
  border-radius: var(--arch);
  z-index: -1;
  opacity: 0.6;
}

.hero-badge {
  position: absolute;
  left: -1rem;
  bottom: 1.6rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-badge .stars {
  color: var(--amber-deep);
  letter-spacing: 0.1em;
}

.hero-badge small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Stats strip */

.stats {
  background: var(--amber);
  color: var(--ink);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding-block: 1.4rem;
  gap: 1rem;
}

.stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stats .stat span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-alt {
  background: var(--paper-2);
}

.section-dark {
  background: var(--ink);
  color: #e9e5da;
}

.section-dark h2 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 22ch;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .lede {
  color: var(--ink-soft);
  max-width: 46rem;
  font-size: 1.1rem;
}

.section-dark .lede {
  color: #b8b3a6;
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

.card .card-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

/* Service detail rows (hizmetler page) */

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.3rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--amber);
  display: grid;
  place-items: center;
}

.service-row .icon svg {
  width: 28px;
  height: 28px;
}

.service-row h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}

.service-row p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.service-row ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  columns: 2;
  column-gap: 2.5rem;
  max-width: 46rem;
}

.service-row ul li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

/* --------------------------------------------------------------------------
   Split (image + text) blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse > .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--arch);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.split-media.landscape img {
  border-radius: var(--radius);
}

.split-body .checklist {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.split-body .checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-weight: 500;
}

.split-body .checklist li::before {
  content: "✚";
  color: var(--amber-deep);
  font-size: 0.85em;
  flex: none;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-dark .review {
  background: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e9e5da;
}

.review .stars {
  color: var(--amber);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.review blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.review cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-dark .review cite {
  color: #b8b3a6;
}

.review-source {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-dark .review-source {
  color: #b8b3a6;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

.gallery-grid a.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption,
.gallery-grid .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(38, 41, 43, 0.75));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-grid a:hover .cap,
.gallery-grid a:focus-visible .cap {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
}

.lightbox::backdrop {
  background: rgba(20, 22, 23, 0.88);
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
}

.lightbox .lb-cap {
  color: #d8d3c6;
  text-align: center;
  padding: 0.8rem 0 0;
  font-size: 0.95rem;
}

.lightbox .lb-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--amber);
  color: var(--ink);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px dashed var(--amber);
  opacity: 0.35;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4em;
}

.cta-band p {
  color: #c9c4b8;
  margin: 0;
}

.cta-band .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

.cta-band .btn {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
}

.contact-item .icon svg {
  width: 22px;
  height: 22px;
}

.contact-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact-item a {
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item .muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.acil-note {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.95rem;
}

.acil-note .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  animation: blink 2.4s ease-in-out infinite;
}

/* FAQ */

.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--amber-deep);
  transition: transform 0.2s;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0.8rem 0 0.2rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--ink);
  color: #e9e5da;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.3em;
}

.page-hero .lede {
  color: #b8b3a6;
  max-width: 46rem;
  font-size: 1.12rem;
  margin: 0;
}

.page-hero .eyebrow {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #b8b3a6;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #d8d3c6;
  text-decoration: none;
  font-size: 0.96rem;
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.8rem;
}

.site-footer .brand .brand-sub {
  color: #b8b3a6;
}

.site-footer .foot-desc {
  font-size: 0.94rem;
  max-width: 30rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   WhatsApp floating button
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.wa-float .wa-label {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}

.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label {
  opacity: 1;
  transform: translateX(0);
}

.wa-float .wa-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgba(31, 171, 85, 0.55);
  position: relative;
}

.wa-float .wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: wa-pulse 2.6s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wa-float .wa-btn::before,
  .topbar .acil .dot,
  .acil-note .dot {
    animation: none;
  }
  .gallery-grid img,
  .card {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .container,
  .split,
  .split.reverse,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .split.reverse > .split-media {
    order: 0;
  }

  .hero-figure {
    order: -1;
  }

  .hero-figure img {
    width: min(320px, 80vw);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats .container {
    grid-template-columns: 1fr 1fr;
  }

  .service-row ul {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.2rem 1.2rem;
    gap: 0.2rem;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
    border-radius: 10px;
  }

  .topbar .hide-mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid a.tall {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .wa-float .wa-label {
    display: none;
  }

  .wa-float .wa-btn {
    width: 56px;
    height: 56px;
  }
}
