/* ============================================================
   Sunnywell Corporation — Corporate Website (Bright theme)
   Visual system: Bright Blue #0B84DE + Teal #00C2A8 + Sun #FFB020
   Brand colors: Powerlink #08A6F6 / Semicon #F5B301 / Luvitex #00C2A8
                 Flamefree #FF5A3C / Shieldpro #8B5CF6 / Catalyn #EC4899
   ============================================================ */
:root {
  --blue: #0B84DE;
  --blue-bright: #2FB1FF;
  --blue-deep: #0A5FA8;
  --teal: #00C2A8;
  --sun: #FFB020;
  --ink: #0F2A44;
  --body: #4A5C6E;
  --muted: #7E92A5;
  --line: #DCE9F5;
  --bg-soft: #F2F8FE;
  --bg-softer: #F7FBFF;
  --white: #FFFFFF;
  --c-powerlink: #08A6F6;
  --c-semicon: #F5B301;
  --c-luvitex: #00C2A8;
  --c-flamefree: #FF5A3C;
  --c-shieldpro: #8B5CF6;
  --c-catalyn: #EC4899;
  --shadow: 0 12px 34px rgba(11, 132, 222, 0.14);
  --radius: 14px;
  --grad-main: linear-gradient(120deg, #0B84DE 0%, #12A6E8 55%, #00C2A8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================= Header (light) ================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 42, 68, 0.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 50px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--body); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  padding: 9px 12px; border-radius: 8px; transition: all .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--bg-soft); }
.main-nav a.active { color: var(--blue); background: #E3F2FE; }

.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  display: flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff;
}
.lang-switch button {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; letter-spacing: .5px; transition: all .2s;
}
.lang-switch button.on { background: var(--blue); color: #fff; }
.menu-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line);
  border-radius: 8px; color: var(--ink); font-size: 20px; padding: 6px 12px; cursor: pointer;
}

/* ================= Hero (bright) ================= */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../assets/nurdles.webp') center / cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 42%, rgba(242,248,254,.42) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 130px; max-width: 740px; }
.hero-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-deep); background: #E3F2FE;
  border: 1.5px solid #BBDDF8; padding: 8px 18px; border-radius: 30px; margin-bottom: 26px;
}
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.14; letter-spacing: -1px; color: var(--ink); }
.hero h1 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .hero-sub { font-size: 19px; color: var(--body); margin-top: 22px; max-width: 640px; line-height: 1.75; }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  font-size: 15.5px; font-weight: 700; transition: all .25s; cursor: pointer;
}
.btn-main { background: var(--grad-main); color: #fff; box-shadow: 0 8px 22px rgba(11,132,222,.30); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,132,222,.38); }
.btn-line { border: 2px solid var(--blue); color: var(--blue-deep); background: rgba(255,255,255,.75); }
.btn-line:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: #4A3200; }
.btn-sun:hover { background: #FFC14A; transform: translateY(-2px); }

/* ================= Stats band ================= */
.stats-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 36px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .v {
  font-size: 34px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .v span { font-size: 16px; font-weight: 600; margin-left: 3px; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .5px; }

/* ================= Sections ================= */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.section-head .kick {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head h2 { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1.25; }
.section-head p { margin-top: 16px; font-size: 16.5px; color: var(--muted); }
.section-head.left { text-align: left; margin-left: 0; }

/* ================= Brand matrix ================= */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 30px; overflow: hidden;
  transition: all .3s; border-top: 5px solid var(--bc, var(--blue));
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-card .bc-icon {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bc) 12%, white); margin-bottom: 20px;
}
.brand-card .bc-icon svg { width: 28px; height: 28px; stroke: var(--bc); }
.brand-card h3 { font-size: 22px; font-weight: 800; color: var(--ink); }
.brand-card h3 sup { font-size: 12px; font-weight: 600; color: var(--bc); }
.brand-card .bc-cn { font-size: 14px; font-weight: 700; color: var(--bc); margin-top: 4px; letter-spacing: 1px; }
.brand-card p { font-size: 14.5px; color: var(--body); margin-top: 14px; line-height: 1.75; }
.brand-card .bc-link { display: inline-block; margin-top: 20px; font-size: 13.5px; font-weight: 700; color: var(--bc); }
.brand-card .bc-link:hover { text-decoration: underline; }

/* ================= Solution section ================= */
.solution-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.solution-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.solution-text h2 { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1.3; }
.solution-text > p { margin-top: 18px; font-size: 16px; color: var(--body); }
.layer-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.layer-item {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--lc, var(--blue));
  border-radius: 10px; padding: 16px 20px; transition: all .25s;
}
.layer-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.layer-item .ln {
  flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff;
  background: var(--lc, var(--blue)); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.layer-item .lt { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.layer-item .ld { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.65; }

/* ================= Advantage ================= */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: all .3s;
}
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.adv-card .an {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.adv-card h4 { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 12px; }
.adv-card p { font-size: 14px; color: var(--body); margin-top: 10px; line-height: 1.75; }

/* ================= Certification strip (bright) ================= */
.cert-strip { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.cert-pill {
  display: flex; align-items: center; gap: 12px; padding: 16px 26px;
  border: 1px solid #CBE4FA; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 16px rgba(11,132,222,.07);
}
.cert-pill .cp-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #8A5B00;
  background: #FFE9B8; padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}
.cert-pill .cp-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.cert-pill .cp-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ================= CTA band ================= */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 90px 24px;
  background: var(--grad-main);
}
.cta-band::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25); right: -220px; top: -260px;
}
.cta-band::after {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18); left: -160px; bottom: -200px;
}
.cta-band h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; position: relative; z-index: 2; }
.cta-band p { margin-top: 14px; font-size: 16.5px; color: rgba(255,255,255,.85); position: relative; z-index: 2; }
.cta-band .btn { margin-top: 34px; position: relative; z-index: 2; }

