/* ============================================================
   SCENTALITE TRAINING PORTAL — SHARED STYLESHEET
   Theme: Clean editorial white with warm gold accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --white:       #ffffff;
  --off-white:   #fafaf8;
  --cream:       #f5f2ec;
  --light-gray:  #efefed;
  --border:      #e2dfd8;
  --text-muted:  #8a8780;
  --text-body:   #3a3835;
  --text-dark:   #1a1815;
  --gold:        #b8952a;
  --gold-light:  #d4ae4a;
  --gold-pale:   #f0e8d0;
  --accent:      #2a5b8a;
  --accent-lt:   #e8f0f7;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10);
  --radius:      6px;
  --radius-lg:   12px;
  --nav-h:       72px;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── SMALL CAPS FOR avita ───────────────────────────────────── */
.avita { font-variant: small-caps; letter-spacing: .04em; }

/* ── PASSWORD SCREEN ─────────────────────────────────────────── */
#pw-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.pw-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%; max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pw-box img { height: 44px; width: auto; margin: 0 auto 1.5rem; }
.pw-box h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 300;
  color: var(--text-dark); margin-bottom: .4rem;
}
.pw-box p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pw-box input[type="password"] {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text-dark); background: var(--off-white);
  outline: none; transition: border-color .2s;
  margin-bottom: .75rem; text-align: center; letter-spacing: .1em;
}
.pw-box input[type="password"]:focus { border-color: var(--gold); }
.pw-box button {
  width: 100%; padding: .75rem;
  background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .2s; letter-spacing: .04em;
}
.pw-box button:hover { background: var(--gold-light); }
.pw-error {
  font-size: .82rem; color: #c0392b; margin-top: .5rem;
  min-height: 1.2em;
}
/* #site-content is always visible — password gate overlays on top */
#site-content { display: block; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
}
.header-inner {
  max-width: 1280px; width: 100%;
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.site-logo img { height: 44px; width: auto; }
.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: .1rem;
}
.site-nav a {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-body);
  padding: .45rem .65rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--gold-pale); color: var(--gold);
}
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; color: var(--text-body);
  margin-left: auto;
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem; text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--text-dark); letter-spacing: .02em;
  margin-bottom: .5rem;
}
.page-hero .subtitle {
  color: var(--text-muted); font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.gold-rule { width: 60px; height: 2px; background: var(--gold); margin: 1rem auto; }

/* ── MAIN LAYOUT ──────────────────────────────────────────────── */
.site-main { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 5rem; }

/* ── SECTION ─────────────────────────────────────────────────── */
.section-block { margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400; color: var(--text-dark);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--gold-pale);
  margin-bottom: 1rem;
}
.section-title::after {
  content: ''; display: block;
  width: 40px; height: 2px;
  background: var(--gold); margin-top: .35rem;
}
.subsection-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 2rem 0 .9rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--gold-pale);
}
.section-block > p, .section-block > .intro {
  font-size: .96rem; line-height: 1.8;
  color: var(--text-body); max-width: 780px;
  margin-bottom: .75rem;
}

/* ── INFO CARD ───────────────────────────────────────────────── */
.info-card {
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.4rem; margin: 1rem 0;
  font-size: .95rem;
}

