/* =====================================================
   SKYLA OUTDOOR — PREMIUM DESIGN SYSTEM
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- TOKENS ----- */
:root {
  --dark:        #050C1A;
  --navy:        #091525;
  --navy-soft:   #0E1E30;
  --navy-mid:    #172740;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dim:    rgba(201,168,76,.18);
  --gold-border: rgba(201,168,76,.4);
  --white:       #FFFFFF;
  --text:        #0F1A28;
  --text-soft:   #3A4A60;
  --muted:       #6B7A99;
  --border:      #E1E9F5;
  --surface:     #F4F7FE;
  --surface2:    #EDF1FA;
  --card-shadow: 0 4px 28px rgba(9,21,37,.09);
  --card-hover:  0 12px 48px rgba(9,21,37,.18);
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }

/* ----- LAYOUT ----- */
.container { width: min(1180px, 92vw); margin: 0 auto; }
.narrow    { width: min(780px, 92vw); margin: 0 auto; }
.section   { padding: 96px 0; }
.section-sm{ padding: 64px 0; }
.section-alt { background: var(--surface); }

/* Grid children should never overflow their container */
.cards, .cards-2, .cards-3, .cards-4,
.kpi-grid, .stats-grid, .process-grid,
.admin-split-layout, .admin-content { min-width: 0; }

/* ----- TYPOGRAPHY ----- */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 620px;
  line-height: 1.8;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; }
p { color: var(--text-soft); }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
  box-shadow: 0 4px 20px var(--gold-dim);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 32px rgba(201,168,76,.5);
  transform: translateY(-2px);
}
.btn-white-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Legacy aliases for PHP views that still use old class names */
.btn-solid { 
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #A8892E);
  color: var(--dark); border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,.35);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white); cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ----- BADGE ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

/* ----- ALERTS ----- */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert.success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

/* ----- FORM ----- */
.form        { display: grid; gap: 20px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group  { display: flex; flex-direction: column; gap: 8px; }
.form-label  { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .3px; }
.form label  { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.form input,
.form textarea,
.form select,
.field {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form textarea { resize: vertical; min-height: 120px; }
.form button[type="submit"] { justify-self: start; }

/* ----- HEADER ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}
.site-header.transparent { background: transparent; }
.site-header.scrolled {
  background: rgba(5,12,26,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}
.nav-logo span { color: var(--gold); }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #A8892E);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(14,30,48,.8) 0%, transparent 70%),
    linear-gradient(160deg, #050C1A 0%, #091525 40%, #0F2040 100%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: 20%; right: 8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.1);opacity:.7} }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  padding: 120px 0 80px;
}
.hero-text .eyebrow { margin-bottom: 24px; }
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-text h1 em,
.page-hero-inner h1 em,
h1 em { font-style: italic; color: var(--gold-light); }
.hero-text .lead {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-light);
  line-height: 1;
}
.hero-meta-item span { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: 1px; text-transform: uppercase; }

.hero-card-wrap { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,.08); border-color: rgba(201,168,76,.3); }
.hero-card-icon {
  width: 44px; height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.hero-card h4 { font-family: var(--font-display); font-size: 17px; color: var(--white); margin-bottom: 6px; }
.hero-card p  { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ----- TICKER / MARQUEE ----- */
.ticker-bar {
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  flex-shrink: 0;
}
.ticker-track .dot { color: rgba(5,12,26,.4); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--card-hover); transform: translateY(-4px); }
.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--surface2);
  display: block;
}
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: #8B6914;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
}
.card-text { font-size: 14px; color: var(--muted); line-height: 1.65; }
.card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 14px;
}
.card-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Project gallery card */
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.project-card-img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); background: var(--surface2); }
.project-card:hover .project-card-img { transform: scale(1.06); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,12,26,.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}
.project-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.project-card-title { font-family: var(--font-display); font-size: 21px; color: var(--white); margin-bottom: 6px; }
.project-card-meta { font-size: 13px; color: rgba(255,255,255,.6); }

/* ----- SECTION HEADER ----- */
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-lead { margin: 0 auto; }

/* ----- FEATURE GRID ----- */
.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--gold); box-shadow: var(--card-hover); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-title { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; color: var(--text); }
.feature-text  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ----- STATS BAND ----- */
.stats-band {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy-soft) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider {
  width: 40px; height: 2px;
  background: var(--gold);
  margin: 14px auto;
  border-radius: 2px;
}

/* ----- CTA BAND ----- */
.cta-band {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); color: var(--dark); margin-bottom: 16px; }
.cta-band p  { font-size: 16px; color: rgba(5,12,26,.7); margin-bottom: 36px; }

