/* =============================================================
   RDZ Home Services — styles.css
   1. Tokens
   ============================================================= */
@property --mesh-x { syntax: '<percentage>'; inherits: false; initial-value: 30%; }

:root {
  --bg:        #f6f1e7;
  --bg-2:      #ece1cd;
  --paper:     #ffffff;
  --ink:       #221d16;
  --ink-soft:  #3a3327;
  --ink-mute:  #756b59;
  --accent:    #c1602f;   /* terracotta — paint */
  --accent-2:  #2f4a3e;   /* deep forest — trust */
  --gold:      #c9a15a;
  --line:      rgba(34,29,22,0.13);
  --line-soft: rgba(34,29,22,0.07);

  --display: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --radius: 14px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1.1rem;
  background: var(--ink); color: var(--bg); z-index: 9999;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.eyebrow { color: var(--ink-mute); font-size: 1.05rem; max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.center { text-align: center; margin-inline: auto; }
.grain {
  pointer-events: none; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Buttons & badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff8f0; box-shadow: 0 10px 24px -10px rgba(193,96,47,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(193,96,47,.6); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .9rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.badge svg { width: 15px; height: 15px; color: var(--accent-2); flex-shrink: 0; }

/* =============================================================
   5. Nav
   ============================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246,241,231,0); border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(246,241,231,.92); backdrop-filter: blur(10px);
  border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; font-weight: 600; font-size: .95rem; }
.nav-links a { position: relative; padding: .3rem 0; color: var(--ink-soft); transition: color .2s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
  background: var(--accent); transition: width .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; align-items: center; gap: .75rem; }
.nav-phone { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); font-size: .92rem; }
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }

.lang-switch { display: flex; align-items: center; gap: .15rem; border: 1px solid var(--line); border-radius: 999px; padding: .22rem; }
.lang-switch a { padding: .32rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--ink-mute); letter-spacing: .02em; transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.mobile-menu .lang-switch { align-self: flex-start; margin-bottom: -.5rem; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem; z-index: 600;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); z-index: 480;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  display: flex; flex-direction: column; padding: 2rem 1.5rem; gap: 1.5rem;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.mobile-menu .btn { margin-top: 1rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding-top: calc(var(--nav-h) + 2.5rem); overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: translateY(0); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,29,22,.55) 0%, rgba(34,29,22,.72) 55%, rgba(246,241,231,1) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 4rem 0 6rem; }
.hero-kicker { color: #f3e6d8; }
.hero-kicker::before { background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub { color: #ece4d6; font-size: 1.1rem; max-width: 46ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.hero-badges .badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #f3ece0; }
.hero-badges .badge svg { color: var(--gold); }

/* =============================================================
   7. Stats strip
   ============================================================= */
.stats { background: var(--ink); color: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; text-align: center; padding: 2.6rem 0; }
.stat-num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); }
.stat-label { font-size: .85rem; color: #cfc6b4; margin-top: .25rem; letter-spacing: .02em; }

/* =============================================================
   8. Marquee (service area ticker)
   ============================================================= */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: 2.5rem; padding: 1rem 1.25rem; }
.marquee-set span { font-family: var(--display); font-size: 1.05rem; color: var(--ink-mute); white-space: nowrap; }
.marquee-set span::after { content: "•"; margin-left: 2.5rem; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   9. Section headers
   ============================================================= */
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* =============================================================
   10. Service cards
   ============================================================= */
.services-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.service-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.service-card:hover { box-shadow: 0 26px 50px -28px rgba(34,29,22,.35); border-color: var(--line); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-2); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.service-card p { color: var(--ink-mute); font-size: .96rem; margin-bottom: 1rem; }
.service-card .link-more { font-weight: 700; font-size: .88rem; color: var(--accent-2); display: inline-flex; gap: .35rem; align-items: center; }
.service-card .link-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.service-card:hover .link-more svg { transform: translateX(4px); }

/* =============================================================
   11. Why-us split
   ============================================================= */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.split img { border-radius: var(--radius); }
.why-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; }
.why-item { display: flex; gap: .9rem; align-items: flex-start; }
.why-item .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-2); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; }
.why-item .ico svg { width: 15px; height: 15px; }
.why-item h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.why-item p { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   12. Gallery
   ============================================================= */
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.12) brightness(1.04); }
.gallery-item .tag {
  position: absolute; left: .8rem; bottom: .8rem; background: rgba(34,29,22,.78); color: #fff;
  font-size: .76rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.gallery-item.tall { aspect-ratio: 4/5.6; }

.lightbox {
  position: fixed; inset: 0; z-index: 900; background: rgba(20,17,12,.94);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 86vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: #fff; width: 42px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* =============================================================
   13. Testimonial
   ============================================================= */
.testimonial-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem; max-width: 760px; margin-inline: auto; text-align: center;
}
.stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .15em; margin-bottom: 1rem; }
.testimonial-card blockquote { font-family: var(--display); font-size: 1.35rem; color: var(--ink); font-style: italic; line-height: 1.45; }
.testimonial-author { margin-top: 1.3rem; font-weight: 700; font-size: .92rem; color: var(--ink-mute); }
.testimonial-foot { text-align: center; margin-top: 1.6rem; }

/* =============================================================
   14. CTA band
   ============================================================= */
.cta-band {
  position: relative; background: var(--accent-2); color: #f3ede0; border-radius: 24px;
  padding: 3.2rem 1.8rem; text-align: center; overflow: hidden; margin: 0 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9e0d8; max-width: 46ch; margin: .8rem auto 1.8rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }

/* =============================================================
   15. Forms
   ============================================================= */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); background: var(--paper); }
.form-grid-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: .8rem; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--accent-2); margin: 0 auto 1rem; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* =============================================================
   16. Footer
   ============================================================= */
.site-footer { background: var(--ink); color: #cfc6b4; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.2rem; color: #fff; margin-bottom: .8rem; }
.footer-brand img { height: 34px; }
.footer-col h4 { font-family: var(--sans); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; margin-bottom: .6rem; color: #cfc6b4; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; color: #95896f; }

/* sticky mobile call bar */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 450; display: flex; gap: .6rem;
  padding: .7rem .9rem; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3);
}
.mobile-cta-bar .btn { flex: 1; padding: .8rem 1rem; font-size: .88rem; }

/* =============================================================
   17. Reveal / effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
[data-tilt] { transition: transform .35s var(--ease-out); }
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transform: none !important; }
}

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-cta-bar { display: none !important; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 7rem 0; }
}
@media (min-width: 1280px) { .container { padding: 0 2rem; } }
