/* Digital Eyewear Labs — shared styles
   Brand: navy #0E1B2B, gold #C9A84C, grey #8FA3B1 */

:root {
  --navy: #0E1B2B;
  --navy-2: #16273B;
  --gold: #C9A84C;
  --grey: #8FA3B1;

  --bg: var(--navy);
  --bg-alt: var(--navy-2);
  --card: var(--navy-2);
  --text: #E8EDF1;
  --muted: var(--grey);
  --line: rgba(143, 163, 177, 0.22);
  --header-bg: rgba(14, 27, 43, 0.92);

  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 2px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.01em; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: var(--radius); font: inherit; cursor: pointer; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav a.active { box-shadow: none; color: var(--gold); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 500 0.95rem var(--font-body);
  padding: 13px 24px; border-radius: var(--radius);
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold);
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 100px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-art { justify-self: center; width: min(100%, 360px); opacity: 0.95; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 800px) {
  .hero { padding: 64px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: 200px; order: -1; justify-self: start; }
}
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }

/* Product page hero with a cut-out product image */
.product-hero .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.product-shot { margin: 0; }
/* The photo's background is matched to --navy; the soft mask hides any edge. */
.product-shot img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%);
}
.product-shot figcaption {
  text-align: right; margin-top: 8px;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 800px) { .product-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.card .tag {
  align-self: flex-start; font-family: var(--font-label); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 12px; color: var(--text); font-weight: 500; text-decoration: none; }
.card .more:hover { color: var(--gold); }
.card.product { min-height: 300px; }

.callout {
  margin-top: 24px; padding: 28px 32px; border: 1px solid var(--line); border-left: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--muted); }

.point { border-top: 2px solid var(--gold); padding-top: 18px; }
.point p { color: var(--muted); margin: 0; }

/* ---------- Specs ---------- */
.specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; }
.specs.steps li { display: grid; grid-template-columns: 9.5rem 1fr; }
.specs.steps li span:first-child { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gold); padding-top: 3px; }
.specs.steps li span:last-child { text-align: left; color: var(--muted); }
@media (max-width: 480px) { .specs.steps li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Team ---------- */
.person .avatar {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 16px;
  border: 1px solid var(--gold);
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.person p { font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-size: 0.95rem; }
.form-status.ok { color: #3FA36B; }
.form-status.err { color: #D9534F; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--text); }

/* ---------- Placeholder marker (remove once real content is in) ---------- */
.todo { outline: 1px dashed var(--gold); outline-offset: 4px; }