/* ----- PROCESS STEPS ----- */
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; position: relative; }
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.process-step { text-align: center; padding: 0 24px; }
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin: 0 auto 24px;
  position: relative; z-index: 1;
}
.process-title { font-family: var(--font-display); font-size: 17px; color: var(--text); margin-bottom: 8px; }
.process-text  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ----- TESTIMONIALS ----- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; }
.testimonial-text  { font-size: 15px; color: var(--text-soft); font-style: italic; line-height: 1.75; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #A8892E);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--dark);
}
.testimonial-name  { font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-role  { font-size: 12px; color: var(--muted); }

/* ----- ABOUT SPLIT ----- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.split-image img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); background: var(--surface2); }
.split-image-badge {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(9,21,37,.15);
  display: flex; align-items: center; gap: 12px;
}
.split-image-badge strong { display: block; font-size: 22px; font-family: var(--font-display); color: var(--gold); }
.split-image-badge span  { font-size: 12px; color: var(--muted); }
.split-list { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.split-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-soft);
}
.split-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gold);
  font-weight: 700; flex-shrink: 0;
  margin-top: 2px;
}

/* ----- CONTACT ----- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info { position: sticky; top: 100px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-detail-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.contact-detail-value { font-size: 15px; color: var(--text); }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
@media (max-width: 720px) {
  .form-card { padding: 24px 20px; border-radius: 16px; }
}

/* ----- FEATURED PROJECT CARD ----- */
.featured-project {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  height: 520px;
  cursor: pointer;
}
.featured-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,12,26,.92) 0%, rgba(5,12,26,.4) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 52px;
}
.featured-project-content { max-width: 520px; }
.featured-project-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .featured-project { height: 360px; }
  .featured-project-overlay { padding: 24px; align-items: flex-start; background: linear-gradient(to bottom, rgba(5,12,26,.3) 0%, rgba(5,12,26,.9) 100%); }
  .featured-project-content { max-width: 100%; }
}
@media (max-width: 480px) {
  .featured-project { height: 300px; }
}

/* ----- PAGE HERO INNER LAYOUT ----- */
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.page-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}
.page-hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}
@media (max-width: 720px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-stats { flex-direction: row; gap: 10px; }
  .page-hero-stat  { flex: 1; padding: 14px 12px; }
  .page-hero-stat > div:first-child { font-size: 24px !important; }
}
@media (max-width: 400px) {
  .page-hero-stats { display: none; }
}

