:root {
  --navy: #13213f;
  --navy-2: #1c2e55;
  --accent: #2f7de1;
  --accent-ink: #ffffff;
  --ink: #18202f;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--accent); margin: 0 0 .8em; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0;
  padding: .85em 1.6em; border-radius: 999px; font: 600 .95rem var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { background: #1f68c7; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .55em 1.2em; font-size: .88rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(19,33,63,.96); backdrop-filter: blur(8px); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 800 1.2rem var(--display); background: linear-gradient(135deg, #2f7de1, #19b3a6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); letter-spacing: .12em; font-size: 1.05rem; }
.brand-text small { font-size: .72rem; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav-links a.btn { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero .eyebrow { color: #7fb4ff; }
.lead { font-size: 1.12rem; color: #c7d1e3; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags li { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .4em .9em; border-radius: 999px; background: rgba(255,255,255,.08); }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-cards figure { margin: 0; background: #fff; border-radius: var(--radius); aspect-ratio: 3/4; padding: 12px; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.hero-cards figure:nth-child(2) { transform: translateY(-28px); }
.hero-cards figure:nth-child(3) { transform: translateY(18px); }
.hero-cards img { max-height: 100%; object-fit: contain; }

/* Stats */
.stats { background: var(--navy-2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-grid div { padding: 30px 12px; border-left: 1px solid rgba(255,255,255,.1); }
.stats-grid div:first-child { border-left: 0; }
.stats-grid b { display: block; font: 800 1.9rem var(--display); }
.stats-grid span { font-size: .88rem; color: #aebad0; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }

/* Products */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button {
  font: 500 .88rem var(--font); padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .15s;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card {
  text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; cursor: zoom-in; font: inherit; color: inherit; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 14px 30px rgba(19,33,63,.1); transform: translateY(-3px); }
.card-img { aspect-ratio: 1; display: grid; place-items: center; padding: 18px; background: #fff; }
.card-img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.card-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.card h3 { font: 600 1rem var(--font); margin: .25em 0 0; }

/* Fabrics */
.fabric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fabric-grid article { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.fabric-grid h3 { font-size: 1.25rem; margin: 0; }
.fab-sub { font-size: .82rem; font-weight: 600; color: var(--accent); margin: .2em 0 .8em; }
.fabric-grid p:last-child { color: var(--muted); font-size: .92rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-img { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-img img { background: var(--bg-alt); border-radius: var(--radius); aspect-ratio: 3/4; object-fit: contain; padding: 20px; width: 100%; }
.about-img img:last-child { margin-top: 48px; }
.cn-name { color: var(--muted); margin-top: -.4em; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #e3effd; color: var(--accent); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: "0" counter(s); font: 800 1.6rem var(--display); color: var(--accent); }
.steps b { font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact .eyebrow { color: #7fb4ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-grid > div > p { color: #c7d1e3; }
.contact-list { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
.contact-list dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #7fb4ff; font-weight: 700; padding-top: 3px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.quote-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; display: grid; gap: 16px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 400 .95rem var(--font); padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--ink); width: 100%;
}
.quote-form :focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quote-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* Footer */
.footer { background: #0c162b; color: #aebad0; padding: 32px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer strong { color: #fff; display: block; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(9,16,32,.85); display: grid; place-items: center; align-content: center; gap: 20px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; background: #fff; border-radius: 18px; padding: 24px; max-width: min(560px, 100%); }
.lb-views { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.lb-views button { font: 600 .82rem var(--font); padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.lb-views button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.lb-stage { width: min(512px, calc(100vw - 96px)); height: 58vh; display: grid; place-items: center; }
.lightbox img { max-height: 58vh; max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox img[hidden] { display: none; }
.lb-empty { text-align: center; color: var(--muted); font-weight: 600; margin: 0; }
.lb-empty span { font-weight: 400; font-size: .9rem; }
.lightbox figcaption { text-align: center; font: 700 1.1rem var(--display); margin-top: 12px; }
.lightbox figcaption small { display: block; font: 600 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lb-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Responsive */
@media (max-width: 1000px) {
  .fabric-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-cards { max-width: 520px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a.btn { margin-top: 12px; text-align: center; border: 0; }
  .hero { padding: 48px 0 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div { border-top: 1px solid rgba(255,255,255,.08); }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img { padding: 10px; }
  .card-body { padding: 10px 12px 14px; }
  .fabric-grid, .steps { grid-template-columns: 1fr; }
  .quote-form { padding: 20px; }
  .quote-form .row { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; }
  .filters button { flex: none; }
}
.lb-note { text-align: center; font-size: .75rem; color: var(--muted); margin: 10px 0 0; }
.lb-note[hidden] { display: none; }
