/* ============================================
   C-LARS Website Styles
   Colors: Gold accent (#C8A415), Blue (#283644), White
   Gold is accent-only — thin lines, small labels, hover states
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #C8A415;
  --gold-light: #D4B82A;
  --navy: #283644;
  --navy-light: #314150;
  --dark: #1F2D3A;
  --dark-surface: #263545;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --text-primary: #FFFFFF;
  --text-secondary: #B0BEC5;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--navy);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

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

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.section-label {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--dark);
  padding: 6px 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.top-bar a {
  color: var(--text-secondary);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--white);
}

/* --- Header / Nav --- */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-links a.nav-cta {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.nav-links a.nav-cta:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
}

.hero-overlay {
  display: none;
}

/* --- Showcase Section (gold bar + gradient fade built in) --- */
.showcase-section {
  border-top: 2px solid var(--gold);
  background: linear-gradient(to bottom, var(--dark) 0%, var(--navy) 30%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .section-label {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--white);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Section Spacing --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--dark);
}

.section-navy {
  background: var(--navy);
}

.section-header {
  margin-bottom: 60px;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.0625rem;
}

/* --- Product Showcase (tabbed) --- */
.showcase {
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.showcase-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.showcase-tab:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.showcase-tab.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.showcase-stage {
  position: relative;
  min-height: 500px;
}

.showcase-item {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  animation: showcaseFadeIn 0.35s ease;
}

.showcase-item.active {
  display: grid;
}

@keyframes showcaseFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-image img {
  max-height: 450px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.showcase-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.showcase-info p {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .showcase-item {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .showcase-image img {
    max-height: 300px;
  }

  .showcase-stage {
    min-height: auto;
  }

  .showcase-info .btn {
    margin: 0 auto;
  }
}

/* --- Product / Service Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 21, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}

.card-body .card-link:hover {
  gap: 10px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--dark);
  padding: 40px 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
}

.stat p {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --- Credentials / Badges --- */
.badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.badges img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.badges img:hover {
  opacity: 1;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  padding: 80px 0 60px;
  border-bottom: 2px solid var(--gold);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
}

/* --- Contact Form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col.reverse {
    direction: ltr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 50vh;
  }

  .section {
    padding: 60px 0;
  }

  .page-header {
    padding: 60px 0 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-bar .container {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
