/* ==========================================================================
   D_cake — Design Tokens
   ========================================================================== */
:root {
  /* Brand palette */
  --clr-cream: #FAF0DC;
  --clr-blush: #F5C2D7;
  --clr-gold: #D4A373;
  --clr-slate: #334149;
  --clr-white: #FFFFFF;

  /* Derived tones */
  --clr-cream-soft: #FDF8EE;
  --clr-blush-soft: #FBE3ED;
  --clr-gold-dark: #B9834F;
  --clr-gold-text: #8C5E30;
  --clr-slate-70: rgba(51, 65, 73, 0.74);
  --clr-slate-45: #5b6670;
  --clr-slate-12: rgba(51, 65, 73, 0.12);
  --clr-slate-08: rgba(51, 65, 73, 0.08);
  --clr-gold-15: rgba(212, 163, 115, 0.16);

  /* Semantic tokens */
  --bg-page: var(--clr-cream);
  --bg-surface: var(--clr-white);
  --bg-surface-alt: var(--clr-cream-soft);
  --bg-section-alt: var(--clr-blush-soft);
  --bg-dark: var(--clr-slate);

  --text-primary: var(--clr-slate);
  --text-secondary: var(--clr-slate-70);
  --text-muted: var(--clr-slate-45);
  --text-inverse: var(--clr-cream-soft);
  --text-inverse-muted: rgba(250, 240, 220, 0.7);

  --accent: var(--clr-gold);
  --accent-hover: var(--clr-gold-dark);
  --accent-text: var(--clr-gold-text);
  --accent-soft: var(--clr-gold-15);
  --accent-secondary: var(--clr-blush);

  --border-subtle: var(--clr-slate-12);
  --border-hairline: var(--clr-slate-08);

  --focus-ring: 0 0 0 3px rgba(212, 163, 115, 0.55);

  /* Typography */
  --font-display: "Petrona", "Georgia", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
  --fs-4xl: clamp(2.75rem, 1.9rem + 3.8vw, 4.5rem);

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.65;

  /* Spacing scale (marketing site — spacious) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(51, 65, 73, 0.08);
  --shadow-md: 0 8px 24px rgba(51, 65, 73, 0.10);
  --shadow-lg: 0 20px 48px rgba(51, 65, 73, 0.14);
  --shadow-gold: 0 10px 28px rgba(212, 163, 115, 0.35);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container-w: 1200px;
  --header-h: 76px;

  /* Z-index scale */
  --z-base: 0;
  --z-header: 100;
  --z-scrim: 90;
  --z-fab: 80;
  --z-lightbox: 200;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-4);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--sp-4); color: var(--text-secondary); }
p.lead { font-size: var(--fs-md); color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a, button { touch-action: manipulation; }

section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-7); }
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  background: var(--clr-slate);
  color: var(--clr-cream);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

/* Original brand colors for Facebook/e-mail (Instagram uses its own gradient
   symbol, #icon-instagram-brand, since currentColor can't carry a gradient).
   Selector is bumped to (class,class,type) specificity on purpose — plain
   ".icon-brand-x" would lose to two-class context rules like
   ".contact-list .icon" or ".footer-contact .icon" regardless of source
   order, since those match on class-count alone. */
