/* =====================================================
   ShalomSim — global styles
   Mediterranean Modern palette · Serif + grotesque pairing
   ===================================================== */

:root {
  /* Palette */
  --navy:        #0C4A6E;
  --navy-alt:    #075985;
  --sand:        #F5E9D4;
  --sand-light:  #FAF3E3;
  --accent:      #D86F4D;
  --accent-soft: #EFA68C;
  --dark:        #0F172A;
  --ink:         #1F2937;
  --muted:       #64748B;
  --line:        #E2E8F0;
  --cream:       #FAFAF7;
  --white:       #FFFFFF;

  /* Type */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 960px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 2.4em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; color: var(--navy); }
h4 { font-size: 1.05rem; margin-top: 1.4em; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 38em;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding: 3rem 0 5rem; }

.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--sand { background: var(--sand-light); border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--cream); border-top: none; }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--accent-soft); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: #c45a39;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(216, 111, 77, 0.25);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover {
  background: #08405e;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand-light) 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 { margin-bottom: 0.5em; }
.hero p.lead { margin-bottom: 1.6em; }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-item svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Provider cards ---------- */

.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.provider-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.provider-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.tag-airalo { background: var(--sand); color: var(--navy); }
.tag-holafly { background: var(--accent); color: var(--white); }

.provider-card h3 { margin-top: 0.2em; color: var(--dark); }
.provider-card .price {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5em 0 0.1em;
}
.provider-card .price-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.provider-card ul {
  padding-left: 1.1em;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
.provider-card ul li { margin-bottom: 0.35em; }

/* ---------- Comparison table ---------- */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
}

.compare-table td:first-child { font-weight: 600; color: var(--dark); width: 33%; }

.compare-table tr:nth-child(even) td { background: var(--sand-light); }

/* ---------- Callout ---------- */

.callout {
  background: var(--sand);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h4 { margin-top: 0; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Step list (install guide) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.4rem;
  min-height: 2.2rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq-item h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--dark);
}
.faq-item p { margin-bottom: 0; }

/* ---------- Disclosure ---------- */

.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  background: var(--sand-light);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-soft);
  margin: 1.5rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--sand-light);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer a { color: var(--accent-soft); }
.site-footer a:hover { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-disclosure {
  font-size: 0.85rem;
  font-style: italic;
  color: #aab2c0;
  margin-top: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.footer-nav li { margin-bottom: 0.4em; }

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid #1f2c4a;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .provider-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; gap: 0.75rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.7rem; font-size: 0.88rem; }
  .compare-table td:first-child { width: 38%; }
  .footer-grid { grid-template-columns: 1fr; }
  main { padding: 1.5rem 0 3rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
}
