/* ==========================================================================
   Çapa Marin — style.css
   Static, dependency-free stylesheet. cPanel / Apache compatible.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Manrope variable, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #07131f;
  --navy-900: #0b1b2b;
  --navy-800: #112840;
  --navy-700: #1b3a57;
  --navy-500: #46627d;
  --ink: #0b1b2b;
  --text: #2a3a4a;
  --muted: #5d6d7d;
  --line: #dde3e9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --mist: #f4f6f8;
  --paper: #ffffff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 3px;
}
.why :focus-visible, .site-footer :focus-visible, .hero :focus-visible,
.site-header:not(.is-solid) :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -60px; z-index: 200;
  padding: 12px 18px; background: var(--paper); color: var(--ink);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 28px;
}
.eyebrow-num {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--muted); font-weight: 500;
}
.eyebrow-num::after {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.92); }
.eyebrow-light .eyebrow-num { color: rgba(255, 255, 255, 0.6); }

.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 450;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline-dark { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }

.text-link {
  display: inline-flex; gap: 10px; align-items: center;
  margin-top: 36px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-solid {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid currentColor;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 5px;
  height: 1.5px; background: currentColor;
}
.brand-text {
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-list { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav-list a {
  position: relative; font-size: 14.5px; font-weight: 500; padding: 6px 0;
  opacity: 0.88; transition: opacity 0.2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { opacity: 1; }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-mobile-footer { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.btn-header { border-color: currentColor; color: inherit; }
.btn-header:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header.is-solid .btn-header { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.site-header.is-solid .btn-header:hover { background: var(--navy-700); border-color: var(--navy-700); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-open .nav-toggle-bar:nth-of-type(2) { transform: translateY(4.25px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4.25px) rotate(-45deg); }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: var(--navy-900);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  /* Single, restrained legibility layer */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.45) 0%, rgba(7, 19, 31, 0.15) 35%, rgba(7, 19, 31, 0.75) 100%);
}
.hero-content {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-title {
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero-strip { border-top: 1px solid var(--line-dark); }
.hero-strip-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-strip p {
  padding: 26px 0;
  font-size: 15px; font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.hero-strip p + p { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.hero-strip span {
  display: block; margin-bottom: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { padding-block: var(--section-y); }

.section-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-intro { color: var(--muted); max-width: 440px; justify-self: end; }

/* ==========================================================================
   3. About
   ========================================================================== */
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.about-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body .section-title { margin-bottom: 32px; }
.about-body .lead { margin-bottom: 22px; }
.about-body p + p { margin-top: 16px; }
.about-body > p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 560px; }

/* ==========================================================================
   4. Products
   ========================================================================== */
.products { background: var(--mist); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.product-card {
  background: var(--paper);
  display: flex; flex-direction: column;
}
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-body { padding: 28px 28px 34px; }
.product-num {
  display: block; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted);
}
.product-body h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 10px;
}
.product-body p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

.products-cta {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.products-cta p { font-size: 18px; color: var(--ink); max-width: 620px; }

/* ==========================================================================
   5. Why
   ========================================================================== */
.why { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); }
.why .section-title { color: #fff; max-width: 16ch; }
.why-head { margin-bottom: clamp(56px, 7vw, 96px); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.why-item { padding: 36px 32px 8px 0; }
.why-item + .why-item { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.why-num {
  display: block; margin-bottom: 40px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45);
}
.why-item h3 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: -0.01em; }
.why-item p { font-size: 15.5px; line-height: 1.65; }

/* ==========================================================================
   6. Contact
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contact-body .section-title { margin-bottom: 28px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.contact-card { border-top: 1px solid var(--ink); }
.contact-list > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.contact-list dd { color: var(--ink); font-weight: 500; }
.contact-list dd a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-list dd a:hover { border-color: currentColor; }

.map-link {
  position: relative; display: block;
  margin-top: 32px; padding: 32px 72px 32px 32px;
  background: var(--navy-900); color: #fff;
  transition: background-color 0.25s var(--ease);
}
.map-link:hover { background: var(--navy-700); }
.map-link-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.map-link-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.map-link-arrow {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-size: 24px; transition: transform 0.25s var(--ease);
}
.map-link:hover .map-link-arrow { transform: translate(3px, calc(-50% - 3px)); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950); color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(64px, 8vw, 104px);
  font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px;
}
.brand-footer { color: #fff; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin-bottom: 18px;
}
.footer-nav li + li, .footer-contact li + li { margin-top: 10px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px; color: rgba(255, 255, 255, 0.5);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px;
  background: var(--navy-900); color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(7, 19, 31, 0.28);
  font-size: 14.5px; font-weight: 600;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-float:hover { background: var(--navy-700); transform: translateY(-2px); }
.wa-float:focus-visible { outline-color: var(--navy-700); }

/* ---------- Reveal (only when JS is active) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  /* Mobile navigation overlay */
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
    background: var(--navy-900); color: #fff;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .nav-open .primary-nav {
    visibility: visible; opacity: 1;
    transition: opacity 0.3s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); }
  .nav-list a {
    display: block; padding: 22px 0;
    font-size: clamp(26px, 7vw, 34px); font-weight: 600; letter-spacing: -0.02em;
    opacity: 1;
  }
  .nav-list a::after { display: none; }
  .nav-mobile-footer {
    display: flex; flex-direction: column; gap: 6px; margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
  }
  .nav-mobile-link { font-size: 18px; color: #fff; font-weight: 600; }

  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .btn-header { display: none; }
  .nav-open { overflow: hidden; }

  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-intro { justify-self: start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-header { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-strip-inner { grid-template-columns: 1fr; }
  .hero-strip p { padding: 16px 0; }
  .hero-strip p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .product-grid { grid-template-columns: 1fr; }
  .products-cta { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item { padding: 28px 0 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line-dark); margin-top: 28px; }
  .why-num { margin-bottom: 20px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .contact-actions .btn { flex: 1 1 100%; }
  .map-link { padding: 26px 64px 26px 24px; }
  .map-link-arrow { right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 54px; justify-content: center; }
  .wa-float-label { display: none; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .hero-media, .nav-toggle { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .why, .site-footer { background: none; color: var(--ink); }
}