svg.icon.icon-brand-facebook { color: #1877F2; }
svg.icon.icon-brand-mail { color: #EA4335; }
svg.icon.icon-brand-whatsapp { color: #25D366; }
svg.icon.icon-brand-map { color: #EA4335; }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--sp-3);
}
.eyebrow .icon { color: var(--accent-hover); flex-shrink: 0; margin-top: 3px; }

.muted { color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-base);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--clr-slate);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 32px rgba(212,163,115,0.45); }

/* Signature "shine" sweep — a single quiet flourish reused on the primary
   CTA and gallery tiles, instead of scattering different effects everywhere. */
.btn-primary::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 46%, rgba(255, 255, 255, 0.4) 54%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-primary:hover::after,
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  animation: shine-sweep 850ms var(--ease-out);
}
@keyframes shine-sweep {
  to { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::after,
  .gallery-item:hover::after,
  .gallery-item:focus-visible::after { animation: none; }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-ghost {
  background: var(--clr-slate);
  color: var(--text-inverse);
}
.btn-ghost:hover { background: #24303740; box-shadow: var(--shadow-md); }
.contact-actions .btn-ghost { background: transparent; color: var(--text-inverse); border: 1.5px solid rgba(250, 240, 220, 0.3); }
.contact-actions .btn-ghost:hover { border-color: var(--accent); background: rgba(250, 240, 220, 0.08); color: var(--accent); }

.btn-sm { padding: 10px 18px; min-height: 44px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px 32px; min-height: 54px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 240, 220, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-mark { height: 46px; width: auto; display: block; }

.main-nav ul {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav ul { display: flex; align-items: center; gap: var(--sp-6); }
  .main-nav a {
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: var(--sp-1) 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -2px;
    height: 2px;
    background: var(--accent);
    transition: right var(--dur-base) var(--ease-out);
  }
  .main-nav a:hover::after { right: 0; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-actions .btn-sm span { display: none; }
@media (min-width: 560px) {
  .header-actions .btn-sm span { display: inline; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* Mobile nav drawer
   .nav-clip is a fixed, viewport-sized clipping box (own transform establishes
   the containing block for its fixed .main-nav child) so the off-canvas drawer
   never enlarges the document's scrollable width — without needing overflow-x
   on html/body, which would break position:sticky elsewhere on the page. */
.nav-clip { pointer-events: none; }
.main-nav { pointer-events: auto; }

@media (max-width: 1023.98px) {
  .nav-clip {
    /* .site-header has backdrop-filter, which makes it the containing block
       for fixed descendants — inset:0 would resolve against its 76px-tall
       box instead of the viewport. Use vw/dvh (always viewport-relative)
       so this clipping box is correctly sized regardless of that ancestor. */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    transform: translateZ(0);
    z-index: var(--z-header);
  }
}
@media (min-width: 1024px) {
  .nav-clip { display: contents; }
}

@media (max-width: 1023.98px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100dvh - var(--header-h));
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    z-index: var(--z-header);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-2);
  }
  .main-nav a {
    display: block;
    padding: var(--sp-4) var(--sp-3);
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-sm);
  }
  .main-nav a:active { background: var(--accent-soft); }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(51, 65, 73, 0.4);
  z-index: var(--z-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Cards/tiles get a quieter scale-in instead of the same translateY as text,
   so a grid arriving on screen doesn't move in lockstep with headings. */
.reveal-card {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal-card.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-card { opacity: 1; transform: none; }
}

/* ==========================================================================
   Placeholder photo blocks
   ========================================================================== */
.ph-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: linear-gradient(145deg, var(--clr-blush-soft) 0%, var(--clr-cream-soft) 55%, var(--accent-soft) 100%);
  border: 1px dashed rgba(51, 65, 73, 0.22);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  width: 100%;
}
.ph-photo .ph-icon { width: 34px; height: 34px; opacity: 0.55; }

.ph-square { aspect-ratio: 1 / 1; }
/* .ph-service itself is unstyled here — the full-bleed treatment for these
   four cards is defined by .service-card .ph-service in the Services rules. */

/* Self-filling photo slot: once js drops a real <img> in here, hide the
   placeholder icon/caption and let the photo take over edge-to-edge. */
.ph-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ph-photo-img.is-hidden { display: none; }
.has-photo { border-style: solid; border-color: transparent; background: none; }
.has-photo .ph-icon,
.has-photo > span:not(.ph-photo-img) { display: none; }

/* ==========================================================================
   Hero — scroll-expanding cinematic video/image with overlaid copy
   ========================================================================== */
/* A single, confident hero: a big, permanently-rounded video panel sits
   behind the copy and just plays — no scroll-driven expand/resize gimmick. */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-8);
}

.hero-media-panel {
  position: absolute;
  inset: var(--sp-4);
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--clr-slate);
}
@media (min-width: 1024px) {
  .hero-media-panel { border-radius: 3rem; }
}

.hero-media-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-base) var(--ease-out);
  /* forces its own compositing layer — some mobile browsers fail to paint
     video frames reliably when the only ancestor transform is on a ancestor
     with border-radius clipping (our rounded hero-media-panel) */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.hero-media-el.is-hidden { opacity: 0; pointer-events: none; }

/* Darkens the left portion, where the copy sits, fading out toward the
   right so most of the real cake footage stays fully visible and vivid. */
.hero-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,24,27,0.75) 0%, rgba(20,24,27,0.5) 30%, rgba(20,24,27,0.18) 55%, transparent 72%);
  pointer-events: none;
}
@media (max-width: 1023.98px) {
  .hero-media-scrim { background: linear-gradient(190deg, rgba(20,24,27,0.75) 0%, rgba(20,24,27,0.48) 45%, rgba(20,24,27,0.55) 100%); }
}

