/* ============================================================
   COMPLIAX GROUP — Design System
   Palette: Ivory · Sand · Chocolate · Espresso · White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --white:      #FFFFFF;
  --ivory:      #F8F4EE;
  --sand:       #E8DDD0;
  --sand-mid:   #C9B99A;
  --choco:      #6B4226;
  --espresso:   #3B2010;
  --text-main:  #2A1A0E;
  --text-muted: #7A6555;
  --accent:     #8B5E3C;
  --border:     #D9CBBF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(59,32,16,0.08);
  --shadow-lg: 0 8px 32px rgba(59,32,16,0.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-muted); }

a { color: var(--choco); text-decoration: none; }
a:hover { color: var(--espresso); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--ivory); }
.section--dark { background: var(--espresso); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--sand-mid); }

/* ── NAVIGATION ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--espresso); letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__logo span { color: var(--choco); }
.nav__links { display: flex; gap: 8px; list-style: none; }
.nav__links a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--text-main);
  padding: 6px 12px; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover, .nav__links a.active {
  background: var(--sand); color: var(--espresso);
}
.nav__lang { display: flex; gap: 4px; }
.nav__lang button {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 20px;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.nav__lang button.active, .nav__lang button:hover {
  background: var(--choco); color: var(--white); border-color: var(--choco);
}
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* ── HERO ── */
.hero {
  background: var(--ivory);
  padding: 100px 24px 80px;
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero__eyebrow::before { content:''; display:block; width:24px; height:1px; background:var(--accent); }
.hero h1 { color: var(--espresso); margin-bottom: 20px; }
.hero p { font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__img {
  background: var(--sand);
  border-radius: 2px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hero__img-placeholder {
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  padding: 24px;
}
.hero__img img { width:100%; height:100%; object-fit:cover; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 13px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.2s; text-decoration: none; letter-spacing: 0.01em;
}
.btn--primary { background: var(--choco); color: var(--white); border-color: var(--choco); }
.btn--primary:hover { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.btn--outline { background: transparent; color: var(--choco); border-color: var(--choco); }
.btn--outline:hover { background: var(--choco); color: var(--white); }
.btn--light { background: var(--white); color: var(--espresso); border-color: var(--border); }
.btn--light:hover { background: var(--sand); }

/* ── CARDS ── */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; color: var(--espresso); }
.card p { font-size: 0.93rem; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: block;
}
.section-header h2 { color: var(--espresso); margin-bottom: 14px; }

/* ── FINE TABLE ── */
.fine-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 32px; }
.fine-table th {
  background: var(--espresso); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 500;
  font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.fine-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fine-table tr:nth-child(even) td { background: var(--ivory); }
.fine-table tr:hover td { background: var(--sand); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge--red    { background: #FEE2E2; color: #B91C1C; }
.badge--orange { background: #FEF3C7; color: #B45309; }
.badge--green  { background: #D1FAE5; color: #065F46; }

/* ── FORM ── */
.form-section { max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white);
  color: var(--text-main); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--choco);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--choco); }
.form-check label { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.form-success {
  display: none; background: #D1FAE5; border: 1px solid #6EE7B7;
  color: #065F46; padding: 16px 20px; border-radius: var(--radius);
  font-size: 0.9rem; margin-top: 16px;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--white);
}
.stats-bar__item {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__num {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 700; color: var(--choco); display: block; line-height: 1;
}
.stats-bar__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* ── REVIEWS ── */
.review-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.review-card__quote {
  font-family: var(--font-display); font-size: 3rem;
  color: var(--sand); line-height: 1; position: absolute; top: 16px; right: 24px;
}
.review-card__text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }
.review-card__author { font-weight: 600; font-size: 0.88rem; color: var(--text-main); }
.review-card__role   { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: #D97706; font-size: 0.9rem; margin-bottom: 12px; }

/* ── FOOTER ── */
.footer {
  background: var(--espresso); color: var(--sand);
  padding: 60px 24px 32px;
}
.footer__inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer__logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.footer__logo span { color: var(--sand-mid); }
.footer__desc { font-size: 0.85rem; color: var(--sand-mid); line-height: 1.7; }
.footer__col h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a { font-size: 0.85rem; color: var(--sand-mid); transition: color 0.2s; }
.footer__col ul a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--sand-mid); }
.footer__bottom a { color: var(--sand-mid); }
.footer__bottom a:hover { color: var(--white); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--espresso); color: var(--sand);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 0.85rem; flex: 1; min-width: 260px; }
#cookie-banner a { color: var(--sand-mid); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--ivory); padding: 64px 24px 48px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
.page-header h1 { color: var(--espresso); max-width: 680px; margin: 0 auto 16px; }
.page-header p   { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── COMPLIANCE VISUAL ── */
.violation-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.violation-row:last-child { border-bottom: none; }
.violation-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--sand-mid); min-width: 48px; line-height: 1;
}
.violation-row h4 { color: var(--espresso); margin-bottom: 4px; }
.violation-row p { font-size: 0.88rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { display: none; }
}
@media (max-width: 640px) {
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; }
  .nav__hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