/* ----- TIMELINE (about page) ----- */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.timeline-dot {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-text { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* ----- ADVANTAGE GRID (products page) ----- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.adv-item {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.adv-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.adv-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.adv-text { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
@media (max-width: 720px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-item { padding: 20px 18px; }
}

/* ----- TABLE ----- */
.table-wrap { border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 480px; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}
.table thead { background: var(--dark); }
.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface); }
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.badge-status.pending  { background: #FEF3C7; color: #92400E; }
.badge-status.approved { background: #D1FAE5; color: #065F46; }
.badge-status.rejected { background: #FEE2E2; color: #991B1B; }
.badge-status.ordered  { background: #DBEAFE; color: #1E40AF; }
.badge-status.active   { background: #D1FAE5; color: #065F46; }
.badge-status.inactive { background: #F1F5F9; color: #475569; }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.75; margin: 16px 0 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  color: rgba(255,255,255,.6);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ----- MUTED / UTILITY ----- */
.muted  { color: var(--muted); }
.text-gold { color: var(--gold); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* ----- PAGE HEADER ----- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy-soft) 100%);
  padding: 160px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero h1 { position: relative; z-index: 1; font-size: clamp(28px,4vw,52px); color: var(--white); margin-bottom: 14px; }
.page-hero p  { position: relative; z-index: 1; font-size: 16px; color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto; }

/* ----- PROSE ----- */
.prose h2 { font-family: var(--font-display); font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-family: var(--font-display); font-size: 20px; margin: 28px 0 10px; }
.prose p   { color: var(--text-soft); margin-bottom: 18px; line-height: 1.8; }
.prose ul  { padding-left: 0; list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.prose ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.prose ul li::before { content: '▸'; color: var(--gold); font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* ----- FADE-IN ANIMATION ----- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }

/* =====================================================
   ADMIN PANEL — SIDEBAR LAYOUT
   ===================================================== */
.admin-body { background: #F0F4FB; min-height: 100vh; display: flex; }

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-brand .brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #A8892E);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--dark);
}
.admin-sidebar-brand .brand-text { font-family: var(--font-display); font-size: 15px; color: var(--white); line-height: 1.2; }
.admin-sidebar-brand .brand-text small { display: block; font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font-body); margin-top: 2px; }

.admin-nav { padding: 20px 0; flex: 1; }
.admin-nav-label {
  padding: 16px 24px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav-item.active { color: var(--gold-light); border-left-color: var(--gold); background: rgba(201,168,76,.08); }
.admin-nav-item .nav-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }

.admin-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.admin-user-pill {
  display: flex; align-items: center; gap: 10px;
}
.admin-user-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #A8892E);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--dark); font-weight: 700;
  font-family: var(--font-display);
}
.admin-user-name  { font-size: 13px; font-weight: 600; color: var(--white); }
.admin-user-role  { font-size: 11px; color: rgba(255,255,255,.35); }
.admin-logout-btn {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 14px; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.admin-logout-btn:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); }

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
}
.admin-topbar-title { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.admin-topbar-sub   { font-size: 13px; color: var(--muted); }
.admin-content { padding: 32px; flex: 1; }

/* Quantity input inside table */
.qty-input {
  width: 80px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition: var(--transition);
}
.qty-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-dim); }

/* Quote table inline form */
.quote-update-form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.quote-status-select { padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; min-width: 100px; background: var(--white); color: var(--text); cursor: pointer; }
.quote-status-select:focus { border-color: var(--gold); outline: none; }
.btn-action-sm {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark); font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.btn-action-sm:hover { box-shadow: 0 4px 14px var(--gold-dim); }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: #7a5c10; font-size: 12px; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  transition: var(--transition);
}
.btn-pdf:hover { background: var(--gold-border); }

/* Admin shortcut cards */
.shortcut-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  min-width: 0;
}
.shortcut-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(0,0,0,.06); transform: translateY(-2px); }
.shortcut-icon { font-size: 28px; margin-bottom: 12px; }
.shortcut-title { font-family: var(--font-display); font-size: 15px; color: var(--text); margin-bottom: 4px; }
.shortcut-sub  { font-size: 12px; color: var(--muted); }

/* Admin KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-bottom: 36px; }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex; align-items: center; gap: 18px;
  transition: var(--transition);
}
.kpi-card:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.kpi-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.kpi-icon.gold  { background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); }
.kpi-icon.blue  { background: rgba(59,130,246,.1);  border: 1px solid rgba(59,130,246,.25); }
.kpi-icon.green { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.25); }
.kpi-icon.red   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.25); }
.kpi-value { font-family: var(--font-display); font-size: 28px; color: var(--text); line-height: 1; }
.kpi-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Admin panel/card */
.admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-panel-title { font-family: var(--font-display); font-size: 17px; color: var(--text); }
.admin-panel-body  { padding: 28px; }

/* Admin split layout */
.admin-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-split-layout { grid-template-columns: 1fr; }
}

/* Admin dashboard 2-col panel row */
.admin-panels-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .admin-panels-2 { grid-template-columns: 1fr; }
}

/* Admin shortcut quick-nav cards */
.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Admin form overrides */
.admin-form { display: grid; gap: 18px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Standalone field block (label above input) */
.admin-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin-label  { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--text-soft, var(--muted)); text-transform: uppercase; white-space: nowrap; }
.admin-field input,
.admin-field textarea,
.admin-field select { width: 100%; box-sizing: border-box; }

/* Legacy: labels with nested input (kept for compatibility) */
.admin-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); min-width: 0; }
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-field input,
.admin-field textarea,
.admin-field select { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); background: var(--white); transition: var(--transition); outline: none; }
.admin-field input[type="file"] { padding: 8px 12px; cursor: pointer; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus,
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }

