/* MCC Foods LLC — site-wide styles.
   Palette and motifs drawn from the company's own profile deck: deep navy,
   gold accent, and a four-colour divider stripe (orange/green/blue/purple). */

:root {
  --navy-950: #060b24;
  --navy-900: #0a1440;
  --navy-800: #101c54;
  --navy-700: #1a2a6c;
  --gold-500: #c9a24d;
  --gold-300: #e8cf8a;
  --gold-100: #f6ecd2;
  --paper: #f8f6f1;
  --paper-dim: #efece3;
  --ink: #1a1d2b;
  --ink-soft: #565b70;
  --line: #e4e0d4;
  --white: #ffffff;
  --stripe-1: #f2a33c;
  --stripe-2: #6fb52c;
  --stripe-3: #2596d1;
  --stripe-4: #7b5ea7;
  --radius: 14px;
  --shadow: 0 20px 45px -20px rgba(10, 20, 64, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(10, 20, 64, 0.3);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Lora', Georgia, 'Times New Roman', serif; margin: 0 0 .5em; line-height: 1.15; color: var(--navy-900); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.stripe { height: 5px; display: flex; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--stripe-1); }
.stripe span:nth-child(2) { background: var(--stripe-2); }
.stripe span:nth-child(3) { background: var(--stripe-3); }
.stripe span:nth-child(4) { background: var(--stripe-4); }

.eyebrow {
  display: inline-block; font-family: 'Inter', sans-serif; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; font-size: .74rem;
  color: var(--gold-500); margin-bottom: .6em;
}
.section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: rgba(255,255,255,.92); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: 13px 26px;
  border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); }
/* Anchor-link targets must not land under the sticky header. */
[id] { scroll-margin-top: 100px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Lora', Georgia, 'Times New Roman', serif; color: var(--gold-300); font-size: 1.28rem; letter-spacing: .02em; }
.brand-text span { font-size: .58rem; letter-spacing: .14em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-300); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--gold-500); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-pill {
  border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); border-radius: 999px;
  padding: 6px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.lang-pill:hover { border-color: var(--gold-300); color: var(--gold-300); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.5rem; }

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 82px; left: 0; right: 0; bottom: 0; background: var(--navy-900); flex-direction: column;
    padding: 30px 24px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; overflow-y: auto; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}
.hero picture, .hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,36,.55) 0%, rgba(6,11,36,.75) 55%, var(--navy-950) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 96px; max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 620px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Value cards (mission/focus/values/slogan) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.value-card .chip {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--white);
}
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p, .value-card ul { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.value-card ul li { padding: 2px 0; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--navy-900); padding: 34px 20px; text-align: center; }
.stat-cell .num { font-family: 'Lora', Georgia, 'Times New Roman', serif; font-size: 2.3rem; color: var(--gold-300); font-weight: 700; }
.stat-cell .lbl { font-size: .84rem; color: rgba(255,255,255,.7); margin-top: 6px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Timeline ----------
   The dot lives in its own grid column (not a pixel-guessed absolute
   position), so it can never collide with the year text regardless of
   column width, font metrics, or screen size. */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 93px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 70px 24px 1fr; column-gap: 12px; padding: 0 0 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { grid-column: 1; font-family: 'Lora', Georgia, 'Times New Roman', serif; font-weight: 700; color: var(--navy-900); font-size: 1.15rem; text-align: right; padding-top: 2px; }
.tl-dot {
  grid-column: 2; justify-self: center; margin-top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 4px var(--paper);
}
.tl-body { grid-column: 3; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .timeline::before { left: 63px; }
  .tl-item { grid-template-columns: 46px 20px 1fr; column-gap: 8px; }
  .tl-year { font-size: .95rem; }
}

/* ---------- Products ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px;
  font-size: .87rem; font-weight: 600; color: var(--ink-soft);
}
.filter-pill:hover { border-color: var(--gold-500); color: var(--navy-900); }
.filter-pill.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 1 / 1; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card .body { padding: 16px 18px 20px; }
.product-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-500); }
.product-card h4 { font-size: 1rem; margin: 6px 0 0; font-family: 'Inter', sans-serif; font-weight: 650; color: var(--navy-900); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-detail .thumb { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.product-detail .thumb img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.product-detail .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-500); }
.product-detail h1 { margin-top: 10px; font-size: 2rem; }
.product-detail .actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.product-detail .meta { margin-top: 24px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Brand wall ---------- */
.brand-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-badge {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 22px; background: var(--white);
  font-family: 'Lora', Georgia, 'Times New Roman', serif; font-weight: 700; color: var(--navy-800); letter-spacing: .03em;
  font-size: 1.05rem;
}

/* ---------- Facilities ---------- */
.facilities-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.facilities-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.fac-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.fac-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); margin-top: 7px; flex: none; }
.fac-list strong { display: block; color: var(--white); font-size: 1rem; }
.fac-list span { color: rgba(255,255,255,.65); font-size: .88rem; }
@media (max-width: 860px) { .facilities-wrap { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.news-card time { font-size: .78rem; color: var(--gold-500); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.news-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.news-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 36px; }
.contact-card h3 { color: var(--white); }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: center; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(201,162,77,.18); color: var(--gold-300); display: flex; align-items: center; justify-content: center; flex: none; }
.form-grid { display: grid; gap: 16px; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  font: inherit; background: var(--white); color: var(--ink);
}
.form-grid textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal animation ----------
   Gated behind html.has-js (set by an inline script in <head>) so content
   stays fully visible if JS is blocked, slow, or fails. */
html.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.has-js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Splash (root language chooser) ---------- */
.splash { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; color: var(--white); }
.splash-inner { position: relative; z-index: 2; text-align: center; padding: 24px; }
.splash-choices { display: flex; gap: 20px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.splash-choice {
  min-width: 190px; padding: 22px 30px; border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(10,20,64,.4); backdrop-filter: blur(6px);
}
.splash-choice:hover { border-color: var(--gold-300); background: rgba(10,20,64,.65); }
.splash-inner img { width: 72px; height: auto; margin: 0 auto; display: block; }
.splash-choice .flag { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.splash-choice strong { display: block; font-family: 'Lora', Georgia, 'Times New Roman', serif; font-size: 1.1rem; color: var(--gold-300); }
