/* Colonial Classic Limited — brand palette taken from the company profile */
:root {
  --purple: #8a3ad8;
  --purple-600: #6c22b8;
  --plum: #3d0f6b;
  --ink: #1a0b2b;
  --blush: #f8f1fb;
  --blush-2: #efe0f7;
  --gold: #c9a15b;
  --text: #3a3245;
  --muted: #7a7086;
  --line: #ece4f1;
  --white: #fff;

  --head: "Montserrat", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 24px 48px -28px rgba(42, 12, 74, .35);
  --shadow-sm: 0 10px 30px -18px rgba(42, 12, 74, .3);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* Blurhash placeholder: average colour first, decoded blurhash once JS runs, photo fades in on load */
.bh { display: block; background: var(--bh, var(--blush-2)) center / cover no-repeat; overflow: hidden; }
.js .bh img { opacity: 0; transition: opacity .6s ease; }
.js .bh.loaded img { opacity: 1; }
a { color: var(--purple-600); }
strong { font-weight: 500; color: var(--ink); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tint { background: var(--blush); }
.section-dark { background: var(--ink); color: #cfc3dc; }
.section-dark h2, .section-dark h3, .section-dark strong { color: var(--white); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-sub { color: var(--muted); font-size: .98rem; }
.section-dark .section-sub { color: #a898ba; }
.muted { color: var(--muted); font-size: .875rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: #c4a0ee; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--plum); color: var(--white);
  font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .04em;
  text-decoration: none; border: 1px solid var(--plum);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--plum); border-color: #d9cbe6; }
.btn-ghost:hover { background: var(--white); color: var(--plum); border-color: var(--plum); }
.btn-small { padding: 9px 18px; font-size: .75rem; }
.btn-light { background: var(--white); color: var(--plum); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(26, 11, 43, .45); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--head); font-weight: 700; color: var(--plum); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.brand em { font-style: normal; font-weight: 500; color: var(--purple); }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 400; font-size: .84rem; position: relative; }
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--plum); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 112px);
  background: linear-gradient(180deg, var(--white) 0%, var(--blush) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 520px; }
.lead { font-size: 1.02rem; color: var(--muted); max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 44px; }
.hero-stats { list-style: none; padding: 26px 0 0; margin: 0; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--line); max-width: 470px; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--head); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--plum); letter-spacing: -.02em; }
.hero-stats span { font-size: .75rem; color: var(--muted); }

.hero-media { position: relative; padding: 0 0 56px 40px; }
.hero-main { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-main img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.hero-inset {
  position: absolute; left: 0; bottom: 0; width: 38%; margin: 0;
  border-radius: 16px; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow);
}
.hero-inset img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-badge {
  position: absolute; right: -12px; bottom: 22px; padding: 14px 18px; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-sm); border-left: 3px solid var(--purple);
}
.hero-badge small { display: block; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-badge strong { font-family: var(--head); font-size: .9rem; font-weight: 600; }

/* Split layouts */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-media { grid-template-columns: 1fr 1fr; align-items: center; }
.split-media.reverse > figure { order: 2; }
.prose p:first-child { font-size: 1.05rem; color: var(--ink); font-weight: 400; }
.framed { margin: 0; position: relative; }
.framed .bh { border-radius: var(--radius); box-shadow: var(--shadow); }
.framed img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.framed::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold);
  border-radius: calc(var(--radius) + 2px); z-index: -1; opacity: .55;
}
.split-media.reverse .framed::before { inset: 18px 18px -18px -18px; }

/* Mission & vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); }
.mv-card p { font-size: .98rem; margin: 0; }
.mv-card-dark { background: var(--plum); border-color: var(--plum); color: #dccbee; }
.mv-card-dark strong { color: var(--white); }
.mv-label { display: block; font-family: var(--head); font-weight: 600; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.mv-label::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-top: 12px; }
.mv-card-dark .mv-label { color: #d2b2f5; }

/* Values */
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.values li { padding: 28px 22px 4px 0; position: relative; }
.values li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.values .num { font-family: var(--head); font-weight: 600; font-size: .72rem; letter-spacing: .1em; color: var(--gold); }
.values h3 { margin: 10px 0 8px; }
.values p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Operations */
.ops-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.ops-card { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); }
.ops-card h3 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #c4a0ee !important; margin-bottom: 20px; }
.region-list { list-style: none; padding: 0; margin: 0; }
.region-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #f1e8fa; font-size: .9rem; }
.region-list li:last-child { border-bottom: 0; }
.region-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; color: #e9def5; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--head); font-weight: 600; color: var(--gold); font-size: .75rem; min-width: 20px; }

/* Markets */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 18px; }
.market { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.market-code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blush); color: var(--plum); font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.market strong { display: block; font-family: var(--head); font-weight: 600; font-size: .92rem; }
.market small { color: var(--muted); font-size: .75rem; }

/* QA */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qa { background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.qa h3 { font-size: .95rem; color: var(--plum); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.qa p { color: var(--muted); margin: 0; font-size: .85rem; }

/* CSR */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li { position: relative; padding: 7px 0 7px 30px; font-size: .92rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--head); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 400; font-size: .88rem; color: var(--ink); padding-right: 12px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 20%; }
.member-body { padding: 20px 22px 16px; }
.member h3 { margin-bottom: 2px; }
.role { font-family: var(--head); color: var(--purple); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.member-body p:not(.role) { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--blush-2); }
.gallery .bh { height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 2; }
.gallery figure:nth-child(4), .gallery figure:nth-child(5) { grid-column: span 2; }

/* Contact */
.contact {
  background:
    linear-gradient(110deg, rgba(26, 11, 43, .97) 0%, rgba(61, 15, 107, .93) 55%, rgba(61, 15, 107, .7) 100%),
    url("../assets/img/cashew-apples-800.webp") center / cover;
  color: #d8c9e8;
}
.contact h2 { color: var(--white); }
.contact .eyebrow { color: #d2b2f5; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contact-grid > div > p { font-size: .98rem; max-width: 440px; margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .95); }
.ic svg { width: 17px; height: 17px; fill: var(--plum); }
.contact-list small { display: block; font-family: var(--head); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #b9a2d3; font-weight: 600; }
.contact-list a, .contact-list address { color: var(--white); font-weight: 400; font-size: .9rem; text-decoration: none; font-style: normal; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #8d7fa0; padding: 30px 0; font-size: .78rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-inner p { margin: 0; }
.brand-light span { color: var(--white); }
.brand-light em { color: #c4a0ee; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--plum); color: var(--white); font-size: .85rem; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 404 */
.not-found { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--white), var(--blush)); }
.not-found .brand { margin-bottom: 48px; }
.not-found .lead { margin-bottom: 28px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .values li:nth-child(4) { border-left: 0; padding-left: 0; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin-top: 16px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero-grid, .split, .split-media, .mv-grid, .ops-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; }
  .hero-badge { right: 0; }
  .split-media.reverse > figure { order: 0; }
  .framed::before { display: none; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 560px) {
  body { font-size: .9rem; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .brand span { font-size: .7rem; letter-spacing: .06em; }
  .hero-actions { margin: 22px 0 32px; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .mv-card, .ops-card { padding: 24px 20px; }
  .member-body { padding: 18px 18px 14px; }
  .contact-list li { padding: 14px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li, .values li + li { border-left: 0; padding: 22px 12px 4px 0; }
  .qa-grid, .team, .markets, .facts { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; justify-content: space-between; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: .68rem; }
  .hero-media { padding-left: 24px; }
  .hero-badge { padding: 10px 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