/* =====================================================
   ADMIN SETTINGS TABS
   ===================================================== */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  flex-wrap: wrap;
}
.stab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.stab:hover { background: var(--surface2); color: var(--text); }
.stab.active { background: var(--white); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stab-count {
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.stab-form { display: flex; flex-direction: column; gap: 20px; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}
.settings-grid .settings-full { grid-column: 1 / -1; }

/* Milestone rows */
.ms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.ms-row-handle {
  font-size: 18px;
  color: var(--border);
  cursor: grab;
  padding-top: 28px;
  flex-shrink: 0;
}
.ms-row-fields {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-end;
  min-width: 0;
}
.ms-remove {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
  flex-shrink: 0;
  transition: var(--transition);
}
.ms-remove:hover { border-color: #e74c3c; color: #e74c3c; }
@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; }
  .stab { padding: 8px 12px; font-size: 12px; }
  .ms-row-fields { flex-direction: column; }
  .ms-row-handle { display: none; }
}

/* =====================================================
   DEALER PORTAL
   ===================================================== */
.dealer-body  { background: #F0F4FB; min-height: 100vh; display: flex; }
.dealer-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark);
  min-height: 100vh;
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 50; overflow-y: auto;
}
.dealer-main  { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

/* ----- DEALER LOGIN ----- */
.dealer-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dealer-login-left {
  background: linear-gradient(160deg, var(--dark) 0%, var(--navy-mid) 100%);
  padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.dealer-login-left::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.dealer-login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.dealer-login-brand .logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), #A8892E); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--dark);
}
.dealer-login-brand span { font-family: var(--font-display); font-size: 22px; color: var(--white); }
.dealer-login-brand span em { color: var(--gold); font-style: normal; }
.dealer-login-hero-text { position: relative; z-index: 1; }
.dealer-login-hero-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.dealer-login-hero-text p  { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 380px; }
.dealer-login-feats { position: relative; z-index: 1; display: grid; gap: 14px; }
.dealer-login-feat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.dealer-login-feat .feat-icon { font-size: 20px; }
.dealer-login-feat p { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }

.dealer-login-right {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 48px;
}
.dealer-login-form-wrap { width: min(400px, 100%); }
.dealer-login-form-wrap h3 { font-family: var(--font-display); font-size: 28px; color: var(--text); margin-bottom: 8px; }
.dealer-login-form-wrap .login-sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; }

/* ----- RESPONSIVE ----- */
/* ── 1100px: moderate screen ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .process-grid::before { display: none; }
  /* Compact hero gap at 1100px */
  .hero-content { gap: 48px; }
}

/* ── 960px: small laptop / large tablet — hide heavy nav items ── */
@media (max-width: 960px) {
  /* Hide lang/theme switchers in nav; they stay in mobile menu */
  .nav-cta .lang-theme-bar { display: none; }
  /* Tighten nav-cta gap */
  .nav-cta { gap: 8px; }
  /* Shrink buttons */
  .nav-cta .btn-sm { padding: 7px 14px; font-size: 13px; }
}

/* ── 900px: tablet ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 100px 0 60px; }
  .hero-card-wrap { display: none; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .dealer-login-page { grid-template-columns: 1fr; }
  .dealer-login-left { display: none; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ── 720px: mobile ── */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Admin / dealer sidebar slide-in */
  .admin-sidebar, .dealer-sidebar {
    width: 260px;
    left: -260px;
    transition: left .28s ease;
    z-index: 110;
    box-shadow: none;
  }
  .admin-sidebar.open, .dealer-sidebar.open {
    left: 0;
    box-shadow: 4px 0 32px rgba(0,0,0,.35);
  }
  .admin-main, .dealer-main { margin-left: 0; }
  .admin-content { padding: 16px; }

  /* Admin topbar */
  .admin-topbar { padding: 0 16px; gap: 12px; height: 60px; }
  .admin-topbar-title { font-size: 16px; }
  .admin-topbar-sub   { display: none; }

  /* Public header */
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Layout grids */
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Hero meta items wrap */
  .hero-meta { flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 24px; }

  /* Process steps */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Admin panels row → stack */
  .admin-panels-2 { grid-template-columns: 1fr; }
}

/* ── 500px: small phone ── */
@media (max-width: 500px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .admin-topbar { height: auto; min-height: 56px; padding: 10px 14px; flex-wrap: wrap; }
  .kpi-card { padding: 16px; gap: 12px; }
  .kpi-value { font-size: 22px; }
  .hero-content { padding: 80px 0 48px; }
  .section { padding: 48px 0; }
  .admin-shortcuts { gap: 10px; }
  .admin-shortcuts a { padding: 16px; }
}

/* ── Mobile nav (public header) ── */
.mobile-nav {
  display: none;
  background: rgba(5,12,26,.98);
  padding: 20px 24px 28px;
  position: absolute;
  top: 76px; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }

/* ── Sidebar overlay (admin / dealer) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 109;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Admin / Dealer mobile hamburger toggle ── */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
.admin-sidebar-toggle:hover { background: var(--surface2); border-color: var(--gold); }
@media (max-width: 720px) {
  .admin-sidebar-toggle { display: flex; }
}

/* ============================================================
   COLOUR THEMES  (data-theme attribute on <html>)
   ============================================================ */

