/* ============================================================
   BIGG BOSS — Secure in Style
   Design system: brushed-brass on ink, engineering precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root{
  /* Palette */
  --ink:        #14120f;
  --ink-soft:   #211e19;
  --paper:      #f3efe6;
  --paper-dim:  #ece5d4;
  --white:      #ffffff;
  --brass:      #b6893f;
  --brass-light:#d9b876;
  --brass-dark: #8f6a2c;
  --steel:      #6d6b64;
  --steel-light:#9a978d;
  --line:       #e4ddcc;
  --line-dark:  #3a362e;
  --red:        #a33b2f;

  /* Type */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --step-1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step1:  clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step2:  clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  --step3:  clamp(2.1rem, 1.7rem + 1.6vw, 3rem);
  --step4:  clamp(2.6rem, 2rem + 2.6vw, 4.2rem);

  --radius: 2px;
  --container: 1240px;
  --header-h: 92px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1{ font-size: var(--step4); font-weight: 500; }
h2{ font-size: var(--step3); }
h3{ font-size: var(--step2); }
h4{ font-size: var(--step1); font-family: var(--f-body); font-weight: 600; }
p{ margin: 0 0 1em; color: var(--steel); max-width: 62ch; }
.lede{ font-size: var(--step1); color: var(--ink-soft); max-width: 46ch; }

