@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --color-ink: #1A1A18;
  --color-paper: #F7F5EF;
  --color-paper-alt: #EFEBE1;
  --color-card: #FFFFFF;
  --color-slate: #3E5668;
  --color-slate-dark: #2A3C49;
  --color-ember: #A8571F;
  --color-ember-dark: #874513;
  --color-border: #DDD7C8;
  --color-muted-foreground: #5C584C;
  --color-destructive: #B3261E;
  --color-on-dark: #F7F5EF;
  --color-whatsapp: #25D366;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --shadow-sm: 0 1px 2px rgba(26,26,24,0.06);
  --shadow-md: 0 4px 10px rgba(26,26,24,0.10);
  --shadow-lg: 0 12px 24px rgba(26,26,24,0.12);
  --shadow-xl: 0 24px 48px rgba(26,26,24,0.16);

  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1180px;
  --nav-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Faint, fixed film-grain texture — a quiet premium/tactile finish across
   the whole page rather than a flat digital fill. Decorative only. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce), (max-width: 480px) {
  body::after { display: none; }
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 var(--space-md); color: var(--color-ink); }
a { color: var(--color-slate); text-decoration: none; }
a:hover { color: var(--color-slate-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.eyebrow {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-ember-dark);
  margin-bottom: var(--space-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-md); top: -60px;
  background: var(--color-ink); color: var(--color-paper);
  padding: 10px 18px; border-radius: var(--radius); z-index: 200;
  transition: top 200ms ease;
}
.skip-link:focus { top: var(--space-md); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-slate);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 14px 28px;
  border-radius: var(--radius); font-family: 'Barlow', sans-serif;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.92rem; cursor: pointer; border: 2px solid transparent;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.btn-primary { background: var(--color-slate); color: #fff; }
.btn-primary:hover { background: var(--color-slate-dark); color: #fff; transform: translateY(-1px); }
.btn-ember { background: var(--color-ember); color: #fff; }
.btn-ember:hover { background: var(--color-ember-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-outline-light { background: transparent; color: var(--color-paper); border-color: var(--color-paper); }
.btn-outline-light:hover { background: var(--color-paper); color: var(--color-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,239,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--color-ink); }
.nav-brand img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a { color: var(--color-ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-slate); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.lang-toggle {
  background: transparent; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 0.8rem; cursor: pointer; min-height: 36px;
  color: var(--color-ink); transition: border-color 200ms ease, background 200ms ease;
}
.lang-toggle:hover { border-color: var(--color-slate); background: var(--color-paper-alt); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0;
    height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height));
    background: var(--color-paper); flex-direction: column; justify-content: flex-start;
    align-items: stretch; padding: var(--space-xl) var(--space-md); gap: var(--space-lg);
    transform: translateX(100%); transition: transform 250ms ease; overflow-y: auto; z-index: 99; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  .nav-actions .btn-primary.nav-cta-desktop { display: none; }
}
@media (min-width: 861px) {
  .nav-cta-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
  color: var(--color-on-dark);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
/* Object-position keeps both founders' faces anchored near the top of the
   frame (low Y%) so the bottom-aligned text column below never climbs into
   face territory, whatever the viewport height. */
.hero-media img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; object-position: center 16%; }
@media (max-width: 640px) {
  /* A full 100dvh-tall hero on a narrow phone makes object-fit:cover crop
     the wide two-founder photo down to roughly a quarter of its width —
     enough to fit one person, cutting the other almost entirely out of
     frame. Shortening the hero on mobile widens that visible slice enough
     to keep both founders in shot, centered on the pair rather than on
     just one of them. */
  .hero { min-height: 58vh; }
  .hero-media img { object-position: 50% 14%; }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,24,0.22) 0%, rgba(26,26,24,0.3) 38%, rgba(26,26,24,0.62) 68%, rgba(26,26,24,0.92) 100%);
}
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 120% 70% at 50% 100%, rgba(26,26,24,0.5) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; padding: var(--space-3xl) 0 var(--space-2xl); width: 100%; }
.hero-content .eyebrow { color: #E8C9A8; }
.hero-content h1 { color: #fff; max-width: 16ch; }
.hero-content p { color: #E7E4D9; max-width: 50ch; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }

/* ---------- Hero entrance choreography ---------- */
/* Each line comes in on its own beat, then the headline keeps a slow
   shimmer sweeping through it — a little showpiece for the hero only. */
.hero-eyebrow {
  opacity: 0;
  animation: hero-eyebrow-in 700ms cubic-bezier(0.16,1,0.3,1) 150ms both;
}
.hero-eyebrow::after {
  content: ""; display: block; height: 2px; width: 46px; margin-top: 10px;
  background: var(--color-ember);
  transform-origin: left;
  transform: scaleX(0);
  animation: hero-accent-draw 600ms cubic-bezier(0.65,0,0.35,1) 520ms both;
}
.hero-title {
  opacity: 0;
  animation: hero-title-in 900ms cubic-bezier(0.16,1,0.3,1) 320ms both;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-content .hero-title {
    background: linear-gradient(100deg, #fff 35%, #F3D9BC 48%, #fff 62%);
    background-size: 220% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation:
      hero-title-in 900ms cubic-bezier(0.16,1,0.3,1) 320ms both,
      hero-shimmer 4.5s linear 1.4s infinite;
  }
}
.hero-sub {
  opacity: 0;
  animation: hero-fade-up 800ms cubic-bezier(0.16,1,0.3,1) 600ms both;
}
.hero-actions .btn { opacity: 0; animation: hero-btn-in 650ms cubic-bezier(0.34,1.56,0.64,1) both; }
.hero-actions .btn:nth-child(1) { animation-delay: 820ms; }
.hero-actions .btn:nth-child(2) { animation-delay: 920ms; }
.hero-actions .btn.hero-btn-glow { animation-name: hero-btn-in, hero-glow-pulse; animation-duration: 650ms, 2.4s; animation-timing-function: cubic-bezier(0.34,1.56,0.64,1), ease-in-out; animation-delay: 820ms, 2.2s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }
.hero-btn-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  background-size: 220% 100%; background-position: 150% 0;
  opacity: 0; pointer-events: none;
}
.btn.hero-btn-glow { position: relative; overflow: hidden; }
.hero-btn-glow:hover::after { animation: hero-btn-shine 900ms ease; }

@keyframes hero-eyebrow-in {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 0.3em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 0.14em; }
}
@keyframes hero-accent-draw { to { transform: scaleX(1); } }
@keyframes hero-title-in { from { opacity: 0; transform: translateY(34px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hero-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes hero-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-btn-in { from { opacity: 0; transform: translateY(16px) scale(0.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hero-glow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(168,87,31,0.55); } 50% { box-shadow: 0 0 0 10px rgba(168,87,31,0); } }
@keyframes hero-btn-shine { from { background-position: 150% 0; opacity: 1; } to { background-position: -50% 0; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions .btn, .hero-eyebrow::after {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .hero-title { background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important; }
  .hero-btn-glow::after { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-lg) 0; position: relative; overflow: hidden; }
.trust-strip::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 42px);
  pointer-events: none;
}
.trust-strip .container { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 0.95rem; flex: 1 1 220px; }
.trust-item .trust-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(168,87,31,0.16); border: 1px solid rgba(168,87,31,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
.trust-item:hover .trust-icon { background: rgba(168,87,31,0.3); transform: scale(1.06); }
.trust-item svg { flex-shrink: 0; width: 19px; height: 19px; color: var(--color-ember); }

/* ---------- Sections ---------- */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--color-paper-alt); }
.section-dark { background: var(--color-ink); color: var(--color-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--color-on-dark); }
.section-dark p { color: #D8D4C8; }
.section-header { max-width: 640px; margin: 0 0 var(--space-xl); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About / founders ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-2xl); align-items: center; }
.about-portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.about-names { margin-top: var(--space-md); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--color-muted-foreground); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Teaser cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow 260ms ease, transform 260ms ease, border-color 260ms ease;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-ember); transform: scaleY(0); transform-origin: top;
  transition: transform 260ms cubic-bezier(0.16,1,0.3,1);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-border); }
.card:hover::before { transform: scaleY(1); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--color-paper-alt); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); color: var(--color-slate); transition: background 260ms ease, color 260ms ease, transform 260ms ease; }
.card:hover .card-icon { background: var(--color-ember); color: #fff; transform: scale(1.06); }
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--color-muted-foreground); flex-grow: 1; }

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: 1fr; } }
.pkg-card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm);
  box-shadow: var(--shadow-sm); transition: box-shadow 200ms ease, transform 200ms ease;
}
.pkg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pkg-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; color: var(--color-border); font-weight: 700; }
.pkg-card p { color: var(--color-muted-foreground); flex-grow: 1; }