.hero-inner { position: relative; z-index: 5; }

.hero-copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-inverse);
}
@media (min-width: 1024px) {
  .hero-copy { margin-inline: 0; text-align: left; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-tag .icon { color: var(--accent); flex-shrink: 0; }

.hero-brand {
  position: relative;
  overflow: hidden;
  font-size: clamp(3rem, 2.2rem + 4vw, 6rem);
  font-style: italic;
  color: var(--text-inverse);
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  margin: var(--sp-4) 0 0;
}
/* Mirrors the real wordmark's proportions (big italic "D" + small upright
   "_CAKE") as live text instead of the low-res logo.png — crisp at hero
   scale and still real, selectable brand-name text for a11y/SEO. */
.hero-brand-cake {
  font-style: normal;
  font-size: 0.42em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* One-time entrance flourish on load, reusing the site's existing
   shine-sweep signature (see .btn-primary/.gallery-item) instead of
   inventing a second animation language — plays once, then sits still,
   so it never competes with the hero video's own motion. */
.hero-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0.45) 54%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
  animation: shine-sweep 1000ms var(--ease-out) 900ms 1 both;
}

.hero-tagline {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  max-width: 40ch;
  margin: var(--sp-5) auto 0;
}
@media (min-width: 1024px) { .hero-tagline { margin-inline: 0; } }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }

.hero-cta .btn-outline {
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--accent);
}

.hero-signature {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  margin: var(--sp-7) 0 0;
}
.hero-note {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  max-width: 42ch;
  margin: var(--sp-4) 0 0;
}

.media-toggle {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--r-pill);
  background: rgba(51, 65, 73, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-inverse);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur-base) var(--ease-out);
}
.media-toggle:hover { background: rgba(51, 65, 73, 0.75); }

@media (max-width: 559.98px) {
  .hero-tagline { font-size: var(--fs-base); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-block: var(--sp-9); }
.about-inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-9); }
.about-visual { position: relative; width: 100%; }

.about-photo-stack { position: relative; width: 100%; aspect-ratio: 1 / 1.15; }
.about-photo { position: absolute; box-shadow: var(--shadow-md); }
.about-photo-front { inset: 0; z-index: 2; box-shadow: var(--shadow-lg); }
.about-photo-back { top: -7%; right: -9%; width: 34%; aspect-ratio: 1 / 1; transform: rotate(7deg); z-index: 1; }

/* Signature moment: a stylized snippet of a real WhatsApp exchange — shows
   "every cake starts with a conversation" instead of just stating it.
   Mobile: a full-width card in normal flow, nudged up over the photo's
   bottom edge — the real (longer) conversation text needs the extra width
   to stay readable without the card growing taller than the photo itself.
   Desktop (≥640px) restores the smaller "pinned note" treatment, where
   there's enough room for it to actually look pinned rather than towering. */
.about-chat {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: calc(-1 * var(--sp-7));
  transform: rotate(-1deg);
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.about-chat-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-1);
}
.about-chat-label .icon { color: var(--accent-hover); }
.chat-bubble { max-width: 92%; border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.chat-bubble p { margin: 0; color: var(--text-primary); }
.chat-in { align-self: flex-start; background: var(--bg-surface-alt); border: 1px solid var(--border-hairline); border-bottom-left-radius: var(--r-sm); }
.chat-out { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: var(--r-sm); }
.chat-meta { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--text-muted); }
.chat-meta .icon { width: 12px; height: 12px; color: var(--accent-hover); }

