/* The Mirlo — styles.css */
:root {
  --arena: #F6F8F8;
  --oliva: #2F6F64;
  --oliva-dark: #23564D;
  --oliva-light: #A9D6CC;
  --txt: #0F172A;
  --muted: #64748B;
  --bg: var(--arena);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --card: #E9F1EF;
  --card-border: rgba(47,111,100,0.16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Lora', serif;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--arena) 80%, white 20%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bar { display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:600; }
.brand__logo { height:32px; width:auto; display:block; }
.brand__name { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: 0.2px; }

/* Lang widget */
.lang { position:relative; display:flex; align-items:center; gap:8px; padding: 6px 8px; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; background: #fff; }
.lang__btn { display:flex; align-items:center; justify-content:center; font-size: 0; background: none; border: none; cursor: pointer; padding: 2px; }
.flag { width:28px; height:20px; border-radius:2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.lang__menu { position:absolute; right:0; top: calc(100% + 6px); background:#fff; border:1px solid rgba(0,0,0,0.08); border-radius:12px; box-shadow: var(--shadow); padding:6px; display:none; flex-direction: column; gap:6px; }
.lang[aria-expanded="true"] .lang__menu { display:flex; }
.lang__menu button { font-size:0; width:44px; height:32px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:8px; cursor:pointer; }
.lang__menu button:hover { background: #f3f4f6; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero__title { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0; font-weight: 600; text-align:center; }
.sub { margin-top: 14px; font-size: clamp(16px, 2.2vw, 22px); color: var(--muted); text-align:center; }
.sub-cta { margin: 6px 0 8px; font-size: clamp(16px, 2vw, 18px); color: var(--muted); }

.card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.card--hero { height: 100%; }
.hero__image { width:100%; height:100%; object-fit:cover; }

/* Features */
.features { display: grid; gap: 14px; padding: 0; margin: 24px 0 0; list-style: none; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 14px 16px; }
.feature b { color: var(--oliva-dark); }
.feat-photo { width:56px; height:56px; border-radius:12px; object-fit:cover; border:1px solid var(--card-border); background: #E6F0EC; }
.feature__text { margin: 0; }

/* Layout */
.two-col { display:grid; gap: 28px; margin-top: 28px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 0.9fr 1.1fr; align-items:start; } }
.left-col { display:grid; gap: 18px; }

/* Form / Buttons */
.form { display:flex; gap: 10px; margin-top: 22px; }
.input { padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.12); background: #fff; font-size: 16px; }
.input--email { flex:1; }
.btn { padding: 14px 18px; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; font-size: 16px; }
.btn--primary { background: var(--oliva); color: #fff; box-shadow: 0 8px 16px rgba(63,93,69,0.25); }
.btn--primary:hover { background: var(--oliva-dark); }
.micro { margin-top: 8px; font-size: 13px; color: var(--muted); }
.msg-ok { color: #166534; }
.msg-err { color: #9f1239; }

/* Footer */
.site-footer { padding: 36px 0; color: var(--muted); font-size: 14px; }
.footer__bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer__nav { display:flex; gap:16px; }
.footer__nav a { color: inherit; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

/* A11y */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Responsive tweaks */
@media (max-width: 520px) {
  .hero { padding: 56px 0 40px; }
  .form { flex-direction: column; }
  .btn--primary { width: 100%; }
  .feat-photo { width: 48px; height: 48px; }
}
@media (min-width: 1280px) {
  .two-col { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
}