/* ---------- Service detail rows ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; margin-bottom: var(--space-2xl); }
.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) > * { direction: ltr; }
.service-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 860px) { .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-lg); box-shadow: var(--shadow-sm); position: relative;
  transition: box-shadow 260ms ease, transform 260ms ease, border-color 260ms ease;
}
.testimonial-card::after {
  content: "”"; position: absolute; top: 2px; right: var(--space-md);
  font-family: 'Barlow Condensed', sans-serif; font-size: 3.4rem; line-height: 1;
  color: var(--color-paper-alt); z-index: 0; pointer-events: none;
}
.testimonial-card > * { position: relative; z-index: 1; }
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-ember); }
.testimonial-card .stars { color: var(--color-ember); letter-spacing: 0.1em; margin-bottom: var(--space-sm); font-size: 1rem; }
.testimonial-card p:not(.testimonial-author) { color: var(--color-ink); font-style: italic; }
.testimonial-author { margin: 0; font-weight: 700; font-size: 0.9rem; color: var(--color-muted-foreground); }
.testimonial-author span { font-weight: 400; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 80% 140% at 85% -20%, rgba(255,255,255,0.14) 0%, transparent 55%),
    linear-gradient(155deg, var(--color-ember) 0%, var(--color-ember-dark) 100%);
  color: #fff; padding: var(--space-2xl) 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 36px);
  pointer-events: none;
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #F6E4D4; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline-light { border-color: #fff; color: #fff; }
.cta-banner .btn-outline-light:hover { background: #fff; color: var(--color-ember); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; margin-top: var(--space-lg); }

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; margin-bottom: var(--space-sm); color: #fff; }
.footer-brand img { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }
.footer p { color: #C9C5B8; font-size: 0.92rem; }
.footer .footer-h { font-family: 'Barlow', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: #9A9684; margin: 0 0 var(--space-md); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: #D8D4C8; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333028; padding-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); align-items: center; font-size: 0.82rem; color: #9A9684; }
.footer-bottom a { color: #9A9684; }
.footer-bottom img { height: 18px; vertical-align: middle; margin-left: 6px; }
.footer-social { display: flex; gap: var(--space-md); }
.footer-social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #40402f; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; color: #D8D4C8; }
.footer-social a:hover { border-color: var(--color-ember); }
.footer-social a:hover svg { color: var(--color-ember); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform 200ms ease, opacity 200ms ease, visibility 200ms ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }
/* While a form field has focus (mobile keyboard open), fade the float out of the
   way so it doesn't sit on top of the input being typed into — e.g. the bottom-right
   corner of the message textarea on the contact page. */