@media (min-width: 640px) {
  .about-visual { max-width: 420px; margin-inline: auto; margin-bottom: var(--sp-8); }
  .about-chat {
    position: absolute;
    left: -6%;
    bottom: -15%;
    width: min(300px, 72%);
    margin-top: 0;
    transform: rotate(-1.5deg);
    padding: var(--sp-4);
    gap: var(--sp-2);
  }
}

.about-copy .lead { margin-bottom: var(--sp-4); }
.about-list { margin: var(--sp-5) 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.about-list li { display: flex; align-items: center; gap: var(--sp-3); font-weight: 500; font-size: var(--fs-sm); }
.about-list .icon { color: var(--accent-hover); }

@media (min-width: 1024px) {
  .about-inner { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head { max-width: 60ch; margin-bottom: var(--sp-7); }
.section-head.light .eyebrow,
.section-head.light h2 { color: var(--text-inverse); }
.section-head.light .lead { color: var(--text-inverse-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-block: var(--sp-9); background: var(--bg-section-alt); }

.services-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.services-head h2 { margin-bottom: 0; }
.services-head-aside .eyebrow { margin-bottom: var(--sp-3); }
.services-head-aside .lead { margin-bottom: 0; }

@media (min-width: 768px) {
  .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--sp-8); }
  .services-head h2 { max-width: 10ch; }
  .services-head-aside { max-width: 38ch; text-align: right; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Full-bleed photo card: the image fills the whole tile (not just a top
   thumbnail) and the copy sits directly over its bottom edge on a gradient
   scrim — more editorial/premium than a photo-then-white-box stack, and the
   same photo+scrim+text language already used in the gallery and contact
   card, instead of a third, unrelated treatment. */
.service-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover { box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .service-card { transition: box-shadow var(--dur-base) var(--ease-out); }
}

.service-card .ph-service { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.service-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Always at least some darkening, even near the top: with longer copy the
     text block can push up past where a scrim starting fully transparent
     would still be legible against a bright/busy photo. */
  background: linear-gradient(180deg, rgba(20,24,27,0.28) 0%, rgba(20,24,27,0.6) 45%, rgba(20,24,27,0.94) 100%);
  pointer-events: none;
}

.service-body { position: relative; z-index: 2; padding: var(--sp-5); }
.service-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: var(--sp-3); }
.service-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); color: var(--text-inverse); text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.service-body p {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-4);
  color: var(--text-inverse-muted);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent);
}
.service-card:hover .card-link { color: var(--text-inverse); }
.card-link .icon { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .card-link .icon { transform: translateX(3px); }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding-block: var(--sp-9); background: var(--bg-dark); position: relative; z-index: 0; }

/* Subtle, static film-grain on the dark sections — pure texture, no motion,
   so it costs nothing performance-wise and needs no reduced-motion handling.
   `position:relative` + `z-index:0` above/below gives each section its own
   stacking context, so the pseudo-element's z-index:-1 stays contained to it
   instead of sinking behind an earlier section on the page. */
.process::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.process::before { z-index: -1; }
/* On .contact-card the grain sits above the background photo + scrim (see
   below) but still behind the actual copy — explicit z-index steps make the
   stacking deterministic instead of relying on DOM-order tie-breaks. */
.contact-card::before { z-index: 2; }

/* Mobile: a connected vertical timeline — this content is a real, ordered
   sequence, so a threaded line + numbered markers encodes that directly,
   instead of just stacking the same desktop cards narrower. */
.process-grid-wrap { position: relative; }
.process-grid {
  display: block;
}
.process-step {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--sp-6);
}
.process-step:last-child { padding-bottom: 0; }
.process-step::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 1.5px;
  background: rgba(250, 240, 220, 0.18);
}
.process-step:last-child::after { display: none; }

/* Fill line threads through the timeline as the section scrolls into view —
   a literal, honest progress read on genuinely sequential content. */
.process-progress-line {
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 24px;
  width: 1.5px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .process-progress-line { display: none; }
}
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250, 240, 220, 0.06);
  border: 1.5px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--accent);
  margin-bottom: 0;
  transition: background var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
/* Lit up once the scroll-filled line reaches this step — same progress
   value that drives the line, so the circles read as real checkpoints. */
