/* ==========================================================================
   KWT Beverages — Strawman Global Stylesheet
   Vanilla CSS. Structural only — not final design polish.
   TODO: Replace tokens/colours with final brand system once approved.
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f4f6f9;      /* light grey surface */
  --color-surface-2: #e6eaf0;    /* slightly deeper grey */
  --color-text: #131a2e;         /* near-black navy */
  --color-muted: #5b6473;        /* muted grey */
  --color-primary: #16224a;      /* KWT corporate navy */
  --color-primary-dark: #0f1730; /* deep navy */
  --color-accent: #3a5a94;       /* steel blue accent */
  --color-border: #e6eaf0;

  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 40, 70, 0.08);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body);
}

/* ---- Reset / Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}
.section--muted { background: var(--color-surface); }
.section__title { font-size: 2rem; margin-bottom: var(--space-md); }
.section__lead { color: var(--color-muted); max-width: 60ch; }

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.site-header__logo { height: 34px; width: auto; }
.site-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a { color: var(--color-text); font-weight: 500; }
.site-nav a:hover { color: var(--color-accent); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 62vh;
  padding: var(--space-xl) var(--space-md);
  color: #fff;
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  overflow: hidden;
}
/* Photo hero: set inline style="background-image:url(...)" on .hero.hero--photo */
.hero--photo {
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,48,0.85), rgba(22,34,74,0.75));
}
.hero__content { position: relative; max-width: 760px; }
.hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero__subtitle { font-size: 1.15rem; opacity: 0.95; margin-bottom: var(--space-md); }
.hero__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* ---- Cards ---- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card__media { aspect-ratio: 4 / 3; background: var(--color-surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-md); flex: 1; }
.card__title { font-size: 1.25rem; }
.card__meta { color: var(--color-muted); font-size: 0.9rem; }
.card__desc { color: var(--color-muted); }

/* ---- Brand Tile ---- */
.brand-tile { text-align: left; }
.brand-tile__tagline { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }

/* Brand hub grid — always 3 even columns, consistent logo treatment */
.brand-grid { grid-template-columns: repeat(3, 1fr); }
.brand-tile .card__media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: var(--space-md);
}
.brand-tile .card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 860px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9e6f2;
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}
.site-footer h4 { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-xs); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  opacity: 0.85;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin: 0 0.25rem 0.25rem 0;
}

/* ==========================================================================
   Microsite helpers — shared by brand microsites (theming via :root tokens)
   ========================================================================== */
.text-center { text-align: center; }
.hero__logo {
  max-width: 220px;
  width: 60%;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
}
.chip--accent { background: var(--color-accent); color: #fff; }
.format-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.format-list li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.brand-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}
.brand-back:hover { text-decoration: underline; }