/* ================= Footer (light) ================= */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--body); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
.footer-grid h5 { color: var(--ink); font-size: 13.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid .f-brand img { height: 54px; margin-bottom: 18px; }
.footer-grid p, .footer-grid li { font-size: 13.5px; line-height: 2; }
.footer-grid a:hover { color: var(--blue); }

/* ---------- Contact links (email / phone / WhatsApp) ---------- */
a.c-link { color: var(--blue); font-weight: 600; }
a.c-link:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom .grad { font-weight: 700; color: var(--blue); }

/* ================= Page hero (inner pages) ================= */
.page-hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.page-hero .hero-bg { opacity: .5; }
.page-hero .hero-bg::after {
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 50%, rgba(242,248,254,.7) 100%);
}
.page-hero-inner { position: relative; z-index: 2; padding: 78px 0 72px; }
.page-hero .kick {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.page-hero p { margin-top: 14px; font-size: 17px; color: var(--body); max-width: 760px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ================= Products page ================= */
.brand-section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.brand-section:nth-of-type(odd) { background: #fff; }
.brand-section:nth-of-type(even) { background: var(--bg-softer); }
.bs-head { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; flex-wrap: wrap; }
.bs-icon {
  width: 62px; height: 62px; border-radius: 14px; flex: none;
  background: color-mix(in srgb, var(--bc) 12%, white);
  display: flex; align-items: center; justify-content: center;
}
.bs-icon svg { width: 32px; height: 32px; stroke: var(--bc); }
.bs-title h2 { font-size: 30px; font-weight: 800; color: var(--ink); }
.bs-title h2 sup { font-size: 14px; color: var(--bc); font-weight: 600; }
.bs-title .bs-cn { font-size: 15px; font-weight: 700; color: var(--bc); margin-top: 4px; letter-spacing: 1px; }
.bs-tagline { font-size: 16px; color: var(--body); max-width: 900px; margin-bottom: 30px; }
.grade-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(11,132,222,.07); }
table.grade-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grade-table thead th {
  background: var(--bc, var(--blue)); color: #fff; text-align: left;
  padding: 14px 18px; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800;
}
.grade-table tbody td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.grade-table tbody tr:hover { background: color-mix(in srgb, var(--bc) 5%, white); }
.grade-table .g-name { font-weight: 800; color: var(--ink); white-space: nowrap; }
.grade-table .g-name .g-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--bc);
  border: 1px solid var(--bc); border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px;
  text-transform: uppercase;
}
.grade-table .g-app { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grade-table .g-spec { font-size: 13.5px; color: var(--body); line-height: 1.8; }
.grade-table .g-spec b { color: var(--ink); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.feat-chip {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--bc);
  border-radius: 30px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.feat-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bc); flex: none; }