/* ── Navy & Gold (explicit, matches :root defaults above) ── */
[data-theme="navy-gold"] {
  --dark:       #050C1A;
  --navy:       #091525;
  --navy-soft:  #0E1E30;
  --navy-mid:   #172740;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim:   rgba(201,168,76,.18);
  --gold-border:rgba(201,168,76,.4);
  --white:      #FFFFFF;
  --text:       #0F1A28;
  --text-soft:  #3A4A60;
  --muted:      #6B7A99;
  --border:     #E1E9F5;
  --surface:    #F4F7FE;
  --surface2:   #EDF1FA;
}

/* ── Forest Green ── */
[data-theme="forest"] {
  /* dark bg sections → deep forest */
  --dark:       #061209;
  --navy:       #0A1F0F;
  --navy-soft:  #0F2614;
  --navy-mid:   #163320;
  /* accent → actual green, not gold */
  --gold:       #2D9B50;
  --gold-light: #50C878;
  --gold-dim:   rgba(45,155,80,.16);
  --gold-border:rgba(45,155,80,.38);
  /* light sections */
  --white:      #F3FBF5;
  --text:       #0D1E10;
  --text-soft:  #2E4A34;
  --muted:      #5C7862;
  --border:     #B8D8BE;
  --surface:    #E4F5E8;
  --surface2:   #D4EDDA;
}

/* ── Midnight Blue ── */
[data-theme="midnight"] {
  --dark:       #00020A;
  --navy:       #020B18;
  --navy-soft:  #051220;
  --navy-mid:   #091C2E;
  --gold:       #00BFFF;
  --gold-light: #40D4FF;
  --gold-dim:   rgba(0,191,255,.16);
  --gold-border:rgba(0,191,255,.38);
  --text:       #0A1220;
  --text-soft:  #2A3C56;
  --muted:      #567090;
  --border:     #D0DFEF;
  --surface:    #F0F6FF;
  --surface2:   #E4EEF8;
}

/* ── Terracotta ── */
[data-theme="terracotta"] {
  --dark:       #180904;
  --navy:       #271309;
  --navy-soft:  #351B0F;
  --navy-mid:   #452516;
  --gold:       #C96840;
  --gold-light: #E08A64;
  --gold-dim:   rgba(201,104,64,.18);
  --gold-border:rgba(201,104,64,.4);
  --text:       #1E0F08;
  --text-soft:  #4A2E20;
  --muted:      #7A5644;
  --border:     #EFD8CC;
  --surface:    #FAF1EC;
  --surface2:   #F4E4DA;
}

/* ── Slate & Copper ── */
[data-theme="slate"] {
  --dark:       #0C1117;
  --navy:       #141D26;
  --navy-soft:  #1B2636;
  --navy-mid:   #243042;
  --gold:       #B07D52;
  --gold-light: #CC9B70;
  --gold-dim:   rgba(176,125,82,.18);
  --gold-border:rgba(176,125,82,.4);
  --text:       #121C26;
  --text-soft:  #364456;
  --muted:      #667080;
  --border:     #D8E2EE;
  --surface:    #F2F6FC;
  --surface2:   #E8EEF8;
}

/* ── RTL (Arabic) global tweaks ── */
html[dir="rtl"] body { font-size: 15px; }
html[dir="rtl"] .section-eyebrow { flex-direction: row-reverse; }
html[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
html[dir="rtl"] .footer-col a { text-align: right; }
html[dir="rtl"] .footer-brand p { text-align: right; }

/* ── Language / Theme switcher UI ── */
.lang-theme-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.switcher-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}
.switcher-btn:hover { border-color: var(--gold); color: var(--gold); }
.switcher-btn .arrow { font-size: 9px; opacity: .7; }

.switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  min-width: 160px;
  padding: 8px;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  display: none;
}
.switcher-dropdown.open { display: block; }
.switcher-dropdown a,
.switcher-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.switcher-dropdown a:hover,
.switcher-dropdown button:hover { background: rgba(255,255,255,.07); color: var(--gold); }
.switcher-dropdown a.active,
.switcher-dropdown button.active { color: var(--gold); font-weight: 600; }

.switcher-wrap { position: relative; }

.theme-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: inline-block;
  flex-shrink: 0;
}
.theme-dot.navy      { background: #C9A84C; }
.theme-dot.forest    { background: #2D9B50; }
.theme-dot.midnight  { background: #00BFFF; }
.theme-dot.terracotta{ background: #C96840; }
.theme-dot.slate     { background: #B07D52; }

.lang-flag { font-size: 15px; line-height: 1; }