.whatsapp-float.is-dimmed {
  opacity: 0; visibility: hidden; transform: scale(0.8); pointer-events: none;
}
@media (max-width: 480px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-2xl); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: var(--space-md); }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius);
  font-size: 16px; font-family: 'Barlow', sans-serif; background: #fff; min-height: 44px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--color-slate); outline: none; box-shadow: 0 0 0 3px rgba(62,86,104,0.18);
}
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--color-muted-foreground); margin-bottom: var(--space-lg); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: var(--space-md); }
.info-row svg { width: 22px; height: 22px; color: var(--color-ember); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted-foreground); margin-bottom: 2px; }

/* ---------- Scroll reveal ---------- */
/* Only hide [data-reveal] content once JS confirms it can reveal it again —
   keeps content visible for no-JS browsers and crawlers that don't scroll.
   html.js-reveal is added by an inline script in <head>, synchronously. */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Staggered cascade for grid children — each card/testimonial/package/gallery
   tile fades in slightly after the previous one, Apple-feature-grid style. */
.card-grid .card:nth-child(2),
.testimonial-grid .testimonial-card:nth-child(2),
.card-grid-3 .pkg-card:nth-child(2),
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 90ms; }
.card-grid .card:nth-child(3),
.testimonial-grid .testimonial-card:nth-child(3),
.card-grid-3 .pkg-card:nth-child(3),
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 180ms; }
.card-grid-3 .pkg-card:nth-child(4),
.testimonial-grid .testimonial-card:nth-child(4),
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 270ms; }
.card-grid-3 .pkg-card:nth-child(5),
.testimonial-grid .testimonial-card:nth-child(5),
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 360ms; }
.testimonial-grid .testimonial-card:nth-child(6),
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav-links { transition: none !important; }
}

