/* =========================================================
   CONCRETE CALCULATOR — CORE STYLESHEET
   Design tokens + base layout + components
   ========================================================= */

:root {
  /* Brand palette */
  --primary: #F59E0B;
  --primary-dark: #C9790A;
  --secondary: #1E3A5F;
  --secondary-dark: #14283F;
  --accent: #16A34A;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-muted: #5B6B7E;
  --border: #E2E8F0;

  /* Hazard stripe pair (signature motif) */
  --hazard-a: var(--primary);
  --hazard-b: var(--secondary-dark);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Radius / shadow */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 58, 95, 0.10);
  --shadow-lg: 0 20px 48px rgba(30, 58, 95, 0.16);

  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--secondary-dark); line-height: 1.15; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---------- Eyebrow / section heading ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(245, 158, 11, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Hazard divider (signature motif) ---------- */
.hazard-divider {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard-a), var(--hazard-a) 18px,
    var(--hazard-b) 18px, var(--hazard-b) 36px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
  isolation: isolate;
}
/* Blur lives on a pseudo-element (not the header itself) so .site-header never
   becomes a CSS containing block for its position:fixed descendants (the mobile nav).
   backdrop-filter/filter on an element traps fixed children inside its box;
   putting it on ::before instead keeps that trap contained to the pseudo-element only. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.scrolled::before { background: rgba(255,255,255,0.96); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--secondary-dark); }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo .logo-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 6px, transparent 6px 12px);
  opacity: 0.9;
}
.logo .logo-mark svg { position: relative; z-index: 1; }

.main-nav ul { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  justify-content: center;
}
.hamburger span {
  display: block; height: 3px; width: 100%;
  background: var(--secondary-dark); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background: var(--secondary-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 0%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(245,158,11,0.4);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--primary); }
.hero p.lead {
  color: #C7D2E0;
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { background: #fff; color: var(--secondary-dark); }

.hero-stats { display: flex; gap: 32px; margin-top: 44px; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.hero-stats div span { font-size: 0.82rem; color: #8FA3BE; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "SITE READY";
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-illustration { width: 100%; height: auto; }

/* ---------- Calculator ---------- */
.calculator-section { background: var(--bg); }
.calc-shell {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.calc-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--secondary-dark);
}
.calc-tab {
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 18px 22px;
  color: #B9C6D6;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.calc-tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.calc-tab.active { color: #fff; border-bottom-color: var(--primary); background: rgba(245,158,11,0.1); }

.calc-body { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calc-panel { display: none; }
.calc-panel.active { display: contents; }

.calc-form h3 { font-size: 1.2rem; margin-bottom: 6px; }
.calc-form > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }

.field-group { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--secondary-dark); margin-bottom: 6px; }
.input-wrap { position: relative; }
input[type="number"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.14);
  outline: none;
}
input.invalid { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.1); }
.error-msg { color: #DC2626; font-size: 0.8rem; margin-top: 6px; display: none; }
.error-msg.show { display: block; }

select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E3A5F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.unit-toggle { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.unit-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.unit-toggle button.active { background: var(--secondary-dark); color: #fff; border-color: var(--secondary-dark); }

.calc-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Result card (signature element: inspection ticket) ---------- */
.result-card {
  background: var(--secondary-dark);
  border-radius: var(--radius);
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.result-ticket-top {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(255,255,255,0.18);
}
.result-ticket-top .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}
.result-stamp {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  transform: rotate(-6deg);
}
.result-body { padding: 26px; }
.result-primary {
  text-align: center;
  padding: 18px 0 26px;
}
.result-primary .value {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.result-primary .label { color: #B9C6D6; font-size: 0.85rem; margin-top: 8px; display: block; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.result-item {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.result-item .rv { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; display: block; }
.result-item .rl { font-size: 0.76rem; color: #9FB1C6; }

.result-materials { border-top: 1px dashed rgba(255,255,255,0.18); padding-top: 18px; margin-top: 4px; }
.result-materials h4 { font-size: 0.85rem; color: #B9C6D6; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.material-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.material-row span:last-child { font-family: var(--font-mono); color: var(--primary); font-weight: 600; }

.result-actions { display: flex; gap: 10px; padding: 0 26px 26px; flex-wrap: wrap; }
.result-actions button {
  flex: 1 1 auto;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.result-actions button:hover { background: rgba(255,255,255,0.16); }

/* ---------- Cards / grids (features, why-use, concrete types, applications) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(245,158,11,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Concrete type / application cards with accent bar */
.type-card { position: relative; padding-top: 30px; }
.type-card::before {
  content: "";
  position: absolute; top: 0; left: 28px; right: 28px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.app-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.app-chip:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-4px); }

/* ---------- Timeline (how to use) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before {
  content: "";
  position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
}
.timeline-step { text-align: center; position: relative; }
.timeline-step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--secondary-dark); color: var(--primary);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.timeline-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.timeline-step p { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Tips ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tip-card {
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.tip-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.tip-card p { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Tables (conversion / mix ratio) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
thead th {
  background: var(--secondary-dark); color: #fff;
  text-align: left; padding: 14px 18px; font-size: 0.85rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(245,158,11,0.05); }
tbody td:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--secondary-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
}
.faq-question .plus { transition: transform 0.3s ease; color: var(--primary); font-size: 1.3rem; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About / Contact ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-points { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.about-point { display: flex; gap: 14px; }
.about-point .dot { width: 30px; height: 30px; border-radius: 8px; background: rgba(22,163,74,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact-form .field-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.96rem; min-height: 130px; resize: vertical;
}
.contact-form .field-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(245,158,11,0.14); outline: none; }

.req { color: #DC2626; }
.req-optional { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; text-transform: none; letter-spacing: 0; }

.char-counter {
  display: block;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.char-counter.warn { color: var(--primary-dark); }
.char-counter.limit { color: #DC2626; }

/* Honeypot: visually hidden but present in the DOM/tab order excluded */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form select#contact-subject:invalid { color: var(--text-muted); }

.contact-form .btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-block.is-loading .btn-spinner { display: inline-block; }
.btn-block.is-loading { opacity: 0.85; cursor: progress; pointer-events: none; }

.form-success, .form-error {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.9rem;
}
.form-success { background: rgba(22,163,74,0.1); color: var(--accent); }
.form-error { background: rgba(220,38,38,0.08); color: #DC2626; }
.form-success.show, .form-error.show { display: flex; }
.form-success svg, .form-error svg { flex-shrink: 0; }

.contact-info-card { background: var(--secondary-dark); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info-card h3 { color: #fff; margin-bottom: 8px; }
.contact-info-card p { color: #B9C6D6; margin-bottom: 24px; font-size: 0.92rem; }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-row .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(245,158,11,0.16); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row strong { display: block; font-size: 0.9rem; }
.contact-info-row span { font-size: 0.85rem; color: #9FB1C6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary-dark); color: #C7D2E0; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: #B9C6D6; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: 0.9rem; color: #9FB1C6; margin-bottom: 20px; max-width: 320px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.84rem; color: #8FA3BE; }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ---------- Breadcrumb (legal pages) ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: #B9C6D6; }
.breadcrumb a { color: #B9C6D6; }
.breadcrumb a:hover { color: var(--primary); }
.legal-hero { background: var(--secondary-dark); padding: 64px 0 48px; position: relative; overflow: hidden; }
.legal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}
.legal-hero h1 { color: #fff; margin-top: 14px; position: relative; }
.legal-content { max-width: 780px; margin: 0 auto; padding: 64px 0; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary-dark); margin-bottom: 8px; display: inline-block; }

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