.step-num.is-reached {
  background: var(--accent);
  color: var(--clr-slate);
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .step-num { transition: none; }
}
.process-step > .icon { display: none; }
.process-step h3 { color: var(--text-inverse); font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.process-step p { color: var(--text-inverse-muted); font-size: var(--fs-base); margin: 0; }

/* Tablet/desktop: revert to the grid-of-cards layout with icon + number stacked */
@media (min-width: 640px) {
  .process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .process-step { padding-left: 0; padding-bottom: 0; padding-top: var(--sp-3); }
  .process-step::after { display: none; }
  .process-progress-line { display: none; }
  .step-num {
    position: static;
    display: block;
    width: auto; height: auto;
    border: none;
    background: none;
    opacity: 0.8;
    margin-bottom: var(--sp-3);
  }
  .process-step > .icon { display: block; width: 30px; height: 30px; color: var(--accent); margin-bottom: var(--sp-3); }
  /* .step-num.is-reached (mobile timeline state) has the same specificity as
     the base .step-num reset above and would otherwise silently win on source
     order alone once a step lights up — pin the desktop text-only look here. */
  .step-num.is-reached { background: none; color: var(--accent); transform: none; }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid rgba(250, 240, 220, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}
.process-footer p { color: var(--text-inverse-muted); max-width: 60ch; margin: 0; }
.process-footer .btn-outline {
  color: var(--text-inverse);
  border-color: rgba(250, 240, 220, 0.3);
}
.process-footer .btn-outline:hover { background: rgba(250, 240, 220, 0.08); border-color: var(--accent); }
@media (min-width: 768px) {
  .process-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-6); }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding-block: var(--sp-9); }

.gallery-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}
.gallery-head-main .lead { margin-bottom: 0; }
.gallery-ig-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}
.gallery-ig-link .icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.gallery-ig-link:hover .icon { transform: translateX(3px); }

@media (min-width: 768px) {
  .gallery-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--sp-7); }
  .gallery-head-main { max-width: 56ch; }
}

/* Coverflow-style horizontal carousel — drag or scroll sideways through the
   gallery; each card tilts/scales by its distance from the track's center
   (computed in JS), evoking the curved arc of a circular gallery without
   pulling in a WebGL dependency for a static marketing site. */
.gallery-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-inline: var(--sp-5);
  perspective: 1400px;
}
.gallery-track {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-2) var(--sp-8);
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.gallery-item {
  position: relative;
  scroll-snap-align: center;
  flex: 0 0 clamp(200px, 30vw, 300px);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 1px dashed rgba(51, 65, 73, 0.22);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--clr-blush-soft) 0%, var(--clr-cream-soft) 55%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-base) var(--ease-out);
  will-change: transform, opacity;
}
.gallery-item:focus-visible { box-shadow: var(--shadow-lg); }
.gallery-item:has(.has-photo) { border-color: transparent; background: none; }

/* Pagination dots — now a universal "this scrolls sideways" signal since
   the carousel replaces the desktop grid too, not just the mobile filmstrip. */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.gallery-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gallery-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.gallery-dot.is-active::after { background: var(--accent); transform: scale(1.4); }

.gallery-nav {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.gallery-nav:hover { background: var(--accent-soft); }
.gallery-nav:active { transform: scale(0.9); }
.gallery-nav .icon { transition: transform 0.2s var(--ease-out); }
.gallery-nav-prev:hover .icon { transform: translateX(-2px); }
.gallery-nav-next:hover .icon { transform: translateX(2px); }
@media (min-width: 768px) {
  .gallery-nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item { transform: none !important; opacity: 1 !important; }
}

.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-ph .ph-icon { width: 34px; height: 34px; color: var(--text-muted); opacity: 0.55; }
.gallery-item:hover .gallery-ph,
.gallery-item:focus-visible .gallery-ph { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: linear-gradient(180deg, transparent 0%, rgba(51, 65, 73, 0.65) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

/* Below 768px there's no hover (touch), and tapping a card opens the
   lightbox before :focus-visible has a chance to apply — without this,
   the caption + "Powiększ" hint would never be seen by ~90% of visitors. */
@media (max-width: 767.98px) {
  .gallery-caption { opacity: 1; transform: translateY(0); }
}

.gallery-caption-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-inverse);
  text-align: left;
}
.gallery-caption-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-inverse);
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-caption-tag .icon { width: 13px; height: 13px; }