/* ---------- Apple-style scroll-driven motion (progressive enhancement) ----------
   Native CSS scroll-driven animations where supported (Chrome/Edge 115+, Safari 26+).
   Purely decorative, so unsupported browsers (Firefox) simply keep the static layout —
   no JS fallback needed. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .hero { view-timeline: --hero-tl; }

  /* "exit" (not "cover") because .hero sits flush with the top of the page —
     its "cover" range is already partly elapsed at scroll position 0, which
     left the hero text faded out from the very first paint. "exit" only
     starts progressing once the hero actually begins scrolling away. */
  @keyframes hero-parallax { to { transform: translateY(8%); } }
  .hero-media img {
    animation: hero-parallax linear both;
    animation-timeline: --hero-tl;
    animation-range: exit 0% exit 100%;
  }

  @keyframes hero-content-fade { to { opacity: 0; transform: translateY(-36px); } }
  .hero-content {
    animation: hero-content-fade linear both;
    animation-timeline: --hero-tl;
    animation-range: exit 0% exit 60%;
  }

  @keyframes photo-settle { from { scale: 1.1; } to { scale: 1; } }
  .about-portrait img {
    animation: photo-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-media img, .hero-content, .about-portrait img { animation: none; }
  }
}

/* ---------- Workshop videos ---------- */
/* Section with a full-bleed background video behind its own content (the
   "Szolgáltatások" intro + service rows sit on top of it) — a solid dark
   overlay throughout means it never looks washed-out/see-through, the
   video is purely an ambient backdrop, like a car brand's "story" page. */
.section-video-bg { position: relative; overflow: hidden; color: var(--color-on-dark); }
.section-video-bg > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); z-index: 0;
}
.section-video-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(20,20,18,0.74);
}
.section-video-bg > .container { position: relative; z-index: 1; }
.section-video-bg .eyebrow { color: #E8C9A8; }
.section-video-bg h1, .section-video-bg h2 { color: #fff; }
.section-video-bg .section-header p,
.section-video-bg .service-row p:not(.eyebrow) { color: #D8D4C8; }
.section-video-bg .service-row img { box-shadow: var(--shadow-xl); }
.video-bg-cta { text-align: center; margin-top: var(--space-xl); }

/* Smaller secondary clip, centered on its own further down the page */
.video-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--color-ink);
}
.video-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05);
}
.video-tile-solo { max-width: 420px; margin: 0 auto; }

/* ---------- Equipment gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--color-paper-alt); box-shadow: var(--shadow-sm);
  cursor: zoom-in; border: none; padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--color-ember); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: var(--space-lg);
  background: rgba(26,26,24,0.92);
}
.lightbox.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-xl); }
.lightbox-close {
  position: absolute; top: var(--space-md); right: var(--space-md); width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,0.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,0.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }
@media (max-width: 600px) { .lightbox-nav { width: 40px; height: 40px; } }
