/* BRO KOREA — site styles. Colours and fonts follow the brand guide (BRAND.md in the logo pack). */
:root {
  --navy: #1f2d44;      /* BRO Navy */
  --navy-2: #2c3e5c;
  --navy-deep: #172234;
  --ink: #1f2d44;
  --muted: #5a6475;
  --line: #dfe2e8;
  --bg-alt: #f4f5f7;    /* Light gray */
  --white: #fff;
  --accent: #cd2e3a;    /* Korea Red */
  --accent-dark: #a8232e;
  --accent-soft: #f4b6bb;
  --link: #0047a0;      /* Korea Blue: links only */
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 16px rgba(11, 37, 69, .06);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.hp { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; justify-content: center; }

/* icons */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i-lg { width: 32px; height: 32px; }
.i-xl { width: 56px; height: 56px; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { padding: .5em .9em; font-size: .9rem; }
.btn-lg { padding: .85em 1.4em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; pointer-events: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { height: 64px; width: auto; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 600; text-decoration: none; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); }
.lang-switch[lang="en"] { font-family: var(--font); }
.show-xs { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-in { min-height: 64px; }
  .brand img { height: 48px; }
  .menu-btn { display: block; }
  .header-actions { margin-inline-start: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
         box-shadow: var(--shadow); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .header-in { gap: 8px; }
  .header-actions { gap: 6px; }
  .wrap { padding: 0 14px; }
  .btn-sm { padding: .5em .7em; }
  .lang-switch { padding: 6px; font-size: .9rem; }
  .menu-btn { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
}

/* hero */
.hero {
  color: #fff;
  background: linear-gradient(120deg, rgba(31, 45, 68, .97), rgba(44, 62, 92, .9)), url("../../images/hero.jpg") center / cover no-repeat, var(--navy);
  padding: clamp(40px, 8vw, 88px) 0;
  overflow: hidden;   /* the logo's red lines fly in from beyond the edge */
}
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent-soft); margin-bottom: .8em; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.hero-p { font-size: 1.125rem; color: #d7e0ec; max-width: 38em; }
.trust { font-size: .875rem; color: #a9b8cc; margin: 0; }
/* animated logo panel (assets/js/logo-anim.js) */
.logo-panel { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 18px; display: grid; gap: 14px; }
.logo-anim { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }   /* never mirrored */
.logo-anim .korea-stroke { fill: none; stroke: #fff; stroke-width: 300; stroke-linecap: butt; stroke-linejoin: round; }
.logo-anim .wind-trail { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.logo-anim-pending .logo-anim .korea-stroke { stroke-dasharray: 9999; stroke-dashoffset: 9999; }
.logo-anim-pending .logo-anim .wind { opacity: 0; }
.logo-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.logo-panel-foot p { margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.logo-replay { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.logo-replay:hover { border-color: var(--navy); }

/* sections */
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section.alt { background: var(--bg-alt); }
.sec-h { margin-bottom: .4em; }
.sec-p { color: var(--muted); max-width: 46em; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-more:hover { text-decoration: underline; }
.page-head { background: var(--navy); color: #d7e0ec; padding: clamp(32px, 6vw, 56px) 0; }
.page-head h1 { color: #fff; }
.lead { font-size: 1.1rem; max-width: 46em; margin: 0; }
.page-head .lead { color: #d7e0ec; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.value { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.value .i { color: var(--navy); margin-bottom: 12px; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.cat-card:hover { box-shadow: var(--shadow); border-color: #bcc7d4; color: var(--ink); }
.cat-img { aspect-ratio: 4 / 3; background: #eef2f7; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { margin-bottom: .3em; }
.cat-body p { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: .8em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: .92rem; }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-body { padding: 12px; }
  .cat-body h3 { font-size: .98rem; }
  .cat-body p { display: none; }
  .more { font-size: .85rem; }
}

/* category detail */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; margin-bottom: 12px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #7f93ad; }
.crumbs a { color: #a9b8cc; }
.crumbs [aria-current] { color: #fff; }
.cat-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.cat-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; max-width: 560px; aspect-ratio: 4 / 3; background: #eef2f7; }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-list .i { color: var(--accent); margin-top: .25em; }
.check-list + .muted { margin-top: 1em; font-size: .92rem; }
.cta-box { position: sticky; top: 88px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); display: grid; gap: 12px; }
.cta-box h2 { font-size: 1.2rem; margin: 0; }
.dot-list { list-style: disc; padding-inline-start: 1.2em; color: var(--muted); margin-bottom: 8px; }
.dot-list li { margin: 4px 0; }
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a { display: block; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 500; }
.pill-links a:hover { border-color: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0; counter-reset: none; }
.steps li { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* brands */
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.brand-chips li, .brand-chips a { display: block; padding: 10px 16px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.brand-chips a:hover { border-color: var(--accent); }
.brand-chips li:has(a) { padding: 0; border: 0; background: none; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.brand-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); border-inline-start: 4px solid var(--navy); display: flex; flex-direction: column; }
.brand-card h3 { font-size: 1.25rem; margin-bottom: .2em; }
.brand-note { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .6em; }
.models { color: var(--muted); font-size: .92rem; flex: 1; }
.models span { font-weight: 600; color: var(--ink); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* band */
.band { background: var(--navy); border-top: 4px solid var(--accent); color: #d7e0ec; padding: clamp(36px, 6vw, 56px) 0; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { margin: 0; }
.band .btn-row { margin: 0; }

/* quote form */
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.quote-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; display: grid; gap: 14px; }
.quote-form legend { font-weight: 700; color: var(--navy); padding: 0 8px; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; /* 16px avoids iOS zoom */
  padding: 11px 12px; border: 1px solid #b9c4d1; border-radius: 8px; background: #fff; color: var(--ink);
}
.quote-form textarea { resize: vertical; min-height: 3em; }
#f-parts { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(205, 46, 58, .22); outline-offset: 0; }
.quote-form small { font-weight: 400; color: var(--muted); }
[dir="rtl"] .quote-form input[dir="ltr"] { text-align: right; }
.req { color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot p { margin: 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: #fdf0f1; border: 1px solid #f1bcc1; color: #8a1c25; }
.form-status.ok { background: #e7f6ec; border-color: #a7dbb7; color: #14532d; }
.quote-side { display: grid; gap: 20px; position: sticky; top: 88px; }
.side-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.side-box h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.side-box p { color: var(--muted); font-size: .95rem; }
.side-box .small { margin: 10px 0 0; }

/* about / contact */
.about-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; aspect-ratio: 8 / 5; background: #eef2f7; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: start; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 45%; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.contact-card:hover { border-color: var(--accent); color: var(--ink); }
.contact-card .i { color: var(--accent); margin-bottom: 8px; }
.cc-l { font-size: .85rem; color: var(--muted); font-weight: 600; }
.cc-v { font-weight: 700; color: var(--navy); word-break: break-word; }
.cc-n { font-size: .88rem; color: var(--muted); }

/* thank-you / 404 */
.center-page { text-align: center; min-height: 50vh; }
.center-page .lead { margin: 0 auto 1em; }
.ok-icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #e7f6ec; color: #166534; margin-bottom: 20px; }

/* footer */
.site-footer { border-top: 4px solid var(--accent); background: var(--navy-deep); color: #a9b8cc; padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 32px; }
.site-footer a { color: #dbe4ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand { margin-bottom: 1em; }
.foot-brand img { height: 80px; width: auto; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .6em; }
.foot-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.foot-contact .i { color: var(--accent-soft); }
.foot-links li { margin-bottom: 6px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .15s, background-color .15s;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); }
.wa-float .i { width: 30px; height: 30px; }
.site-footer { padding-bottom: 90px; }

/* responsive */
@media (max-width: 960px) {
  .hero-in, .two-col, .cat-detail, .quote-layout { grid-template-columns: 1fr; gap: 32px; }
  .values, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box, .quote-side { position: static; }
  .logo-panel { max-width: 480px; }
}
@media (max-width: 560px) {
  .values, .steps, .contact-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .btn-row .btn-lg { flex: 1 1 100%; }
  .band .btn-row { width: 100%; }
  .quote-form fieldset { padding: 16px 14px; }
  .form-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