/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding-block: var(--sp-9); background: var(--bg-section-alt); overflow: hidden; }
.testi-track-wrap { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding-inline: var(--sp-5); }

/* Pagination dots — same pattern as .gallery-dots, so the two "swipe
   through cards" carousels on the site read as one consistent language
   instead of only one of them signaling "there's more, swipe." */
.testi-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.testi-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.testi-dot.is-active::after { background: var(--accent); transform: scale(1.4); }
.testi-track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-2) var(--sp-1) var(--sp-6);
  scrollbar-width: none;
  flex: 1;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(340px, 82vw);
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: var(--sp-3); }
.quote-icon { width: 30px; height: 30px; color: var(--accent-soft); margin-bottom: var(--sp-2); }
.testi-card p { color: var(--text-primary); font-size: var(--fs-md); font-family: var(--font-display); font-weight: 500; font-style: italic; margin-bottom: var(--sp-5); }
.testi-author { display: flex; align-items: center; gap: var(--sp-3); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--clr-slate); color: var(--clr-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: var(--fs-sm); }
.testi-author span { font-size: var(--fs-xs); color: var(--text-muted); }

.testi-nav {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), transform 0.15s var(--ease-out);
}
.testi-nav:hover { background: var(--accent-soft); }
.testi-nav:active { transform: scale(0.9); }
.testi-nav .icon { transition: transform 0.2s var(--ease-out); }
.testi-prev:hover .icon { transform: translateX(-2px); }
.testi-next:hover .icon { transform: translateX(2px); }
@media (min-width: 768px) {
  .testi-nav { display: flex; }
}

.google-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}
.google-cta .icon { width: 28px; height: 28px; }
.google-cta p { margin: 0; font-size: var(--fs-sm); max-width: 46ch; }

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.faq { padding-block: var(--sp-9); }
.faq-inner { max-width: 1100px; }

.faq-grid {
  display: grid;
  gap: var(--sp-7);
}
.faq-intro .lead { margin-bottom: 0; }
.faq-intro .lead a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-9); align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

.accordion-item {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  padding-left: var(--sp-4);
  border-left: 2px solid transparent;
  transition: border-left-color var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out);
}
.accordion-item.is-open {
  border-left-color: var(--accent);
  background-color: var(--accent-soft);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  min-height: 44px;
}
.acc-icon { color: var(--accent-hover); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(135deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.accordion-panel > p {
  padding-right: var(--sp-6);
  padding-bottom: var(--sp-5);
  margin: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-block: var(--sp-9); }
.contact-card {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-5);
  display: grid;
  gap: var(--sp-7);
  position: relative;
  z-index: 0;
  overflow: hidden;
}
/* Grid items default to min-width:auto, so a long nowrap button label
   ("Zapytaj o większą realizację") was forcing this column wider than the
   card's own padded width — silently clipped by overflow:hidden above.
   min-width:0 lets the track respect the intended width instead. */
.contact-copy, .contact-actions { min-width: 0; }
/* Real product photo, slowly panning/zooming behind the copy — a genuine
   signature moment tied to actual content, instead of an abstract animated
   background. Static (no animation) under prefers-reduced-motion. */
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg .ph-photo-img {
  animation: contact-kenburns 28s ease-in-out infinite alternate;
}
@keyframes contact-kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-bg .ph-photo-img { animation: none; }
}
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(20,24,27,0.94) 0%, rgba(20,24,27,0.86) 45%, rgba(20,24,27,0.55) 100%);
  pointer-events: none;
}

.contact-copy, .contact-actions { position: relative; z-index: 3; }

.contact-copy h2, .contact-copy .eyebrow { color: var(--text-inverse); }
.contact-copy .lead { color: var(--text-inverse-muted); }

/* .about-list is reused here for the "what to include in your message" list —
   it has no built-in text color (relies on the light-page default), so it
   needs an explicit inverse color + accent to stay legible on this dark card. */
