/* ============================================================
   Gku Dash Cams — Design System
   Colors extracted from gkutech.com brand reference
   ============================================================ */

/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --accent: #EB990A;
  --accent-hover: #D08900;
  --accent-light: #FBCD0A;
  --accent-secondary: #EE2761;
  --dark: #131313;
  --dark-blue: #161880;
  --light: #FFFFFF;
  --light-alt: #F7F8FC;
  --light-gray: #F5F5F5;
  --text-dark: #121212;
  --text-body: #333333;
  --text-muted: #7B7B7B;
  --border: #E3E3E3;
  --font: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light-alt); }
.section-dark { background: var(--dark); color: var(--light); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--light); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.375rem; color: var(--text-dark); }
.header-logo img { height: 32px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { font-weight: 500; font-size: 0.9375rem; color: var(--text-body); transition: color var(--transition); }
.header-nav a:hover, .header-nav a.active { color: var(--accent); }
.header-cta { margin-left: 16px; }

/* --- Mobile Menu --- */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; z-index: 101; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: var(--transition); border-radius: 1px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--light); z-index: 99; overflow-y: auto; padding: 24px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--text-dark); }
.mobile-nav a:hover { color: var(--accent); }
body.menu-open { overflow: hidden; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius); transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }

/* --- Hero --- */
.hero { background: var(--dark); color: var(--light); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(235,153,10,0.12) 0%, transparent 60%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; color: var(--light); margin-bottom: 16px; letter-spacing: -0.03em; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Product Cards --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.product-card { background: var(--light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-card-image { position: relative; padding-top: 56.25%; background: var(--light-alt); overflow: hidden; }
.product-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-card-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.product-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 1.125rem; margin-bottom: 4px; }
.product-card-body .product-card-subtitle { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.product-card-body .product-card-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.product-card-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-card-features span { font-size: 0.75rem; background: var(--light-alt); padding: 3px 10px; border-radius: 4px; color: var(--text-body); font-weight: 500; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card-price { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); }

/* --- Product Detail --- */
.product-hero { padding: 64px 0; }
.product-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery { position: sticky; top: 92px; }
.product-gallery img { width: 100%; border-radius: var(--radius); background: var(--light-alt); }
.product-info h1 { margin-bottom: 4px; }
.product-info .product-tagline { font-size: 1.125rem; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.product-info .product-price-lg { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.product-info .product-desc { font-size: 1.0625rem; color: var(--text-body); line-height: 1.7; margin-bottom: 24px; }
.product-highlights { margin-bottom: 28px; }
.product-highlights li { padding: 6px 0 6px 28px; position: relative; font-size: 0.9375rem; line-height: 1.5; }
.product-highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

/* --- Specs Table --- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 12px 16px; font-size: 0.9375rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text-dark); width: 40%; background: var(--light-alt); }

/* --- Compare Table --- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 0.8125rem; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--dark); color: #fff; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.compare-table th:first-child { text-align: left; min-width: 180px; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.compare-table tr:nth-child(even) td { background: var(--light-alt); }
.compare-table .check { color: #078508; font-weight: 700; }
.compare-table .dash { color: var(--text-muted); }

/* --- Why Gku --- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.why-card { text-align: center; padding: 32px 24px; }
.why-card-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: rgba(235,153,10,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* --- Accessories --- */
.accessory-group { margin-bottom: 40px; }
.accessory-group h3 { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.accessory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.accessory-card { display: flex; gap: 16px; padding: 20px; background: var(--light); border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.accessory-card-image { width: 72px; height: 72px; flex-shrink: 0; background: var(--light-alt); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.accessory-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.accessory-card-body { flex: 1; min-width: 0; }
.accessory-card-body h4 { font-size: 0.9375rem; margin-bottom: 2px; }
.accessory-card-body p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.accessory-card-price { font-weight: 700; color: var(--accent); font-size: 1rem; margin-top: 4px; }

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { color: var(--light); font-size: 1.25rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 { color: var(--light); font-size: 0.9375rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.875rem; margin-bottom: 8px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 16px 0; font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-dark); }

/* --- Page Header --- */
.page-header { background: var(--dark); color: var(--light); padding: 64px 0; text-align: center; }
.page-header h1 { color: var(--light); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.125rem; max-width: 560px; margin: 0 auto; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 20px; color: var(--text-muted); line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-hero .container { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: block; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.5rem; }
  .product-card-body { padding: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .product-cta { flex-direction: column; }
  .product-cta .btn { width: 100%; }
}
