/* ═══════════════════════════════════════════════════════════════
   site.css — shared shell for every Shane & Co. page
   Tokens, reset, header/nav, section primitives, buttons,
   dividers, video wrapper, footer, shared responsive rules.
   Page-specific styles live in home.css / smartlock.css.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
}

:root {
  --bg:         #f7f4ef;
  --surface:    #ffffff;
  --surface2:   #f0ece4;
  --border:     #e0d8cc;
  --gold:       #a07830;
  --gold-light: #c9a05a;
  --gold-dim:   rgba(160,120,48,0.10);
  --text:       #1a1614;
  --text-mid:   #5a4e42;
  --text-muted: #9c8e80;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-area a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.crest { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Cebu badge */
.cebu-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-light);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.cebu-badge svg { width: 12px; height: 12px; flex-shrink: 0; display: block; }

/* Tab nav — real links now that each product is its own page */
nav { display: flex; gap: 2px; }
nav a {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px; right: 18px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
nav a:hover { color: var(--text-mid); }
nav a.active { color: var(--gold); }
nav a.active::after { transform: scaleX(1); }

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  gap: 16px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: 280px;
}
.divider-diamond {
  width: 5px; height: 5px;
  background: var(--gold-light);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Section ── */
.section {
  padding: 48px 48px;
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.section-heading {
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 18px;
}
.section-heading em { font-style: italic; color: var(--gold); }
.body-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 720px;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 2px;
  cursor: pointer;
  background: none;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  text-align: center;
}
.btn-gold:hover:not(:disabled) { background: var(--gold); color: #fff; }
.btn-gold:disabled { opacity: 0.35; cursor: default; }

/* Filled variant — same metrics, gold ground */
.btn-gold-solid {
  background: var(--gold);
  color: #fff;
}
.btn-gold-solid:hover:not(:disabled) { background: #8a662a; border-color: #8a662a; color: #fff; }

/* CTA strip */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
}
.cta-strip h2 { font-size: 2.2rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.cta-strip p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 28px; }

/* ── Video wrapper (project videos + smart lock demo) ── */
.video-wrap {
  width: 60%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 700px) {
  .video-wrap { width: 100%; }
}

/* ── Certification badges ── */
.cert-badge {
  font-size: 0.82rem;
  letter-spacing: 2px;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 2px;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 0;
  font-size: 0.90rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
footer .g { color: var(--gold); font-weight: 500; }
.footer-contact-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.footer-contact-bar a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-contact-bar a:hover { text-decoration: underline; }
.footer-contact-bar a svg { width: 13px; height: 13px; flex-shrink: 0; display: block; }
.footer-contact-bar .fc-sep { color: var(--border); user-select: none; }
.footer-copy { padding: 14px 24px; }
.footer-operator { padding: 0 24px 14px; font-size: 0.82rem; }

/* ── Responsive (shared shell only) ── */
@media (max-width: 700px) {
  html { font-size: 16px; }
  header {
    padding: 14px 20px 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .logo-area { width: 100%; justify-content: center; }
  .logo-text { text-align: center; }
  .logo-name { font-size: 1.3rem; letter-spacing: 2px; }
  .logo-sub { font-size: 0.78rem; letter-spacing: 1.5px; }
  .cebu-badge { display: none; }
  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  nav a {
    padding: 10px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.80rem;
    letter-spacing: 0.8px;
    line-height: 1.2;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
  }
  nav a::after { display: none; }
  nav a.active {
    border-color: var(--gold-light);
    background: var(--gold-dim);
  }
  .section { padding: 36px 24px; }
  .divider { padding: 12px 24px; }
  .cta-strip { padding: 44px 24px; }
  .footer-contact-bar { padding: 12px 18px; gap: 5px 14px; font-size: 0.78rem; }
  .footer-copy { padding: 12px 18px; }
  .footer-operator { padding: 0 18px 12px; }
}

@media (max-width: 480px) {
  .logo-name { font-size: 1.02rem; letter-spacing: 1.6px; }
  nav { grid-template-columns: 1fr; }
  nav a { font-size: 0.72rem; }
  .section { padding: 30px 18px; }
  .divider { padding: 10px 18px; }
  .cta-strip { padding: 38px 18px; }
  .footer-contact-bar { padding: 10px 16px; }
  .footer-copy { padding: 10px 16px; }
  .footer-operator { padding: 0 16px 10px; }
  .section-heading,
  .cta-strip h2 { font-size: 1.6rem; }
  .btn-gold {
    width: 100%;
    text-align: center;
  }
}
