/* ==========================================================================
   Finizio — shared stylesheet
   Kitchen & wardrobe specialists, Negeri Sembilan
   ========================================================================== */

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg-base:    #FFFFFF;
  --bg-accent:  #FBFBFC;
  --surface:    #FFFFFF;
  --surface-2:  #F4F6FA;

  --ink:        #1A1A1A;
  --ink-2:      #4A4A4A;
  --ink-3:      #6E6E6E;

  /* Finizio blue, taken from the logo */
  --brand:      #194B92;
  --brand-dark: #123A73;
  --brand-tint: rgba(25, 75, 146, 0.08);
  --brand-glow: rgba(25, 75, 146, 0.26);

  --line:       rgba(26, 26, 26, 0.09);
  --line-soft:  rgba(26, 26, 26, 0.05);

  --whatsapp:   #25D366;

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md:  0 2px 6px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.06);
  --shadow-lg:  0 4px 12px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.08);

  --ease:       cubic-bezier(.22,.61,.36,1);
  --header-h:   68px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-base);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--bg-base) 0%, var(--bg-accent) 100%);
  background-size: 200px 200px, cover;
  background-attachment: scroll, fixed;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

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

/* Screen-reader only */
.sr-only {
  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; top: -60px; left: 12px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 780px; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line-soft);
}

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 18px;
}

.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  min-height: 48px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms var(--ease),
              border-color 200ms var(--ease),
              color 200ms var(--ease),
              transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; }
/* Stroke-drawn icons set fill="none"; a CSS fill would override that attribute. */
.btn svg[fill="none"] { fill: none; stroke: currentColor; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--brand-glow), 0 1px 4px rgba(0,0,0,.06);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover {
  background: #1DB855;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,.32);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform 200ms var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Header / nav ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--brand-tint); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 72px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 4px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-proof li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

/* ── Image slots ─────────────────────────────────────────── */
/* Gradient placeholder shows through when the photo is missing,
   so an empty slot reads as intentional, not broken. */
.shot {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-2);
  background-image: linear-gradient(135deg, #EEF1F6 0%, #DFE5EE 55%, #CFD8E6 100%);
}
.shot::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(26,26,26,.34);
  pointer-events: none;
}
.shot img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.shot img:not([src]), .shot img[src=""] { display: none; }

.shot--4x5  { aspect-ratio: 4 / 5; }
.shot--3x2  { aspect-ratio: 3 / 2; }
.shot--1x1  { aspect-ratio: 1 / 1; }

/* ── Cards & grids ───────────────────────────────────────── */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.card-icon svg { width: 22px; height: 22px; }

/* Project card */
.project {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.project:hover .shot img { transform: scale(1.045); }

.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.12rem; margin-bottom: 6px; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-3);
}
.tag--brand {
  background: var(--brand-tint);
  border-color: var(--brand-glow);
  color: var(--brand-dark);
}

/* ── Stats ───────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats--3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  background: var(--surface);
  padding: 30px 24px;
  text-align: center;
}
.stat dt {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
}
.stat dd {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ── Process steps ───────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 4px; }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: .04em;
  padding-top: 3px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ── Spec / comparison table ─────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }
.price-cell { white-space: nowrap; font-weight: 600; }

/* ── Pricing cards ───────────────────────────────────────── */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.tier--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.tier-badge {
  position: absolute;
  top: -11px; left: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
}
.tier-price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 2px;
}
.tier-price span { font-size: 14px; font-weight: 500; color: var(--ink-3); }

.tick-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.tick-list li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123A73' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tier .btn { margin-top: auto; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; }

.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 180ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-dark); }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-dark);
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 24px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 68ch;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255,255,255,.72);
  max-width: 52ch;
  margin: 16px auto 0;
}
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.cta-band .btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.detail-list { list-style: none; display: grid; gap: 26px; }
.detail-list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.detail-list dd { font-size: 16px; color: var(--ink); }
.detail-list dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.detail-list dd a:hover { color: var(--brand-dark); border-color: var(--brand); }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 32px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--brand-dark); }
.footer-grid img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-grid p { font-size: 14.5px; color: var(--ink-3); max-width: 34ch; }

.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;      /* WCAG 2.5.5 target size */
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: color 200ms var(--ease),
              background-color 200ms var(--ease),
              transform 200ms var(--ease);
}
.socials a svg { width: 20px; height: 20px; fill: currentColor; }
.socials a:hover {
  color: var(--brand-dark);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── Floating WhatsApp ───────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.4), 0 2px 6px rgba(0,0,0,.12);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 2px 8px rgba(0,0,0,.14);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { aspect-ratio: 3 / 2; max-height: 420px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats   { grid-template-columns: repeat(2, 1fr); }
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 26px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease),
                transform 200ms var(--ease),
                visibility 200ms;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a { padding: 13px 14px; font-size: 16px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .container { padding-inline: 20px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats, .stats--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 26px 24px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .project:hover, .socials a:hover,
  .wa-float:hover, .shot img { transform: none !important; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .site-header, .wa-float, .nav-toggle, .cta-band { display: none; }
  body { background: #fff; }
}
