/* ==========================================================================
   CDG (Laos) Sole Co., Ltd — brand stylesheet
   Brand marks sampled from the official logo:
     navy   #323376   (CDG wordmark)
     yellow #FFF200   (chevron device on the profile cover)
   ========================================================================== */

:root {
  --navy:        #323376;
  --navy-700:    #282a63;
  --navy-900:    #1b1c47;
  --navy-100:    #eceCf7;
  --yellow:      #fff200;
  --yellow-600:  #e6d900;

  --ink:         #14152e;
  --body:        #4a4d68;
  --muted:       #7a7d95;
  --line:        #e3e5ef;
  --bg:          #ffffff;
  --bg-alt:      #f6f7fb;

  --wrap: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20,21,46,.06), 0 4px 12px rgba(20,21,46,.05);
  --shadow-md: 0 8px 30px rgba(20,21,46,.10);
  --shadow-lg: 0 24px 60px rgba(20,21,46,.16);

  --ff-display: 'Poppins', 'Noto Sans Lao', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Poppins', 'Noto Sans Lao', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; background: var(--yellow);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--yellow); }
.eyebrow.on-dark::before { background: var(--yellow); }

.lede { font-size: 1.12rem; color: var(--body); max-width: 62ch; }

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
/* soft navy tint — keeps the brand hue in the background without going dark */
.section--tint { background: var(--navy-100); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--yellow); color: var(--navy-900); }
.btn--accent:hover { background: var(--yellow-600); color: var(--navy-900); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--ff-display); font-weight: 500; font-size: .93rem;
  color: var(--ink); padding: .55rem .95rem; border-radius: 8px;
  position: relative; transition: color .18s ease, background .18s ease;
}
.nav a:hover { background: var(--navy-100); color: var(--navy); }
.nav a.is-active { color: var(--navy); font-weight: 600; }
.nav a.is-active::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .18rem;
  height: 3px; background: var(--yellow); border-radius: 2px;
}
/* .nav a is more specific than .btn--primary, so restate the button colours here */
.nav a.btn { margin-left: .8rem; padding: .6rem 1.3rem; }
.nav a.btn--primary { background: var(--navy); color: #fff; }
.nav a.btn--primary:hover { background: var(--navy-700); color: #fff; }
.nav a.btn::after { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  color: var(--body);
  padding: clamp(64px, 8vw, 112px) 0 clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}
/* pale yellow chevron device, echoing the profile cover (points left, as on the cover) */
.hero::before {
  content: ""; position: absolute; top: 50%; right: -7%;
  width: min(30vw, 420px); aspect-ratio: 3/4;
  transform: translateY(-50%);
  background: var(--yellow); opacity: .22; pointer-events: none;
  clip-path: polygon(100% 0%, 62% 0%, 0% 50%, 62% 100%, 100% 100%, 38% 50%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 12% 0%, rgba(50,51,118,.055), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero h1 { color: var(--navy); text-transform: uppercase; letter-spacing: -.015em; }
/* yellow reads as a highlighter swash here — yellow type on white is unreadable */
.hero h1 .accent {
  color: var(--navy); padding: 0 .1em;
  background: linear-gradient(to bottom,
    transparent 56%, rgba(255,242,0,.85) 56%, rgba(255,242,0,.85) 93%, transparent 93%);
}
.hero .lede { color: var(--body); font-size: 1.18rem; margin-bottom: 2rem; }
.hero .btn-row { margin-top: .5rem; }

.hero-stats {
  position: relative; z-index: 2;
  margin-top: clamp(44px, 5.5vw, 68px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-stats div { background: #fff; padding: 1.5rem 1.4rem; }
.hero-stats b {
  display: block; font-family: var(--ff-display); font-size: 1.7rem;
  font-weight: 700; color: var(--navy); line-height: 1.1;
}
.hero-stats span { font-size: .87rem; color: var(--muted); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd2e6; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--navy-100); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.card:hover .card-icon { background: var(--yellow); color: var(--navy-900); }

/* value chips */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.value {
  text-align: center; padding: 1.8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value b { display: block; font-family: var(--ff-display); color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }
.value span { font-size: .87rem; color: var(--muted); }
.value .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); margin: 0 auto 1rem; display: grid; place-items: center; }
.value .dot svg { width: 18px; height: 18px; stroke: var(--navy-900); fill: none; stroke-width: 2; }

/* split media/text block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-media { position: relative; }
.split-media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px;
  width: 108px; height: 108px; border: 4px solid var(--yellow);
  border-radius: var(--radius); z-index: -1;
}

/* branded panel used where a stock photo would otherwise sit */
.brand-panel {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: var(--radius);
  padding: 2.6rem 2.4rem; color: #c6c8e6; box-shadow: var(--shadow-lg);
}
.brand-panel::before {
  content: ""; position: absolute; top: 50%; right: -12%;
  width: 260px; aspect-ratio: 3/4; transform: translateY(-50%);
  background: #ffffff; opacity: .07;
  clip-path: polygon(100% 0%, 62% 0%, 0% 50%, 62% 100%, 100% 100%, 38% 50%);
}
.brand-panel > * { position: relative; z-index: 2; }
.brand-panel h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.6rem; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-list .n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: var(--yellow); color: var(--navy-900);
  font-family: var(--ff-display); font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
.panel-list b { display: block; color: #fff; font-family: var(--ff-display); font-size: 1rem; }
.panel-list span { font-size: .9rem; color: #a9abd2; }

/* wide photo band, used at the image's natural proportions */
.photo-band { position: relative; overflow: hidden; }
.photo-band img { width: 100%; aspect-ratio: 916/226; object-fit: cover; }
@media (max-width: 620px) { .photo-band img { aspect-ratio: 2/1; object-position: 78% center; } }

/* bullet list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px; border-radius: 3px; background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,242,0,.22);
}
.section--tint .ticks li::before { box-shadow: 0 0 0 3px rgba(255,242,0,.30); }

/* ---------- page banner (inner pages) ---------- */

.page-banner {
  background: var(--bg-alt); color: var(--body);
  padding: clamp(48px, 6vw, 78px) 0;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-banner::before {
  content: ""; position: absolute; top: 50%; right: -4%;
  width: min(22vw, 280px); aspect-ratio: 3/4; transform: translateY(-50%);
  background: var(--yellow); opacity: .22;
  clip-path: polygon(100% 0%, 62% 0%, 0% 50%, 62% 100%, 100% 100%, 38% 50%);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: var(--navy); margin-bottom: .35rem; text-transform: uppercase; }
.page-banner p { color: var(--body); max-width: 60ch; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--navy); }

/* ---------- project cards ---------- */

.project {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}
.project-head {
  padding: 2rem 2rem 1.4rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 1.2rem; flex-wrap: wrap;
}
.project-head h3 { margin: 0 0 .3rem; }
.project-body { padding: 1.8rem 2rem 2rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px;
  background: var(--navy-100); color: var(--navy);
}
.tag--live { background: #e7f8ee; color: #14794a; }
.tag--live::before { content: "● "; }
.tag--build { background: #fff6d6; color: #8a6d00; }
.tag--build::before { content: "◐ "; }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.spec div b { display: block; font-family: var(--ff-display); color: var(--navy); font-size: 1.05rem; }
.spec div span { font-size: .84rem; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  background: var(--navy); color: #c6c8e6;
  border-radius: 20px; padding: clamp(2.4rem, 5vw, 3.6rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px;
  border: 30px solid var(--yellow); border-radius: 50%; opacity: .12;
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { margin: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.8rem; }
.info-item .ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-100); color: var(--navy); display: grid; place-items: center;
}
.info-item .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.info-item b { display: block; font-family: var(--ff-display); color: var(--ink); margin-bottom: .15rem; }
.info-item span, .info-item a { font-size: .95rem; color: var(--body); }

form.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-family: var(--ff-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50,51,118,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; display: none; }
.form-status.ok { display: block; background: #e7f8ee; color: #14794a; }
.form-status.err { display: block; background: #fdeaea; color: #a32020; }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-900); color: #9294c4; padding: clamp(48px, 6vw, 76px) 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #9294c4; display: block; margin-bottom: .55rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { background: #fff; padding: .7rem .9rem; border-radius: 10px; display: inline-block; margin-bottom: 1.2rem; }
.footer-logo img { height: 38px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #75779f;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 24px 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { padding: 1.15rem 1rem; }
  .hero-stats b { font-size: 1.2rem; overflow-wrap: anywhere; }
  .hero-stats span { font-size: .8rem; }
  .spec { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .project-head, .project-body { padding-inline: 1.3rem; }
}
