/* ===== Tokens (colors kept from the original Claude Design) ===== */
:root {
  --navy: #0B4B67;
  --navy-2: #0E587A;
  --navy-3: #11607F;
  --navy-deep: #093C53;
  --navy-footer: #07394E;
  --ink: #103A4F;
  --ink-2: #14455F;
  --body: #3E5668;
  --muted: #547084;
  --accent: #2E7C9E;
  --accent-text: #276E8D;      /* accent shade that passes AA on tinted backgrounds */
  --sky: #9ACFE3;
  --sky-2: #B4D9E9;
  --on-dark: #CFE3EC;
  --on-dark-2: #A9C2D6;
  --mist: #EAF4F9;
  --line: #DCEAF1;
  --wa: #25D366;
  --wa-hover: #1FB855;
  --wa-ink: #07394E;           /* dark text on WhatsApp green: 6.2:1 */

  --font: 'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Frank Ruhl Libre', Georgia, serif;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(11, 75, 103, 0.06);
  --shadow-md: 0 16px 38px rgba(11, 75, 103, 0.13);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 104px);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 10px; right: 10px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1140px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { flex-shrink: 0; }
.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.3); }
.btn--wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); font-weight: 600; }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.brand img { height: 54px; width: auto; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--accent-text); background: var(--mist); }
.nav a[aria-current="true"] { color: var(--accent-text); background: var(--mist); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ===== Hero ===== */
.on-dark { color: #fff; }
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--a { top: -160px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(154, 207, 227, 0.28), transparent 65%); }
.glow--b { bottom: -200px; right: -140px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(46, 124, 158, 0.18), transparent 65%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-block: clamp(56px, 9vw, 104px);
}
.pill {
  display: inline-block; padding: 7px 16px; border: 1px solid rgba(154, 207, 227, 0.5); border-radius: 999px;
  color: var(--sky-2); font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: 900; line-height: 1.12; margin: 0 0 22px;
  font-size: clamp(36px, 6.2vw, 60px); text-wrap: balance;
}
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--sky); }
.hero__lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.75; color: var(--on-dark); max-width: 540px; margin: 0 0 34px; font-weight: 300; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.mock {
  width: 100%; max-width: 430px; margin-inline: auto;
  background: #fff; border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 30px 70px rgba(4, 18, 33, 0.45);
  animation: floatY 6s ease-in-out infinite;
}
.mock__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; }
.mock__bar i:nth-child(1) { background: #FF6058; }
.mock__bar i:nth-child(2) { background: #FFBE2E; }
.mock__bar i:nth-child(3) { background: #2ACA44; }
.mock__bar span { margin-inline-start: auto; font: 12px/1 'Courier New', monospace; color: #6B8596; direction: ltr; }
.mock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock__grid .ph { aspect-ratio: 1; border-radius: 13px; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Stats ===== */
.stats { background: var(--navy-deep); border-top: 1px solid rgba(154, 207, 227, 0.15); }
.stats ul { list-style: none; margin: 0; padding: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats li + li { border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.stats strong { display: block; font: 900 clamp(30px, 5vw, 42px)/1 var(--display); color: var(--sky); direction: ltr; }
.stats span { display: block; font-size: clamp(13px, 1.6vw, 15px); color: var(--on-dark-2); margin-top: 8px; padding-inline: 6px; }

/* ===== Sections ===== */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--mist); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow { display: inline-block; color: var(--accent-text); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.on-dark .eyebrow { color: var(--sky-2); }
.h2 {
  font: 900 clamp(32px, 4.6vw, 46px)/1.2 var(--display); color: var(--navy);
  margin: 10px 0 14px; text-wrap: balance;
}
.on-dark .h2 { color: #fff; }
.section-head p, .lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); line-height: 1.75; margin: 0; }

/* Placeholder until real photos arrive */
.ph {
  background: repeating-linear-gradient(135deg, #E6F2F7, #E6F2F7 12px, #CFE4ED 12px, #CFE4ED 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #4F6A7E; font-size: 13px; padding: 8px;
}
.ph--alt { background: repeating-linear-gradient(135deg, #DCEDF4, #DCEDF4 12px, #C4DEEA 12px, #C4DEEA 24px); }
.media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* ===== Works ===== */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.work-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.work-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #C9DEE8; }
.work-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; background: var(--mist); color: var(--accent-text); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.work-card h3 { font-size: 21px; color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.work-card p { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0; }
.more { margin-top: auto; padding-top: 14px; color: var(--accent-text); font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.more svg { transition: transform .2s; }
.work-card:hover .more svg { transform: translateX(-4px); }

/* ===== Print products ===== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.product {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 3px 12px rgba(11, 75, 103, 0.05);
}
.product__name { padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.products-cta { margin-top: 40px; text-align: center; }
.products-cta p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.btn--outline { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.about__media { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.about__media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(11, 75, 103, 0.12); }
.badge {
  position: absolute; bottom: -20px; right: -16px;
  background: var(--navy); color: #fff; padding: 16px 22px; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(11, 75, 103, 0.3);
}
.badge strong { display: block; font: 900 28px/1 var(--display); color: var(--sky); }
.badge span { display: block; font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.about p { font-size: clamp(16px, 1.8vw, 18px); color: var(--body); line-height: 1.85; margin: 0 0 18px; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.checks li {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2);
  background: var(--mist); border-radius: 999px; padding: 8px 16px 8px 14px;
}
.checks svg { color: var(--accent); flex-shrink: 0; }

/* ===== Contact ===== */
.contact { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); }
.contact .glow { top: -140px; right: -100px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(154, 207, 227, 0.2), transparent 65%); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--on-dark); line-height: 1.75; margin: 0 0 32px; font-weight: 300; max-width: 460px; }
.contact-card {
  list-style: none; margin: 0; padding: 10px 30px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg);
}
.contact-card li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; color: #fff; border-radius: 10px; }
a.contact-item:hover .contact-item__value { color: var(--sky); }
.contact-item__icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(154, 207, 227, 0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sky-2);
}
.contact-item__label { display: block; font-size: 13px; color: var(--sky-2); }
.contact-item__value { display: block; font-size: 18px; font-weight: 600; transition: color .2s; overflow-wrap: anywhere; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-footer); color: var(--on-dark-2); padding: 34px 0 30px; font-size: 14px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); text-decoration: none; }
.footer-brand span:first-child { display: inline-flex; padding: 6px 8px; background: #fff; border-radius: 10px; }
.footer-brand img { height: 38px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #C4D6E2; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: #fff; }
.copy { margin: 0; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.9);
  transition: transform .2s, background-color .2s;
}
.fab:hover { background: var(--wa-hover); transform: scale(1.06); }

/* ===== Inner pages (portfolio categories, legal) ===== */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 64px); }
.page-hero h1 { font: 900 clamp(34px, 5.5vw, 54px)/1.15 var(--display); color: var(--navy); margin: 8px 0 12px; }
.page-hero p { max-width: 680px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 700;
  text-decoration: none; margin-bottom: 18px; padding: 6px 0;
}
.back-link:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gallery .ph, .gallery img { border-radius: 16px; }
.cta-band { margin-top: clamp(40px, 6vw, 64px); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font: 900 clamp(24px, 3vw, 30px)/1.25 var(--display); margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--on-dark); }

.prose { max-width: 780px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0; }
.prose h2 { font-size: 21px; margin: 34px 0 8px; color: var(--navy); }
.prose p, .prose li { font-size: 17px; line-height: 1.8; color: var(--body); }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--accent-text); }
.contact-box { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.contact-box p { margin: 4px 0; }

/* ===== Reveal on scroll (only when JS is on and motion is OK) ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .header-wa-label { display: none; }
  .header-actions .btn--sm { width: 46px; min-height: 46px; padding: 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 59;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 75, 103, 0.12);
    padding: 8px var(--gutter) 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 18px; border-bottom: 1px solid var(--mist); border-radius: 8px; }
  .site-header .container { justify-content: space-between; }

  .hero__inner, .contact__inner, .about { grid-template-columns: 1fr; }
  .hero__inner { gap: 44px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .mock { max-width: 340px; padding: 16px; }
  .mock__grid { gap: 10px; }

  .about__media { max-width: 380px; }
  .contact__inner { gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; gap: 18px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__name { padding: 11px 12px; font-size: 15px; gap: 8px; }
  .hero__cta .btn { width: 100%; }
  .contact .btn { width: 100%; }
  .contact-card { padding: 4px 18px; }
  .contact-item__value { font-size: 17px; }
  .stats ul { padding: 24px 0; }
  .badge { right: 12px; bottom: -18px; }
  .gallery { grid-template-columns: 1fr; }
  .mock { max-width: 290px; }
  .about__media { max-width: 300px; }
  .site-footer { padding-bottom: 100px; } /* room for the floating WhatsApp button */
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .fab { width: 56px; height: 56px; left: 16px; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