.contact-info-list { margin: var(--sp-5) 0; }
.contact-info-list li { color: var(--text-inverse); }
.contact-info-list .icon { color: var(--accent); }

.contact-note { color: var(--text-inverse-muted); font-size: var(--fs-sm); margin-top: var(--sp-5); }

.contact-list { display: flex; flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-6); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 2px; }
.contact-list strong { display: block; color: var(--text-inverse); font-size: var(--fs-sm); margin-bottom: 2px; }
.contact-list span, .contact-list a { display: block; color: var(--text-inverse-muted); font-size: var(--fs-sm); }
.contact-list a:hover { color: var(--accent); }

.contact-actions { display: flex; flex-direction: column; gap: var(--sp-3); align-self: center; }
.contact-actions .btn-outline { color: var(--text-inverse); border-color: rgba(250,240,220,0.3); }
.contact-actions .btn-outline:hover { background: rgba(250,240,220,0.08); border-color: var(--accent); }

@media (min-width: 1024px) {
  .contact-card { grid-template-columns: 1.1fr 0.9fr; padding: var(--sp-8); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--clr-slate); color: var(--text-inverse-muted); padding-top: var(--sp-8); }
.footer-inner {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(250, 240, 220, 0.14);
}
.footer-brand .logo { color: var(--text-inverse); }
.footer-brand p { max-width: 42ch; margin: var(--sp-4) 0; font-size: var(--fs-sm); color: var(--text-inverse-muted); }
.footer-social { display: flex; gap: var(--sp-3); }
.social-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(250, 240, 220, 0.08);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform 0.25s var(--ease-out);
}
.social-btn:hover { background: var(--accent); color: var(--clr-slate); transform: translateY(-3px) rotate(-8deg); }
.social-btn:active { transform: translateY(-1px) rotate(-4deg) scale(0.95); }
@media (prefers-reduced-motion: reduce) {
  .social-btn:hover, .social-btn:active { transform: none; }
}

.footer-nav h4, .footer-contact h4 {
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-nav a, .footer-contact a { font-size: var(--fs-sm); color: var(--text-inverse-muted); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact p { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); margin-bottom: var(--sp-3); color: var(--text-inverse-muted); }
.footer-contact .icon { color: var(--accent); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 0.8fr 1fr; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  font-size: var(--fs-xs);
}
.footer-bottom p { color: var(--text-inverse-muted); margin: 0; }
.footer-bottom p.muted { color: rgba(250, 240, 220, 0.5); }

/* ==========================================================================
   Floating elements
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: var(--z-fab);
  transition: transform var(--dur-fast) var(--ease-out);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp .icon { width: 28px; height: 28px; }

.back-to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: calc(var(--sp-5) + 74px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(51, 65, 73, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  z-index: var(--z-lightbox);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-photo { width: min(480px, 100%); aspect-ratio: 4/5; background: var(--clr-slate); border-color: rgba(250,240,220,0.3); color: var(--text-inverse-muted); }
.lightbox-close {
  position: absolute;
  top: var(--sp-5); right: var(--sp-5);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250,240,220,0.12);
  color: var(--text-inverse);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--accent); color: var(--clr-slate); }

/* Service detail modal — opened from an Oferta tile, shows the photo full
   size plus a longer description and a WhatsApp CTA specific to that
   category, so ordering stays one tap away instead of disappearing once
   the tile stopped being a direct link. */
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(51, 65, 73, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  z-index: var(--z-lightbox);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.service-modal.is-open { opacity: 1; pointer-events: auto; }
.service-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  margin-block: auto;
}
.service-modal-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.service-modal-photo .ph-photo-img { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.service-modal-body { padding: var(--sp-6) var(--sp-5) var(--sp-5); }
.service-modal-body h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); color: var(--text-primary); }
.service-modal-body p { color: var(--text-secondary); line-height: var(--lh-body); margin-bottom: var(--sp-5); }
.service-modal-close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(20,24,27,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.service-modal-close:hover { background: var(--accent); color: var(--clr-slate); }

/* ==========================================================================
   Utility
   ========================================================================== */
@media (max-width: 767.98px) {
  h1 { font-size: var(--fs-4xl); }
}