:focus-visible{ outline: 2px solid var(--brass); outline-offset: 3px; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 30px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn-brass{ background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-brass:hover{ background: var(--brass-dark); border-color: var(--brass-dark); color: var(--white); }
.btn-line{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover{ background: var(--ink); color: var(--white); }
.btn-line-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-line-light:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-sm{ padding: 11px 22px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header .container{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height: 52px; width:auto; }

.main-nav{ display:flex; height:100%; }
.main-nav > ul{ display:flex; height:100%; }
.main-nav > ul > li{ position:relative; height:100%; display:flex; align-items:center; }
.main-nav > ul > li > a{
  display:flex;
  align-items:center;
  height:100%;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a{
  color: var(--ink);
  border-bottom-color: var(--brass);
}
.main-nav > ul > li.has-dropdown > a::after{
  content:'';
  display:inline-block;
  width:7px; height:7px;
  margin-left:7px;
  border-right: 1.5px solid var(--steel-light);
  border-bottom: 1.5px solid var(--steel-light);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.main-nav > ul > li.has-dropdown:hover > a::after{ transform: rotate(225deg) translateY(2px); }

.dropdown{
  position:absolute;
  top:100%;
  left:0;
  min-width: 300px;
  background: var(--ink);
  border-top: 2px solid var(--brass);
  padding: 10px 0;
  opacity:0;
  visibility:hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.main-nav > ul > li.has-dropdown:hover .dropdown,
.main-nav > ul > li.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.dropdown li{ position:relative; }
.dropdown li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 13px 26px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown li > a:hover{ background: rgba(255,255,255,0.06); color: var(--brass-light); }
.dropdown .has-submenu > a::after{
  content:'';
  width:6px; height:6px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-top: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
.submenu{
  position:absolute;
  top:-2px;
  left:100%;
  min-width: 260px;
  background: var(--ink-soft);
  border-top: 2px solid var(--brass);
  padding: 10px 0;
  opacity:0; visibility:hidden;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown li.has-submenu:hover .submenu,
.dropdown li.has-submenu:focus-within .submenu{
  opacity:1; visibility:visible; transform: translateX(0);
}

.header-cta{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.header-cta .btn{ padding: 12px 24px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 8px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb / page header ---------- */
.page-hero{
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 56px;
  position:relative;
  overflow:hidden;
}
.page-hero .eyebrow{ color: var(--brass-light); }
.page-hero h1{ color: var(--white); max-width: 18ch; }
.page-hero p{ color: rgba(255,255,255,0.7); }
.breadcrumb{
  display:flex; flex-wrap:wrap; gap:8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.breadcrumb a{ color: rgba(255,255,255,0.75); }
.breadcrumb a:hover{ color: var(--brass-light); }
.breadcrumb span{ color: rgba(255,255,255,0.35); }

.eyebrow{
  display:inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass-dark);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
.section-paper{ background: var(--paper); }
.section-ink{ background: var(--ink); color: var(--white); }
.section-ink h2, .section-ink h3, .section-ink h4{ color: var(--white); }
.section-ink p{ color: rgba(255,255,255,0.68); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

hr.rule{ border:none; border-top:1px solid var(--line); margin: 0; }

/* ---------- Hero (home) ---------- */
.hero{
  background: var(--ink);
  color: var(--white);
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 620px;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 60px 5vw 60px 32px;
  max-width: 620px;
}
.hero-copy h1{ color: var(--white); font-size: var(--step4); }
.hero-copy p{ color: rgba(255,255,255,0.68); font-size: var(--step1); max-width: 40ch; }
.hero-actions{ display:flex; gap:16px; margin-top: 12px; flex-wrap:wrap; }
.hero-art{
  position:relative;
  background: linear-gradient(155deg, #1c1912 0%, #0c0b09 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.hero-art svg{ width: 100%; max-width: 420px; height:auto; }

/* ---------- Stat strip ---------- */
.stat-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.stat-strip div{
  padding: 34px 28px;
  border-left: 1px solid var(--line);
  text-align:left;
}
.stat-strip div:first-child{ border-left:none; }
.stat-num{
  font-family: var(--f-display);
  font-size: var(--step3);
  color: var(--ink);
  display:block;
  margin-bottom: 4px;
}
.stat-label{ font-size: 0.88rem; color: var(--steel); }

/* ---------- Grids & cards ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }

.tile{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover{ border-color: var(--brass); }
.tile-icon{ width:44px; height:44px; margin-bottom: 22px; color: var(--brass); }
.tile h3, .tile h4{ margin-bottom: 10px; }
.tile p{ margin-bottom: 18px; font-size: 0.95rem; }
.tile-link{ font-weight:600; font-size: 0.9rem; color: var(--ink); border-bottom:1px solid var(--brass); padding-bottom:2px; }
.tile-link:hover{ color: var(--brass-dark); }

.product-card{
  position:relative;
  border:1px solid var(--line);
  background: var(--white);
  overflow:hidden;
}
.product-card .thumb{
  aspect-ratio: 4/3;
  background: var(--paper);
  display:flex; align-items:center; justify-content:center;
  border-bottom: 1px solid var(--line);
}
.product-card .thumb svg{ width:46%; height:46%; color: var(--brass); }
.product-card .body{ padding: 26px 26px 30px; }
.product-card h3{ font-size: var(--step1); margin-bottom:8px; }
.product-card p{ font-size:0.92rem; margin-bottom:16px; }

/* ---------- Split feature ---------- */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.split.reverse .split-media{ order:2; }
.split-media{
  aspect-ratio: 4/3.2;
  background: var(--paper-dim);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.split-media svg{ width:52%; }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap:48px; counter-reset: step; }
.step{ border-top: 1px solid var(--line-dark); padding-top: 24px; }
.section-paper .step{ border-top-color: var(--line); }
.step-num{
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--brass);
  display:block;
  margin-bottom: 14px;
}

/* ---------- Quote / reference ---------- */
.quote-panel{
  background: var(--ink);
  color: var(--white);
  padding: 80px 5vw;
  text-align:center;
}
.quote-panel blockquote{
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--step2);
  max-width: 820px;
  margin: 0 auto 26px;
  line-height:1.35;
  color: var(--white);
}
.quote-cite{ color: var(--brass-light); font-size:0.9rem; font-style:normal; }

/* ---------- News cards ---------- */
.news-card{ border:1px solid var(--line); background:var(--white); }
.news-date{ font-size:0.82rem; color: var(--brass-dark); font-weight:600; margin-bottom:10px; display:block; }
.news-card .body{ padding: 26px; }
.news-card .thumb{ aspect-ratio: 16/10; background: var(--paper); border-bottom:1px solid var(--line); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--brass);
  color: var(--ink);
  padding: 56px 0;
}
.cta-band .container{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ margin:0; font-size: var(--step2); }
.cta-band .btn-line{ border-color: var(--ink); }

/* ---------- Sidebar / subpage layout ---------- */
.subpage-layout{ display:grid; grid-template-columns: 280px 1fr; gap: 64px; align-items:start; }
.side-nav{ border-top: 2px solid var(--ink); padding-top: 8px; position:sticky; top: calc(var(--header-h) + 32px); }
.side-nav .side-title{ font-family: var(--f-body); font-weight:700; font-size:0.78rem; letter-spacing:0.05em; color:var(--steel); padding: 14px 0 10px; }
.side-nav li a{
  display:block;
  padding: 12px 4px;
  font-size:0.93rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.side-nav li a:hover{ color: var(--brass-dark); }
.side-nav li.current a{ color: var(--brass-dark); font-weight:600; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full{ grid-column: 1 / -1; }
.field label{ display:block; font-size:0.86rem; font-weight:600; color: var(--ink-soft); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px 15px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--brass); outline:none; }
.field textarea{ resize: vertical; min-height: 130px; }
.field-hint{ font-size:0.8rem; color: var(--steel-light); margin-top:6px; }
.form-note{ font-size:0.85rem; color: var(--steel); margin-top: 18px; }

.alert{ padding: 16px 20px; border-radius: var(--radius); font-size:0.92rem; margin-bottom: 28px; }
.alert-success{ background:#eef4ea; border:1px solid #bcd6a9; color:#3c6b2c; }
.alert-error{ background:#f8ecea; border:1px solid #e3b8b0; color:#8a3226; }

/* ---------- Download / doc list (service center) ---------- */
.doc-list{ border-top: 1px solid var(--line); }
.doc-row{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.doc-row .doc-name{ font-weight:600; color: var(--ink); }
.doc-row .doc-meta{ font-size:0.82rem; color: var(--steel-light); margin-top:4px; }
.doc-row .doc-icon{ width:34px; height:34px; flex-shrink:0; color: var(--brass); }
.doc-row .doc-left{ display:flex; align-items:center; gap:18px; }

/* ---------- Timeline (history) ---------- */
.timeline{ position:relative; padding-left: 36px; border-left: 1px solid var(--line-dark); }
.section-paper .timeline{ border-left-color: var(--line); }
.timeline-item{ position:relative; padding-bottom: 48px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:'';
  position:absolute;
  left:-41px; top:4px;
  width:9px; height:9px;
  border-radius:50%;
  background: var(--brass);
}
.timeline-year{ font-family: var(--f-display); font-size:1.4rem; color: var(--brass); margin-bottom:6px; display:block; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,0.65); padding-top: 80px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.footer-brand img{ height:44px; margin-bottom: 18px; }
.footer-brand p{ color: rgba(255,255,255,0.55); font-size:0.9rem; max-width:32ch; }
.footer-col h5{ color: var(--white); font-size:0.85rem; font-weight:600; letter-spacing:0.03em; margin-bottom:18px; }
.footer-col li{ margin-bottom: 11px; }
.footer-col a{ font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover{ color: var(--brass-light); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 28px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a{ color: rgba(255,255,255,0.55); }
.footer-legal a{ margin-left:20px; }
.social-row{ display:flex; gap:14px; margin-top:20px; }
.social-row a{
  width:36px; height:36px; border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.social-row a:hover{ border-color: var(--brass); background: rgba(182,137,63,0.12); }
.social-row svg{ width:16px; height:16px; }

/* ---------- Utilities ---------- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.text-center{ text-align:center; }
.center-col{ max-width: 720px; margin:0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px){
  .footer-top{ grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .subpage-layout{ grid-template-columns: 220px 1fr; gap:40px; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .stat-strip div:nth-child(3){ border-left:none; }
}

@media (max-width: 900px){
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left:0; right:0; bottom:0;
    background: var(--ink);
    display:block;
    height: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y:auto;
    padding: 12px 0 40px;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav > ul{ display:block; height:auto; }
  .main-nav > ul > li{ display:block; height:auto; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav > ul > li > a{
    height:auto; padding: 18px 24px; color: rgba(255,255,255,0.88);
    border-bottom:none; justify-content:space-between; width:100%;
  }
  .main-nav > ul > li.has-dropdown > a::after{ border-color: rgba(255,255,255,0.5); }
  .dropdown{
    position:static; opacity:1; visibility:visible; transform:none;
    display:none; border-top:none; background: rgba(255,255,255,0.03);
    min-width:0; padding:0;
  }
  .main-nav > ul > li.is-expanded .dropdown{ display:block; }
  .submenu{
    position:static; opacity:1; visibility:visible; transform:none;
    display:none; background: rgba(255,255,255,0.04); border-top:none; padding:0;
  }
  .dropdown li.is-expanded .submenu{ display:block; }
  .dropdown li > a{ padding: 14px 24px 14px 40px; }
  .submenu li > a{ padding-left: 56px; }
  .header-cta .btn-line{ display:none; }
  .nav-toggle{ display:flex; }

  .hero{ grid-template-columns: 1fr; min-height:0; }
  .hero-art{ order:-1; padding: 32px; border-left:none; }
  .hero-copy{ padding: 44px 24px 52px; max-width:none; }
  .split{ grid-template-columns:1fr; gap:36px; }
  .split.reverse .split-media{ order:0; }
  .grid-3, .grid-4, .grid-2, .steps{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  .subpage-layout{ grid-template-columns: 1fr; }
  .side-nav{ position:static; margin-bottom: 40px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .container{ padding: 0 20px; }
  .section{ padding: 64px 0; }
  h1{ font-size: var(--step3); }
  .cta-band .container{ flex-direction:column; align-items:flex-start; }
  .footer-top{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr; }
  .stat-strip div{ border-left:none; border-top:1px solid var(--line); }
  .stat-strip div:first-child{ border-top:none; }
  .quote-panel blockquote{ font-size: var(--step1); }
}
