/* =========================================================================
   ASA BANGKOK LIMITED — Modern site stylesheet
   Rebuilt static design system. Responsive, centered, accessible.
   ========================================================================= */

:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --orange: #f57c00;
  --orange-light: #fbeedd;
  --ink: #263238;
  --muted: #60757f;
  --line: #e2e8e3;
  --surface: #ffffff;
  --bg: #f4f7f4;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(27, 94, 32, 0.08);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 20px; }

.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: .3px; color:#fff; text-decoration: none; line-height:1.15;}
.brand span { color: #ffd180; font-weight: 600; display:block; font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase;}
.brand img { height: 34px; width:auto; margin-right:10px; vertical-align:middle;}

.site-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.site-nav a {
  color: #e8fbe8; text-decoration: none; font-size: .86rem; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; transition: background .18s, color .18s;
}
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Subnav (category links) ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.subnav a { color: var(--green); text-decoration:none; font-size:.84rem; font-weight:600; border:1px solid var(--line); padding:6px 12px; border-radius:999px; transition: background .18s; }
.subnav a:hover { background: var(--green-light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size:.84rem; color:var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color:var(--green); text-decoration:none; font-weight:600;}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb span.sep{color:#b9c4bb;margin:0 6px;}

/* ---------- Typography ---------- */
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 12px 0 6px; color: var(--green-dark); }
h2 { font-size: 1.4rem; margin: 26px 0 12px; color: var(--green-dark); }
h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--green); }
h1 small { display:block; font-size: 1rem; font-weight:500; color: var(--muted); margin-top:6px;}
p { margin: 0 0 14px; }

a { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green) 55%, #43a047 100%);
  color: #fff; padding: 52px 0 64px; text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); }
.hero p { color: #eaf7ea; font-size: 1.12rem; max-width: 720px; margin: 12px auto 22px; }
.hero .since { display:inline-block; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); color:#fff; padding:5px 16px; border-radius:999px; font-weight:700; font-size:.85rem; letter-spacing:1px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; margin: 22px 0; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; transition: transform .18s;
}
.card:hover { transform: translateY(-3px); }
.card .icon { font-size: 1.9rem; margin-bottom: 8px; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: .94rem; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ---------- Feature strip ---------- */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.features .grid { margin: 0; }
.feature-item { text-align: center; padding: 8px; }
.feature-item .n { font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.feature-item .l { font-size: .88rem; color: var(--muted); }
.feature-item .i { font-size: 1.5rem; }

/* ---------- Product tables ---------- */
.prod-table { width:100%; border-collapse: collapse; margin: 14px 0 28px; background:#fff; border-radius:10px; overflow:hidden; box-shadow: var(--shadow); }
.prod-table caption { text-align: left; font-size:1.15rem; font-weight:700; color: var(--green-dark); padding: 14px 16px; background: var(--green-light); border-bottom: 2px solid var(--green); }
.prod-table th { background: var(--green); color:#fff; text-align:left; padding:11px 14px; font-size:.9rem; }
.prod-table td { padding: 11px 14px; border-top: 1px solid var(--line); font-size:.94rem; vertical-align: top; }
.prod-table tbody tr:nth-child(even) { background: #f8fbf8; }
.prod-table td.prod { font-weight:700; }

.prod-intro { color: var(--muted); font-size: 1rem; max-width: 760px; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section.tint { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 6px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--muted); }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border:1px solid var(--line); border-left:5px solid var(--green); border-radius: 10px; padding: 22px; margin: 22px 0; }
.panel.orange { border-left-color: var(--orange); background: #fffbf5; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin: 8px 0; }

/* ---------- Contact / footer ---------- */
.contact-grid { display:grid; gap: 18px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.contact-block { background: var(--surface); border:1px solid var(--line); border-radius:10px; padding: 18px; }
.contact-block h3 { margin-top:0; }
.contact-block a { font-weight:600; text-decoration:none; }
.contact-block a:hover{text-decoration:underline;}

.site-footer { background: var(--green-dark); color:#e8fbe8; margin-top: 40px; padding: 34px 0 24px; }
.site-footer .container { display:grid; gap:26px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.site-footer h4 { color: #ffd180; margin: 0 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: #e8fbe8; text-decoration:none; display:block; padding:3px 0; font-size:.92rem; }
.site-footer a:hover { color:#fff; text-decoration:underline; }
.site-footer .copy { grid-column: 1 / -1; border-top:1px solid rgba(255,255,255,.18); padding-top:16px; margin-top:8px; font-size:.83rem; color:#cfe8d0; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; margin: 30px 0; }
.cta h3 { color: #fff; margin: 0 0 8px; }
.cta a.btn { display:inline-block; background:#fff; color:var(--orange); font-weight:800; padding:11px 22px; border-radius:999px; text-decoration:none; margin-top:6px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border:1px solid var(--line); border-radius:10px; padding:16px 18px; margin:10px 0; }
.faq summary { font-weight:700; color: var(--green-dark); cursor:pointer; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Back / misc ---------- */
.btn { display:inline-block; background: var(--green); color:#fff; padding:11px 20px; border-radius:8px; text-decoration:none; font-weight:700; }
.btn:hover{ background: var(--green-dark); }

main { min-height: 60vh; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .grid { gap: 14px; }
  .prod-table { display: block; overflow-x: auto; }
  .hero { padding: 38px 0 48px; }
}
