/* ============================================
   TypeC Charger — GaN Charger Website Styles
   Reference: DG Wall Charger Catalog Design
   ============================================ */

:root {
  --primary: #0EA5E9;      /* sky blue — matching catalog's light blue info boxes */
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --primary-mid: #7DD3FC;
  --accent: #6366F1;       /* indigo */
  --dark: #0F172A;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --green-accent: #10B981;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.11);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w: 1200px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--gray-500); max-width: 620px; margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,165,233,.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.logo-brand { display: block; font-size: 17px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.logo-tagline { display: block; font-size: 11px; color: var(--gray-400); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { text-decoration: none; color: var(--gray-600); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--primary); }
.nav-btn { padding: 8px 20px; border-radius: var(--radius-sm); background: var(--primary); color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.nav-btn:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 20px 24px; gap: 16px; align-items: flex-start; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- HERO ---- */
.hero {
  position: relative; padding: 90px 0 110px; overflow: hidden;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 40%, #F0FDF4 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(14,165,233,.10) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(16,185,129,.06) 0%, transparent 50%);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-dark); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 24px; }
.hero-title-accent { color: var(--primary); }
.hero-desc { font-size: 20px; color: var(--gray-600); max-width: 580px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--dark); }
.stat span { font-size: 13px; color: var(--gray-500); }

/* ---- BRANDS BAR ---- */
.brands-bar { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 16px 0; }
.brands-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.brands-label { font-size: 12px; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.brands-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.brands-list span { font-size: 13px; color: var(--gray-600); font-weight: 500; }

/* ---- SERIES TABS ---- */
.series-nav { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 0; position: sticky; top: 68px; z-index: 90; }
.series-tabs { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.series-tabs::-webkit-scrollbar { display: none; }
.series-tab {
  flex-shrink: 0; padding: 16px 28px; font-size: 14px; font-weight: 600; color: var(--gray-500);
  text-decoration: none; border-bottom: 3px solid transparent; transition: var(--transition); white-space: nowrap;
}
.series-tab:hover { color: var(--primary); }
.series-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- SERIES SECTION ---- */
.series-section { padding: 0; }
.series-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 64px 0;
  color: var(--white);
}
.series-header-alt { background: linear-gradient(135deg, #0C4A6E 0%, #0F766E 100%); }
.series-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.series-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary-mid); margin-bottom: 12px;
}
.series-badge-new { color: #6EE7B7; }
.series-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 12px; color: var(--white); }
.series-sub { font-size: 16px; color: var(--gray-400); margin-bottom: 12px; }
.series-desc { font-size: 15px; color: var(--gray-400); max-width: 680px; line-height: 1.7; }

/* ---- PRODUCT ROW ---- */
.product-row {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
  padding: 56px 0; border-bottom: 1px solid var(--gray-100);
  animation: fadeInUp .5s ease forwards;
}
.product-row:last-child { border-bottom: none; }
.product-row-rev { direction: rtl; }
.product-row-rev > * { direction: ltr; }
.product-row-info { }
.product-power-lg { font-size: 64px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.product-name-lg { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.product-desc-lg { font-size: 14.5px; color: var(--gray-500); line-height: 1.8; margin-bottom: 20px; }
.product-models { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chip {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 50px;
  border: 1.5px solid var(--gray-200); color: var(--gray-700);
}
.chip-white { background: var(--white); border-color: var(--gray-300); }
.chip-black { background: #1F2937; color: #F9FAFB; border-color: #1F2937; }
.chip-grey { background: #374151; color: #F9FAFB; border-color: #374151; }

/* ---- SPEC CARDS ---- */
.product-row-specs { display: flex; flex-direction: column; gap: 16px; }
.spec-card {
  background: var(--primary-light); border-radius: var(--radius-md); padding: 20px 24px;
  border: 1.5px solid var(--primary-mid); transition: var(--transition);
}
.spec-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.spec-card-wide { }
.spec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.spec-model { font-size: 13px; font-weight: 700; color: var(--dark); font-family: monospace; }
.spec-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0,0,0,.1); flex-shrink: 0; }
.white-dot { background: #F9FAFB; }
.black-dot { background: #1F2937; }
.grey-dot { background: #6B7280; }
.spec-output { margin-bottom: 10px; }
.spec-port { font-size: 12px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.spec-detail { font-size: 12px; color: var(--gray-700); line-height: 1.7; font-family: monospace; }
.spec-line { margin-bottom: 4px; }
.spec-watt { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 8px; }
.spec-input { font-size: 11px; color: var(--gray-500); margin-top: 6px; font-family: monospace; }
.spec-cert { font-size: 11px; color: var(--gray-500); font-weight: 500; letter-spacing: .3px; margin-top: 6px; }
.spec-plugs { font-size: 11px; color: var(--gray-500); font-weight: 500; margin-top: 4px; }
.spec-dims { font-size: 11px; color: var(--gray-500); font-family: monospace; margin-top: 4px; }

/* ---- PRODUCT IMAGE ---- */
.product-img-wrap { display: flex; align-items: center; justify-content: center; }
.product-img-wrap img { max-width: 100%; max-height: 280px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); object-fit: contain; }

@media (max-width: 900px) {
  .product-row, .product-row-rev { grid-template-columns: 1fr; direction: ltr; gap: 24px; padding: 40px 0; }
  .product-row-specs { }
  .product-img-wrap { display: none; }
}

/* ---- SOLUTIONS ---- */
.solutions { background: var(--gray-50); padding: 96px 0; border-top: 1px solid var(--gray-100); }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.solution-card { background: var(--white); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: var(--transition); }
.solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solution-icon { font-size: 40px; margin-bottom: 16px; }
.solution-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.solution-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ---- OEM ---- */
.oem-section { padding: 96px 0; }
.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.oem-eyebrow, .about-eyebrow, .contact-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 12px; }
.oem-title, .about-title, .contact-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.oem-desc, .about-text { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.oem-list { list-style: none; margin-bottom: 32px; }
.oem-list li { font-size: 14px; color: var(--gray-700); padding: 9px 0; border-bottom: 1px solid var(--gray-100); display: flex; align-items: flex-start; gap: 10px; }
.oem-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.oem-list li strong { color: var(--dark); }
.oem-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--gray-100); }
.oem-card-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.oem-steps { display: flex; flex-direction: column; gap: 20px; }
.oem-step { display: flex; gap: 16px; align-items: flex-start; }
.oem-step-num { width: 36px; height: 36px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.oem-step-info strong { font-size: 14px; color: var(--dark); display: block; margin-bottom: 2px; }
.oem-step-info p { font-size: 13px; color: var(--gray-500); }

@media (max-width: 768px) { .oem-grid { grid-template-columns: 1fr; } }

/* ---- ABOUT ---- */
.about { background: var(--gray-50); padding: 96px 0; border-top: 1px solid var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-placeholder { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-100); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.about-img-placeholder img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-placeholder p { font-size: 14px; color: var(--gray-400); text-align: center; line-height: 1.5; padding: 0 16px 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.a-stat { background: var(--white); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--gray-100); }
.a-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.a-stat span { font-size: 12px; color: var(--gray-500); }

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ---- CONTACT ---- */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-sub { font-size: 15px; color: var(--gray-500); margin-bottom: 32px; line-height: 1.7; }
.contact-channels { display: flex; flex-direction: column; gap: 20px; }
.contact-channel { display: flex; gap: 16px; align-items: flex-start; }
.contact-channel-icon { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-channel strong { display: block; font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 2px; }
.contact-channel a, .contact-channel span { font-size: 15px; color: var(--dark); text-decoration: none; font-weight: 500; }
.contact-channel a:hover { color: var(--primary); }

/* ---- FORM ---- */
.contact-form { background: var(--gray-50); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-100); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); color: var(--dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select[multiple] { min-height: 180px; }
.form-group optgroup { font-weight: 700; color: var(--dark); font-size: 13px; }
.form-group option { padding: 4px 8px; }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: var(--gray-400); padding: 64px 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: var(--gray-500); text-decoration: none; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 24px; max-width: var(--max-w); margin: 40px auto 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: var(--primary-mid); text-decoration: none; }

@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { grid-template-columns: repeat(2, 1fr); } }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.product-row { animation: fadeInUp .5s ease forwards; }
.product-row:nth-child(2) { animation-delay: .1s; }
.product-row:nth-child(3) { animation-delay: .2s; }
.product-row:nth-child(4) { animation-delay: .3s; }
.product-row:nth-child(5) { animation-delay: .4s; }
.product-row:nth-child(6) { animation-delay: .5s; }
.product-row:nth-child(7) { animation-delay: .6s; }

/* ---- WA FLOAT ---- */
.wa-float { transition: transform .2s; }
.wa-float:hover { transform: scale(1.1) !important; }
/* ---- ABOUT ADDRESSES ---- */
.about-addresses { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.about-address { font-size: 12px; color: var(--gray-600); line-height: 1.5; padding: 10px 14px; background: var(--primary-light); border-radius: var(--radius-sm); border-left: 3px solid var(--primary); }

/* ---- HERO IMAGE ---- */
.hero-img { margin-bottom: 24px; text-align: center; }
.hero-img img { max-width: 100%; max-height: 260px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: contain; }

/* ---- INSIGHTS / NEWS ---- */
.insights { padding: 96px 0; }
.insights-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.insights-header-left { }
.insights-badge { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.insights-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--dark); line-height: 1.2; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--gray-100); overflow: hidden; transition: var(--transition); }
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-mid); }
.insight-img { height: 160px; overflow: hidden; }
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.insight-card:hover .insight-img img { transform: scale(1.03); }
.insight-body { padding: 20px; }
.insight-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; }
.tag-tech { background: #EDE9FE; color: #6D28D9; }
.tag-market { background: #DCFCE7; color: #15803D; }
.tag-product { background: var(--primary-light); color: var(--primary-dark); }
.tag-guide { background: #FEF3C7; color: #92400E; }
.insight-title-text { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 8px; }
.insight-excerpt { font-size: 13.5px; color: var(--gray-500); line-height: 1.65; margin-bottom: 14px; }
.insight-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-400); }
.insight-date { }
.insight-read { color: var(--primary); font-weight: 600; text-decoration: none; }
.insight-read:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insights-header { flex-direction: column; align-items: flex-start; }
}
