/* EVA Tech – Base CSS
   Purpose: reset, tokens, typography, layout, and brand foundations
*/

/* 0) Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; margin-top: 0; }
:focus-visible { outline: 2px solid #ff0000; outline-offset: 2px; }

/* 1) Design tokens */
:root{
  --brand: #ff0000;
  --brand-600: #d10000;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #f6f6f7;
  --muted-2: #efeff0;
  --border: #e5e6e8;
  --shadow: 0 10px 30px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);

  --radius: 16px;
  --radius-sm: 10px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --container: 1180px;

  --transition-fast: 180ms cubic-bezier(.2,.8,.2,1);
  --transition-med: 320ms cubic-bezier(.2,.8,.2,1);
}

/* 2) Base page */
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

/* 3) Layout */
.container{ width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section{ padding: clamp(32px, 6vw, 72px) 0; }
.section-tight{ padding: clamp(16px, 3vw, 36px) 0; }
.grid{ display: grid; gap: var(--space-6); }
.grid.cols-2{ grid-template-columns: 1fr; }
.grid.cols-3{ grid-template-columns: 1fr; }
@media (min-width: 860px){
  .grid.cols-2{ grid-template-columns: 1.2fr 1fr; }
  .grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
}

/* 4) Typography */
h1, h2, h3{ line-height: 1.2; margin: 0 0 var(--space-4); }
h1{ font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -0.02em; }
h2{ font-size: clamp(22px, 3.2vw, 28px); }
h3{ font-size: clamp(18px, 2.4vw, 22px); }
.lead{ font-size: clamp(16px, 2.2vw, 18px); color: #222; }
.display{ font-family: "Playfair Display", Georgia, serif; font-weight: 700; }

/* 5) Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 12px; padding: 12px 22px;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: all var(--transition-fast);
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--brand); color: #fff; }
.btn-primary:hover{ background: var(--brand-600); }
.btn-secondary{ background: #111; color:#fff; }
.btn-secondary:hover{ background: #000; }
.btn-outline{ background: #fff; color:#111; border:1px solid var(--border); }
.btn-outline:hover{ border-color: #bbb; }

/* 6) Cards */
.card{
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
}
.card-grid{ display: grid; gap: var(--space-6); }
@media (min-width: 860px){ .card-grid{ grid-template-columns: repeat(3, 1fr); } }
.card__meta{ color: #555; font-size: 14px; }

/* 7) Hero */
.hero{ position: relative; background: #fff; }
.hero--split .hero-inner{
  display: grid; gap: var(--space-8); align-items: center;
  grid-template-columns: 1fr; padding: clamp(24px, 5vw, 40px) 0;
}
@media (min-width: 980px){
  .hero--split .hero-inner{ grid-template-columns: 1.1fr 1fr; }
}
.hero-copy .actions{ display:flex; gap: 12px; flex-wrap: wrap; }
.hero-media{ position: relative; border-radius: var(--radius); overflow:hidden; background:#f2f3f4; }
.hero-media img{ width:100%; height:auto; display:block; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.25),transparent); }

/* Hero selector form (home quick finder) */
.hero-selector{ margin-top: var(--space-6); }
form.header-selector{ display:grid; gap:10px; }
@media (min-width: 860px){ form.header-selector{ grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.header-selector .field{ display:flex; }
.header-selector input,
.header-selector select{
  width:100%; border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; line-height:1.3;
}

/* 8) Header */
.site-header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
}
.header-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 10px 0; }
.header-logo img{ width: 28px; height: 28px; }
.header-nav ul{ display:flex; gap:16px; list-style:none; margin:0; padding:0; }
.header-nav a{ padding:8px 10px; border-radius: 6px; transition:color var(--transition-fast), background var(--transition-fast); }
.header-nav a:hover{ background: var(--muted-2); }
.header-nav a[aria-current="page"]{ color: var(--brand); font-weight: 600; }
.header-cta{ margin-left: auto; }

/* 9) Trust strip */
.trust{ background: var(--muted); }
.trust-inner{ display:flex; flex-wrap:wrap; justify-content:center; gap: var(--space-6); }
.trust-item{ display:flex; align-items:center; gap:8px; font-weight:500; font-size:15px; }
.trust-item svg{ width:20px; height:20px; fill:var(--brand); }

/* 10) Features */
.feature__icon{ width:32px; height:32px; margin-bottom:var(--space-3); }
.feature__icon svg{ width:100%; height:100%; fill:var(--brand); }

/* 11) Section variations and backgrounds */
.section-muted, .bg-muted{ background: var(--muted); }
.section-cta{ text-align:center; }

/* Dark gradient + rhomb watermark with CSS-only fallback */
.bg-gradient-dark{
  color:#fff;
  background:
    /* fallback rhomb net (no image needed) */
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, #0d0d0f, #000);
}
.bg-gradient-dark a{ color:#fff; }

/* If you add a watermark image later, layer it above like this:
.bg-rhomb{ background-image: url('../img/placeholders/rhomb-watermark.png'); background-repeat: repeat; background-size: 200px auto; }
*/

/* 12) Footer */
.site-footer{ border-top: 1px solid var(--border); background:#0c0c0c; color:#fff; }
.footer-inner{ display:grid; gap:10px; align-items:center; padding: 20px 0; }
@media (min-width: 760px){
  .footer-inner{ grid-template-columns: 1fr auto 1fr; }
  .footer-links{ justify-self:center; }
}
.footer-links{ display:flex; gap:16px; flex-wrap:wrap; }
.footer-links a{ color:#ddd; transition:color var(--transition-fast); }
.footer-links a:hover{ color:#fff; }
.footer-logo{ width: 26px; height: 26px; }

/* 13) Forms (shared) */
.label{ font-weight:600; font-size:14px; }
.input, .select, .textarea{
  width:100%; border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; line-height:1.3; background:#fff;
}
.textarea{ resize: vertical; }
.form-row{ display:grid; gap: 12px; }
.form-row.cols-2{ grid-template-columns: repeat(1, 1fr); }
.form-row.cols-3{ grid-template-columns: repeat(1, 1fr); }
@media (min-width: 860px){
  .form-row.cols-2{ grid-template-columns: repeat(2, 1fr); }
  .form-row.cols-3{ grid-template-columns: repeat(3, 1fr); }
}
.help{ font-size: 12px; color:#666; }

/* 14) Utilities */
.mt-16{ margin-top: 16px; }
.center{ text-align:center; }
.visually-hidden{
  position:absolute !important; height:1px; width:1px; overflow:hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; border:0; padding:0; margin:-1px;
}

/* 15) Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}
