/* =========================
   Container Bazar – Global UI
   Place at: /styles.css
   Images expected at: /images/logo.png, /images/bg.jpg
   ========================= */

/* ---- Theme tokens ---- */
:root {
    --sea-25: #f6fbff;
    --sea-50: #f0f9ff;
    --sea-100: #e0f2fe;
    --sea-200: #bae6fd;
    --sea-500: #0ea5e9;
    --sea-600: #0284c7;
  
    --ink-900: #111111;   /* body text */
    --ink-800: #1f2937;
    --ink-700: #262626;
    --ink-600: #374151;
    --ink-500: #6b7280;   /* muted */
  
    --card: #ffffff;
    --card-alpha: 0.96;
    --ring: #0ea5e9;
    --border: #d4dbe3;
    --table-stripe: #f8fafc;
  
    --radius-lg: 16px;
    --radius-md: 10px;
  
    --shadow-soft: 0 10px 30px rgba(2,132,199,.10);
    --shadow-btn: 0 6px 14px rgba(14,165,233,.22);
  }
  
  /* ---- Base ---- */
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    color: var(--ink-900);
    font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    background: url("/images/bg.jpg") center/cover fixed no-repeat;
    position: relative;
  }
  body::before {
    /* veil for readability */
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.50));
    z-index: 0;
  }
  
  a { color: var(--sea-600); text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  img, video { max-width: 100%; height: auto; display: block; }
  
  /* ---- Layout helpers ---- */
  .container { position: relative; z-index: 1; max-width: 1200px; margin: 28px auto; padding: 0 16px; }
  .section { padding: 32px 0; }
  .hero { padding: 48px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
  .hero-ill { display: flex; align-items: center; justify-content: center; }
  @media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
  }
  
  .grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
  .grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 900px) {
    .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  }
  
  /* ---- Cards ---- */
  .card {
    background: rgba(255,255,255,var(--card-alpha));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 22px;
  }
  .card + .card { margin-top: 24px; }
  
  /* ---- Header / Brand ---- */
  .header {
    position: sticky; top: 0; z-index: 2;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(140%) blur(6px);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex; gap: 14px; align-items: center;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 28px; color: var(--ink-900); }
  .brand img { width: 30px; height: 30px; }
  .tagline { margin-left: 8px; color: var(--ink-500); }
  
  /* ---- Typography ---- */
  h1 { margin: .2em 0 .3em; font-size: 42px; line-height: 1.15; color: var(--ink-900); }
  h2 { margin: 0 0 8px; font-size: 28px; color: var(--ink-900); }
  h3 { margin: 18px 0 10px; font-size: 18px; color: var(--ink-900); }
  p  { margin: .6em 0; color: var(--ink-600); }
  .muted { color: var(--ink-500); font-size: .94rem; }
  .req { color: #b91c1c; }
  
  /* ---- Badges / chips ---- */
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
  .badge {
    display: inline-block; padding: 6px 10px; border-radius: 999px;
    background: var(--sea-50); border: 1px solid var(--sea-100); color: var(--sea-600);
    font-weight: 700; font-size: 12px;
  }
  .status-chip {
    display: inline-block; padding: .25rem .6rem; border-radius: 999px;
    background: var(--sea-100); color: #065986; font-weight: 800; border: 1px solid var(--sea-200);
  }
  
  /* ---- Buttons / Links-as-buttons ---- */
  button, .primary, .secondary, .button {
    font: inherit; display: inline-block; border-radius: var(--radius-md);
    padding: 12px 16px; border: 1px solid transparent; cursor: pointer;
    text-decoration: none; user-select: none;
  }
  button, .primary, .button {
    background: var(--sea-500); color: #fff; font-weight: 700; box-shadow: var(--shadow-btn);
  }
  button:hover, .primary:hover, .button:hover { background: var(--sea-600); text-decoration: none; }
  .secondary {
    background: #fff; color: var(--sea-600); border: 1px solid var(--sea-200);
  }
  .secondary:hover { background: var(--sea-50); text-decoration: none; }
  
  /* ---- Forms ---- */
  label { display: block; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
  input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: #fff; color: var(--ink-900); outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  input::placeholder { color: #8a94a0; }
  input:focus, select:focus, textarea:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
  }
  .field.small { max-width: 320px; }
  
  /* Phone combo */
  .phone-row { display: flex; gap: 8px; }
  .phone-row select { max-width: 220px; }
  @media (max-width: 520px) {
    .phone-row { flex-direction: column; }
    .phone-row select { max-width: 100%; }
  }
  
  /* Consent & errors */
  .consent { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; color: var(--ink-900); margin: 10px 0; line-height: 1.35; }
  .consent input { margin-top: 3px; }
  .error { color: #b91c1c; font-weight: 700; margin: 10px 0; }
  
  /* ---- Tables ---- */
  .table {
    width: 100%; border-collapse: collapse; margin-top: 10px;
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
  }
  .table th, .table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--ink-900);
  }
  .table thead th { background: var(--sea-50); font-weight: 800; }
  .table tbody tr:nth-child(even) { background: var(--table-stripe); }
  
  /* ---- Feature cards (home) ---- */
  .feature { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: flex-start; }
  .feature-icon { font-size: 26px; line-height: 1; }
  
  /* ---- Footer ---- */
  footer { color: var(--ink-500); font-size: .92rem; text-align: center; padding: 24px 0; }
  
  /* ---- Utilities ---- */
  .hidden { display: none !important; }
  
  /* ---- Footer grid (home) ---- */
  .footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
  }
  .footer-grid a { color: var(--sea-600); }
  .footer-grid .note { color: var(--ink-500); }
  @media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
  }
  
  /* ---- Nav chips in top header (optional subtle look) ---- */
  .header-inner nav a.secondary { font-weight: 700; }
  