/* ── VIDEO GRID ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.video-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-info { padding: .85rem 1rem 1rem; }
.video-num { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.video-title { font-size: .9rem; font-weight: 500; color: var(--text-dark); line-height: 1.4; }
.video-by { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* Single video */
.video-single { max-width: 760px; margin: 1rem 0; }
.video-single .video-embed { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ── DOWNLOAD LINKS ──────────────────────────────────────────── */
.download-list { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.download-inline { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.download-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .875rem; color: var(--accent);
  padding: .4rem .75rem;
  border-radius: var(--radius);
  background: var(--accent-lt);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
  width: fit-content;
}
.download-link:hover { background: var(--white); border-color: var(--accent); color: var(--accent); }
.download-link svg { flex-shrink: 0; color: var(--gold); }
.download-group { margin-bottom: 1.25rem; }
.download-group-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .4rem;
}

/* ── IMAGE THUMBNAIL GRID ─────────────────────────────────────── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem; margin-top: 1rem;
}
.image-thumb-card { text-align: center; }
.image-thumb-card a {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
  background: var(--white);
}
.image-thumb-card a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.image-thumb-card img { width: 100%; height: 120px; object-fit: contain; padding: .5rem; }
.image-thumb-card .img-label { font-size: .72rem; color: var(--text-muted); margin-top: .35rem; line-height: 1.3; }
.image-thumb-card .img-label strong { display: block; color: var(--text-body); font-size: .78rem; }
.img-section-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 1.75rem 0 .75rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--gold-pale);
}

/* ── NAMECARD ─────────────────────────────────────────────────── */
.namecard-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1.25rem; }
.namecard-item .nc-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .6rem;
}
.namecard-item a {
  display: inline-block; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s;
}
.namecard-item a:hover { box-shadow: var(--shadow-md); }

/* ── PRODUCT SECTION ──────────────────────────────────────────── */
.product-section {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem;
}
.product-section h3 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 400;
  color: var(--text-dark); margin-bottom: 1.25rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}

/* ── ROADMAP ──────────────────────────────────────────────────── */
.roadmap-wrap { text-align: center; margin: 1.5rem 0 1rem; }
.roadmap-wrap img { width: 60%; max-width: 700px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.roadmap-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1rem; }

/* ── HOME SPECIFIC ────────────────────────────────────────────── */
.home-logo-wrap { text-align: center; padding: 2.5rem 0 1.5rem; }
.home-logo-wrap img { max-width: 125px; margin: 0 auto; }
.welcome-block { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.welcome-block h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 300; color: var(--text-dark); margin-bottom: 1rem; }
.welcome-block p { font-size: 1rem; line-height: 1.85; color: var(--text-body); }
.model-banner {
  background: linear-gradient(135deg, var(--text-dark), #2c2a26);
  border-radius: var(--radius-lg); padding: 2.5rem 3rem;
  margin: 2rem 0 3rem; text-align: center; position: relative; overflow: hidden;
}
.model-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(184,149,42,.04) 20px, rgba(184,149,42,.04) 40px);
}
.model-steps { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.model-step { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; color: var(--gold-light); letter-spacing: .04em; }
.model-dot { color: var(--gold); font-size: 1.4rem; opacity: .6; }
.model-desc { color: #ccc; font-size: .92rem; line-height: 1.8; max-width: 680px; margin: 0 auto; position: relative; }
.vision-block {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 2.5rem 3rem; margin-top: 3rem; border: 1px solid var(--border); text-align: center;
}
.vision-block h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.vision-block p { font-size: 1rem; color: var(--text-body); line-height: 1.8; max-width: 680px; margin: 0 auto .75rem; }
.vision-block .vision-ch { font-size: .96rem; color: var(--text-muted); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer { background: var(--text-dark); color: #ccc; padding: 3rem 2rem 2rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand p { font-size: .84rem; line-height: 1.8; color: #aaa; margin-top: .75rem; max-width: 280px; }
.footer-nav-title, .footer-social-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: .9rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { font-size: .84rem; color: #bbb; transition: color .2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-social { display: flex; flex-direction: column; gap: .55rem; }
.footer-social a { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #bbb; transition: color .2s; }
.footer-social a:hover { color: var(--gold-light); }
.footer-social svg { flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px; margin: 2rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid #333;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .76rem; color: #666;
}
.footer-tagline { font-style: italic; color: #888; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav a { font-size: .72rem; padding: .4rem .5rem; }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .site-nav {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 1rem; gap: .2rem; box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: .7rem 1rem; font-size: .9rem; }
  .nav-toggle { display: block; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .roadmap-wrap img { width: 100%; }
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .model-banner { padding: 2rem 1.5rem; }
  .vision-block { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .site-main { padding: 2rem 1rem 4rem; }
  .page-hero { padding: 2.5rem 1rem 2rem; }
}