/* ================= Applications page ================= */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card .ac-img { height: 200px; overflow: hidden; background: var(--bg-soft); }
.app-card .ac-img img { width: 100%; height: 100%; object-fit: cover; }
.app-card .ac-body { padding: 26px; }
.app-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.app-card .ac-en { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.app-card p { font-size: 14px; color: var(--body); margin-top: 12px; line-height: 1.75; }
.app-card .ac-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-card .ac-tag { font-size: 12px; font-weight: 600; color: var(--blue-deep); background: var(--bg-soft); border: 1px solid #CBE4FA; border-radius: 6px; padding: 4px 10px; }

/* ================= Capabilities page ================= */
.lines-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.line-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-left: 5px solid var(--blue); }
.line-card .lc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line-card h4 { font-size: 18px; font-weight: 800; color: var(--ink); }
.line-card .lc-cap { font-size: 22px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.line-card .lc-equip { font-size: 13.5px; color: var(--body); margin-top: 8px; }
.line-card .lc-role { font-size: 13px; color: var(--muted); margin-top: 6px; }

.qc-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.qc-step { position: relative; padding: 0 22px 0 0; }
.qc-step .qs-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad-main); color: #fff;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(11,132,222,.28);
}
.qc-step::after {
  content: ""; position: absolute; top: 22px; left: 54px; right: 24px; height: 2px;
  background: linear-gradient(90deg, #BBDDF8, transparent);
}
.qc-step:last-child::after { display: none; }
.qc-step h4 { font-size: 16px; font-weight: 800; color: var(--ink); }
.qc-step p { font-size: 13.5px; color: var(--body); margin-top: 8px; line-height: 1.7; }

.equip-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.equip-table thead th { background: var(--blue); color: #fff; text-align: left; padding: 13px 18px; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.equip-table tbody td { padding: 13px 18px; border-top: 1px solid var(--line); }
.equip-table tbody tr:nth-child(even) { background: var(--bg-softer); }
.equip-table .eq-count { font-weight: 800; color: var(--blue); white-space: nowrap; }

/* ================= About page ================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-grid .ag-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fact-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fact-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fact-table td:first-child { font-weight: 700; color: var(--ink); width: 38%; white-space: nowrap; }
.milestones { position: relative; padding-left: 30px; }
.milestones::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--teal)); }
.ms-item { position: relative; padding-bottom: 30px; }
.ms-item::before {
  content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue);
}
.ms-item .ms-year { font-size: 15px; font-weight: 800; color: var(--blue); }
.ms-item h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.ms-item p { font-size: 13.5px; color: var(--body); margin-top: 4px; }

/* ================= Contact page ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.contact-card h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.contact-card h4 .ico { color: var(--blue); font-size: 18px; }
.contact-card p { font-size: 14.5px; color: var(--body); line-height: 1.9; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: 0 4px 18px rgba(11,132,222,.07); }
.contact-form h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.contact-form .cf-sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg-softer); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-ok { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; background: #E6FAF5; border: 1px solid #9FE8D8; color: #067A5B; font-size: 14px; font-weight: 600; }

/* ================= Reveal animation ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .qc-flow { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .qc-step::after { display: none; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(15,42,68,.12);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 34px; }
  .hero-inner { padding: 70px 0 90px; }
  .section { padding: 62px 0; }
  .section-head h2 { font-size: 27px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .brand-grid, .adv-grid, .app-grid, .lines-grid { grid-template-columns: 1fr; }
  .grade-table-wrap { overflow-x: auto; }
  .page-hero h1 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .bs-row { grid-template-columns: 1fr; }
}

/* ---------- Gallery band (home) ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #EAF3FA;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item .gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 12px;
  background: linear-gradient(180deg, rgba(6,31,50,0) 0%, rgba(6,31,50,.82) 100%);
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
}

/* ---------- Brand section media row (products) ---------- */
.bs-row { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: center; margin-bottom: 32px; }
.bs-row .bs-tagline { margin-bottom: 0; }
.bs-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: #EAF3FA; }
.bs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About image stack ---------- */
.about-img-stack { display: grid; gap: 16px; align-content: start; }
.about-img-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; aspect-ratio: 3 / 2; object-fit: cover; }
