/* ================================================
   SMARTLAKE MOTORS — header.css
   Global reset, variables, typography, base, header
   ================================================ */

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* { -webkit-tap-highlight-color: transparent; }

:root {
  /* === Smartlake Brand Colors === */
  --sl-gold:          #C9A84C;
  --sl-gold-dark:     #A8873A;
  --sl-gold-light:    #E2C068;
  --sl-gold-pale:     rgba(201, 168, 76, 0.12);
  --sl-blue:          #4A90C4;
  --sl-blue-dark:     #3373A6;
  --sl-blue-light:    #6AABD8;
  --sl-black:         #0D0D0D;
  --sl-dark:          #1A1A1A;
  --sl-dark-2:        #242424;
  --sl-gray:          #5A5A5A;
  --sl-gray-light:    #8A8A8A;

  /* Neutral */
  --white:            #FFFFFF;
  --gray-50:          #FAFAFA;
  --gray-100:         #F4F4F4;
  --gray-200:         #E8E8E8;
  --gray-300:         #D0D0D0;
  --gray-800:         #2E2E2E;
  --gray-900:         #1C1C1C;

  /* Typography */
  --font-primary:   'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding:    clamp(64px, 10vw, 100px);
  --container-padding:  clamp(20px, 5vw, 40px);

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 36px rgba(0,0,0,0.16);
  --shadow-gold: 0 8px 24px rgba(201,168,76,0.25);

  /* Transitions */
  --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sl-gray);
  background: var(--white);
  overflow-x: hidden;
  min-width: 320px;
}

::selection {
  background: var(--sl-gold);
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sl-black);
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0; line-height: 1.75; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sl-gold);
  color: var(--sl-black);
  border-color: var(--sl-gold);
}
.btn-primary:hover {
  background: var(--sl-gold-dark);
  border-color: var(--sl-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--sl-black);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--sl-black);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  background: var(--sl-gold);
  color: var(--sl-black);
  border-color: var(--sl-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* CTA button in header */
.headercta-btn {
  background: var(--sl-gold);
  color: var(--sl-black);
  padding: 11px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.headercta-btn:hover {
  background: var(--sl-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  height: 6em;
  width: 100vw;
  min-width: 320px;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 6em;
  overflow: hidden;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.Smartlake {
  width: 110px;
}

.isuzu { width: 88px; }

.isuzu-migori {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sl-gray);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: block;
  text-align: left;
}

.logo-divider {
  width: 1.5px;
  height: 3.5em;
  background: var(--sl-gold);
  flex-shrink: 0;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--sl-gray);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-base);
}


.nav-link:hover,
.nav-link.active {
  color: var(--sl-gold-dark);
}



/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--sl-black);
  transition: var(--transition-base);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE HEADER */
@media (max-width: 1100px) {
  .nav {
    position: fixed;
    top: 5em;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: var(--shadow-md);
  }

  .header { height: 5em; }
  .header-content { height: 5em; }

  .nav.active { max-height: 600px; }

  .nav-link {
    width: 100%;
    padding: 18px var(--container-padding);
    border-bottom: 1px solid var(--gray-200);
    font-size: 1rem;
  }


  .mobile-toggle { display: flex; }
  .headercta-btn { display: none; }
}

@media (max-width: 768px) {
  .Smartlake { width: 90px; }
  .isuzu { width: 72px; }
}