/* Casalingua — layout: left-aligned editorial grid; the hero pairs the promise with one listing title written in 14 languages. */
:root {
  --bg: #FFFFFF;          /* clean white */
  --surface: #FFFFFF;
  --ink: #0F2A3A;
  --muted: #4A6476;
  --sea: #0A7CC2;         /* Mediterranean azure */
  --sea-soft: #EAF6FD;    /* sky tint */
  --bloom: #E23E7E;       /* bright bougainvillea */
  --bloom-soft: #FDE8F0;
  --sand: #FFF5D6;        /* sunny yellow tint */
  --sun: #FFC93C;
  --line: #DCE9F2;
  --on-sea: #FFFFFF;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Geeza Pro", "Arial", serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--bloom); }
:focus-visible { outline: 3px solid var(--bloom); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--bloom); }
.nav .lang { color: var(--muted); }
@media (max-width: 820px) { .nav .hide-sm { display: none; } }
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a:not(.btn):not(.lang) { display: none; }
  .brand span { font-size: 1.15rem; }
  .brand svg { width: 28px; height: 28px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--bloom); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--sea); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* The language wall: one listing title, 14 languages */
.listing {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; min-width: 0; margin: 0;
  box-shadow: 0 22px 48px -26px rgba(10, 124, 194, 0.45); border-top: 4px solid var(--sun);
}
.listing-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.listing-meta strong { color: var(--ink); font-weight: 700; }
.langs { list-style: none; margin: 0; padding: 10px 0 0; display: grid; }
.langs li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.langs li:last-child { border-bottom: 0; }
.langs abbr { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--bloom); text-decoration: none; }
.langs span { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }
.langs li[lang="ar"] span { font-family: var(--font-arabic); direction: rtl; text-align: right; font-size: 1.1rem; }
.langs li[lang="es"] span { font-weight: 600; }
.reveal .langs li { animation: lang-in 0.5s ease both; }
@keyframes lang-in { from { opacity: 0.25; transform: translateX(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal .langs li { animation: none; } html { scroll-behavior: auto; } }

/* Problem strip */
.band { background: linear-gradient(135deg, #0A7CC2 0%, #1199D6 100%); color: var(--on-sea); }
.band h2, .band h3 { color: var(--on-sea); }
.band .lede { color: color-mix(in srgb, var(--on-sea) 78%, transparent); }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.reasons div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--on-sea) 30%, transparent); }
.reasons p { color: color-mix(in srgb, var(--on-sea) 82%, transparent); }
@media (max-width: 700px) { .reasons { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.service h3 { font-size: 1.12rem; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service.featured h3 { color: var(--bloom); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 10px; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 16px; min-width: 0; }
.plan.recommended { border: 2px solid var(--bloom); box-shadow: 0 24px 50px -30px rgba(226, 62, 126, 0.55); }
.plan-tag { justify-self: start; background: var(--bloom-soft); color: var(--bloom); font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.96rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--sea); }
.plan.recommended li::before { background: var(--bloom); }
.plans-note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; max-width: 75ch; }
.launch { margin-top: 18px; display: inline-flex; flex-wrap: wrap; gap: 6px 14px; background: var(--sand); border-left: 4px solid var(--sun); padding: 12px 16px; border-radius: 10px; font-size: 0.97rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 700; color: var(--muted); font-size: 0.88rem; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Zones */
.zones { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.zones a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: 0.95rem; }
.zones a:hover { border-color: var(--bloom); color: var(--bloom); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bloom); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

/* Sample form */
.sample { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--bloom); outline-offset: 1px; }
.form-hint { font-size: 0.85rem; color: var(--muted); }
.form-done { background: var(--sea-soft); border-radius: 10px; padding: 16px; display: grid; gap: 10px; }
.contact-lines { display: grid; gap: 8px; margin-top: 18px; }
.contact-lines span { user-select: all; font-weight: 700; }
@media (max-width: 860px) { .sample { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Zone page */
.crumbs { font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.zone-hero { display: grid; gap: 20px; max-width: 780px; }
.prose { display: grid; gap: 16px; max-width: 70ch; }
.prose p { color: var(--ink); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
/* WhatsApp green is the recognised colour for this action */
.wa-float {
  position: fixed; z-index: 8;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #1FA855; color: #FFFFFF; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; font-size: 0.95rem;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
}
.wa-float:hover { color: #FFFFFF; filter: brightness(1.08); }
