/* ==========================================================================
   IKOL COMPANY LIMITED - Shared Stylesheet
   Modern corporate industrial style. Bilingual EN / TH.
   ========================================================================== */

:root {
  --c-primary: #003a70;
  --c-primary-dark: #002a52;
  --c-primary-light: #1a5ea0;
  --c-accent: #f59e0b;
  --c-accent-dark: #d97706;
  --c-text: #1f2937;
  --c-muted: #6b7280;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f6fb;
  --c-bg-dark: #0b1d33;
  --c-border: #e5e7eb;
  --c-success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1200px;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-th: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="th"] body { font-family: var(--font-th); }

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3, h4 { font-weight: 700; color: var(--c-primary); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Language helpers — show only active language */
.lang-en, .lang-th { display: none; }
html[lang="en"] .lang-en { display: inline; }
html[lang="th"] .lang-th { display: inline; }
html[lang="en"] .lang-en.block, html[lang="th"] .lang-th.block { display: block; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 8px; }
.section-title .lead { color: var(--c-muted); max-width: 720px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--c-primary);
  cursor: pointer;
  transition: all .25s ease;
  letter-spacing: .2px;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-light:hover { background: var(--c-bg-alt); border-color: var(--c-bg-alt); color: var(--c-primary); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: .5px;
}
.brand-logo {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-logo img, img.brand-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-size: .7rem; font-weight: 500; color: var(--c-muted); letter-spacing: 1px; }

/* Footer brand inherits brand-logo size but flips text color */
.footer-brand .brand-text small { color: #9bb0c8; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--c-text);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-primary); border-bottom-color: var(--c-accent); }

.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--c-bg-alt);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--c-border);
}
.lang-switch button {
  border: 0; background: transparent;
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-muted);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .5px;
}
.lang-switch button.active { background: var(--c-primary); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--c-primary);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,42,82,.88) 0%, rgba(0,58,112,.78) 50%, rgba(11,29,51,.65) 100%),
              var(--hero-img, url('../assets/img/hero.jpg')) center/cover no-repeat;
}
.hero .container { position: relative; padding: 90px 24px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,158,11,.18);
  color: #fcd34d;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(245,158,11,.4);
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Compact hero for inner pages */
.hero-compact { min-height: 320px; }
.hero-compact .container { padding: 60px 24px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--c-primary); display: block; }
.stat-label { color: var(--c-muted); font-size: .9rem; font-weight: 500; }

/* ---------- Feature / card grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary-light); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card-icon.accent { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark)); }
.card h3 { color: var(--c-primary); margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .img-wrap {
  aspect-ratio: 4/3;
  background: var(--c-bg-alt);
  display: grid; place-items: center;
  padding: 16px;
}
.product-card .img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-card .body { padding: 20px 22px 24px; }
.product-card .badge {
  display: inline-block;
  background: rgba(0,58,112,.08);
  color: var(--c-primary);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-card p { color: var(--c-muted); font-size: .9rem; margin: 0; }

/* ---------- Two column / about ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.eyebrow {
  display: inline-block;
  color: var(--c-accent-dark);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Lists ---------- */
ul.feat-list { list-style: none; padding: 0; margin: 18px 0 0; }
ul.feat-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--c-text);
}
ul.feat-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info-card {
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  background-image: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
}
.contact-info-card h2 { color: #fff; }
.contact-info-card a { color: #fff; }
.contact-info-card .info-item {
  display: flex; gap: 16px; margin: 24px 0;
}
.contact-info-card .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.contact-info-card .info-item strong { display: block; font-size: .85rem; opacity: .8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

form.contact-form { background: #fff; padding: 8px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--c-text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0,58,112,.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; padding: 14px 16px; background: #ecfdf5; color: #065f46; border-radius: 8px; border: 1px solid #a7f3d0; margin-bottom: 16px; }
.form-success.visible { display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--c-bg-alt);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; background: var(--c-primary); color: #fff; }
.faq-item p { padding: 0 22px 20px; color: var(--c-muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #cfd9e6;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 8px 0; }
.site-footer a { color: #cfd9e6; font-size: .92rem; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer p { font-size: .92rem; color: #9bb0c8; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-weight: 800; }
.footer-brand .brand-logo { background: #fff; border-radius: 10px; padding: 4px; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  color: #8a9db5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- Page banner / breadcrumb area ---------- */
.page-banner {
  background: linear-gradient(120deg, rgba(0,42,82,.92), rgba(11,29,51,.82)),
              var(--banner-img, url('../assets/img/products_banner.jpg')) center/cover no-repeat;
  color: #fff;
  padding: 100px 0 70px;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 700px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs span.sep { margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 1px solid var(--c-border);
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--c-border); }
  .nav-links a:last-child { border-bottom: 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero .container { padding: 70px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
