/* ============================================================
   EUROPEAN CRIBS — GLOBAL STYLESHEET
   Design System: Clean, minimal, Base44/EuropeanListings style
   ============================================================ */

:root {
  /* Colors */
  --white:        #ffffff;
  --bg:           #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e8edf2;
  --border-light: #f1f5f9;

  /* Brand */
  --blue:         #5595b6;
  --blue-dark:    #3a7a9c;
  --blue-pale:    #eef5fa;
  --blue-light:   #dbeef7;

  /* Text */
  --ink:          #0f172a;
  --ink-mid:      #334155;
  --ink-light:    #64748b;
  --ink-faint:    #94a3b8;

  /* Spacing */
  --section-py:   120px;
  --card-radius:  16px;
  --btn-radius:   8px;
  --container:    1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }
p  { font-size: 15px; line-height: 1.75; color: var(--ink-light); }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
@media(max-width: 768px) { .container { padding: 0 24px; } }

/* ── SECTION ── */
section {
  padding: var(--section-py) 0;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-light);
  line-height: 1.75;
  max-width: 560px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-mid); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,23,42,0.2); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(85,149,182,0.3); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink-light);
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--ink); background: var(--bg); border-radius: var(--btn-radius); }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,0.08);
  transform: translateY(-2px);
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-blue { background: var(--blue-pale); color: var(--blue-dark); }
.badge-dark { background: var(--ink); color: var(--white); }
.badge-light { background: var(--bg); color: var(--ink-light); border: 1px solid var(--border); }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 140px 48px 80px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.legal-page h2 { font-size: 22px; margin: 48px 0 12px; }
.legal-page p  { margin-bottom: 16px; }
.legal-page ul { margin: 0 0 16px 24px; }
.legal-page li { margin-bottom: 8px; font-size: 15px; color: var(--ink-light); line-height: 1.75; }
.legal-page a  { color: var(--blue); }
.legal-updated { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 48px; padding-bottom: 24px; border-bottom: 2px solid var(--blue-pale); display: block; }

/* ── FOOTER ── */
.ec-footer-new { background: var(--bg); border-top: 1px solid var(--border-light); padding: 72px 0 40px; }
.ec-footer-new-inner { max-width: var(--container); margin: 0 auto; padding: 0 48px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; border-bottom: 1px solid var(--border-light); }
.ec-footer-new-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.ec-footer-new-logo em { font-style: italic; color: var(--blue); }
.ec-footer-new-tagline { font-size: 14px; color: var(--ink-faint); line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.ec-footer-new-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ec-footer-new-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.ec-footer-new-col a { display: block; font-size: 14px; color: var(--ink-light); margin-bottom: 10px; transition: color 0.2s; }
.ec-footer-new-col a:hover { color: var(--blue); }
.ec-footer-new-bottom { max-width: var(--container); margin: 28px auto 0; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.ec-footer-new-copy { font-size: 13px; color: var(--ink-faint); }
.ec-footer-new-disclaimer { font-size: 12px; color: var(--border); }

@media(max-width: 900px) {
  .ec-footer-new-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 40px; }
  .ec-footer-new-bottom { padding: 0 24px; flex-direction: column; gap: 8px; text-align: center; }
}
@media(max-width: 480px) {
  .ec-footer-new-links { grid-template-columns: 1fr; }
  .legal-page { padding: 120px 24px 60px; }
}

/* em in headlines: keep italic but Inter font */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: #5595b6;
}

/* ── LAYOUT ── */
body { padding-top: 68px; }


/* ── PAGE HERO (shared across content pages) ── */
.page-hero {
  padding: 100px 48px 80px;
  text-align: center;
  background: linear-gradient(160deg, #f0f7ff 0%, #fafbff 50%, #f5f0ff 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(85,149,182,0.1) 0%, transparent 70%);
  top: -100px; right: -50px;
  pointer-events: none;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.page-hero h1, .page-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 800px;
}
.page-hero h1 em, .page-hero-title em {
  font-style: italic;
  color: var(--blue);
}
.page-hero-sub {
  font-size: 17px; font-weight: 400;
  color: var(--ink-light); line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ── ARTICLE / BLOG (shared across blog posts) ── */
.article-hero {
  background: linear-gradient(135deg, #5595b6 0%, #3a7a9c 100%);
  padding: 80px 6vw 60px;
  text-align: center;
}
.article-cat {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px; font-weight: 600;
}
.article-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  color: #fff; line-height: 1.1;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
  max-width: 800px;
}
.article-meta { font-size: 13px; color: rgba(255,255,255,0.6); }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.article-body h2 {
  font-size: 32px; font-weight: 300;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 24px; font-weight: 300;
  margin: 36px 0 12px;
}
.article-body p,
.article-body li {
  font-size: 16px; line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--blue);
  border-bottom: 1px solid rgba(85,149,182,0.3);
}
.article-body a:hover { border-color: var(--blue); }

.tip-box {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.tip-box strong {
  color: var(--blue);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.tip-box p { margin: 0; font-size: 15px; }

.article-cta {
  background: var(--blue);
  padding: 48px 24px;
  text-align: center;
  margin-top: 64px;
  border-radius: 12px;
}
.article-cta h3 {
  font-size: 28px; font-weight: 300;
  color: #fff; margin-bottom: 12px;
}
.article-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px; font-size: 15px;
}
.article-cta a {
  display: inline-block;
  padding: 13px 32px;
  background: #fff; color: var(--blue);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center; gap: 8px;
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--blue-dark); }

@media(max-width: 768px) {
  .article-hero { padding: 60px 24px 40px; }
  .article-body { padding: 40px 24px 60px; }
}

/* ── AUTH PAGES (login/register/reset-password) ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6fa;
  padding: 120px 24px 40px;
}
.auth-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  border-radius: var(--card-radius);
}
.auth-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--ink);
}
.auth-logo em { color: var(--blue); font-style: italic; }
.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.auth-sub {
  text-align: center;
  color: var(--ink-light);
  font-size: 14px;
  margin-bottom: 32px;
}
.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--blue);
}
.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.auth-btn:hover { background: var(--ink-mid); }

.auth-divider {
  text-align: center;
  margin: 24px 0;
  font-size: 12px;
  color: var(--ink-faint);
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-google-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
.auth-google-btn:hover { background: var(--blue-pale); }

.auth-error, .auth-success {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}
.auth-error   { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }
.auth-success { background: #F0FDF4; border-color: #BBF7D0; color: #16A34A; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media(max-width: 768px) {
  .cta-actions { flex-direction: column; align-items: center; }
}
