/* ============================================================
   Move to Austria — static site stylesheet
   Plain CSS, no framework. Mobile-first, semantic tokens.
   ============================================================ */

:root {
  --austria-red: #C8102E;
  --austria-red-dark: #A50D26;
  --austria-dark: #1F1F1F;
  --austria-cream: #FAF7F2;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --border: #E5E5E5;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --container: 1180px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px -10px rgba(0,0,0,.12);
  --transition: 200ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: 'Noto Sans Arabic', system-ui, sans-serif; }
html[dir="rtl"] body { direction: rtl; text-align: right; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--austria-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--austria-red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .75rem; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { padding-inline-start: 1.25rem; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; max-width: var(--container); margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -.01em; }
.brand .accent { color: var(--austria-red); }
.nav-desktop { display: none; gap: 1.5rem; align-items: center; }
.nav-desktop a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-desktop a:hover { color: var(--austria-red); }
.nav-cta { background: var(--austria-red); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; font-size: .9rem; }
.nav-cta:hover { background: var(--austria-red-dark); color: #fff !important; }
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .8rem; font-size: .9rem; cursor: pointer; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle  { display: none; }
}

/* Mobile menu */
.nav-mobile { display: none; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: .65rem 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher select {
  appearance: none; background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem 2rem .4rem .9rem; font-size: .85rem; cursor: pointer; font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%231a1a1a' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat; background-position: right .8rem center;
}
html[dir="rtl"] .lang-switcher select { padding: .4rem .9rem .4rem 2rem; background-position: left .8rem center; }

/* Hero */
.hero {
  position: relative; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, #fff 0%, #faf3f4 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,16,46,.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(200,16,46,.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero p  { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--austria-red); color: #fff; }
.btn-primary:hover { background: var(--austria-red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--austria-red); color: var(--austria-red); }
.btn-arrow::after { content: "→"; }
html[dir="rtl"] .btn-arrow::after { content: "←"; }

/* Service grid */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(200,16,46,.3); }
.service-card h3 { color: var(--austria-red); }
.service-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* Trust band */
.trust { background: var(--austria-dark); color: #fff; }
.trust h2 { color: #fff; max-width: 700px; margin-bottom: 1rem; }
.trust p  { color: rgba(255,255,255,.75); max-width: 700px; font-size: 1.05rem; }

/* CTA band */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--austria-red) 0%, var(--austria-red-dark) 100%); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 1.5rem; }
.cta-band .btn { background: #fff; color: var(--austria-red); }
.cta-band .btn:hover { background: var(--austria-cream); color: var(--austria-red-dark); }

/* Generic page header (legacy) */
.page-header { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); background: var(--austria-cream); border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: .75rem; }
.page-header p  { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0; }

/* Page hero (used by all sub-pages) */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--austria-cream) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero .lead { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 700px; margin: 0; }

/* Article body */
.article-narrow { max-width: 760px; margin: 0 auto; }
.article-section + .article-section { margin-top: 2.5rem; }
.article-section h2 { color: var(--text); margin-bottom: .75rem; }
.article-section p  { color: var(--text-muted); font-size: 1.02rem; }

/* Pricing */
.grid-pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.pricing-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(200,16,46,.3); }
.pricing-card h3 { color: var(--text); margin: 0; }
.pricing-price { color: var(--austria-red); font-size: 1.75rem; font-weight: 800; margin: 0; line-height: 1; }
.pricing-duration { color: var(--text-muted); font-size: .85rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.pricing-desc { color: var(--text-muted); font-size: .95rem; margin: .5rem 0 1rem; flex: 1; }
.btn-block { width: 100%; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: .85rem; max-width: 700px; margin: 1rem auto 0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-item summary {
  font-weight: 600; font-size: 1.05rem; color: var(--text); list-style: none;
  position: relative; padding-inline-end: 2rem; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 0;
  font-size: 1.5rem; font-weight: 400; color: var(--austria-red); line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-muted); margin: .75rem 0 0; padding-inline-end: 2rem; }

/* Footer */
.site-footer { background: var(--austria-dark); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-grid a { color: rgba(255,255,255,.7); display: block; padding: .25rem 0; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 540px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: 0 20px 50px -10px rgba(0,0,0,.25); z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; margin-bottom: .9rem; color: var(--text-muted); }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { padding: .55rem 1.1rem; font-size: .85rem; }

/* Skip link for a11y */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--austria-red); color: #fff;
  padding: .5rem 1rem; z-index: 200;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ===== Blog ===== */
.grid-blog {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; color: inherit;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(200,16,46,.3); color: inherit; }
.blog-card-image {
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  background-color: var(--bg-alt);
}
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-card-body h3 { font-size: 1.1rem; line-height: 1.35; color: var(--text); margin: .25rem 0; }
.blog-card-body p  { color: var(--text-muted); font-size: .92rem; margin: 0 0 .75rem; flex: 1; }

.post-category {
  display: inline-block; background: rgba(200,16,46,.1); color: var(--austria-red);
  padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.post-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.post-meta-small { color: var(--text-muted); font-size: .82rem; display: flex; gap: .5rem; align-items: center; }
.post-dot { opacity: .5; }
.post-back { color: var(--text-muted); }
.post-back:hover { color: var(--austria-red); }

.blog-post h1 { margin-top: .5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.blog-post .lead { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; }
.post-image-wrap { margin: 2rem auto; max-width: 1100px; }
.post-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); }
.post-body h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.5rem; }
.post-body p  { color: var(--text); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.1rem; }

/* ===== Interactive components (Phase 4) ===== */

/* Generic helpers */
.text-center { text-align: center; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.brand { color: var(--austria-red); font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.container-narrow { max-width: 760px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.card.no-pad { padding: 0; }
.btn-link { background: none; border: none; color: var(--austria-red); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.btn-link:hover { color: var(--austria-red-dark); }

/* Stepper */
.stepper { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.stepper li span { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--bg-alt); color: var(--text-muted); font-weight: 700; font-size: .85rem; }
.stepper li.active { color: var(--text); }
.stepper li.active span { background: var(--austria-red); color: #fff; }
.stepper li.done span { background: var(--austria-dark); color: #fff; }

/* Tier grid (booking) */
.grid-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tier-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: start; cursor: pointer; transition: all var(--transition);
  font: inherit; color: inherit; display: flex; flex-direction: column; gap: .5rem;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(200,16,46,.3); }
.tier-card.active { border-color: var(--austria-red); box-shadow: 0 0 0 2px rgba(200,16,46,.2); }
.tier-step { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.tier-price { color: var(--austria-red); font-weight: 700; }
.tier-card h3 { margin: .25rem 0 .25rem; font-size: 1.05rem; }

/* Slot picker */
.grid-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 720px) { .grid-slots { grid-template-columns: 1fr; } }
.day-btn, .time-btn {
  display: block; width: 100%; padding: .75rem 1rem; margin-bottom: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font: inherit; color: var(--text); text-align: start;
  transition: all var(--transition);
}
.day-btn:hover, .time-btn:hover { border-color: var(--austria-red); color: var(--austria-red); }
.day-btn.active, .time-btn.active { background: var(--austria-red); color: #fff; border-color: var(--austria-red); }

/* Booking summary bar */
.bk-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 1.5rem; }
.bk-summary p { margin: 0; }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
  padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; color: var(--text); background: #fff; transition: border-color var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--austria-red); box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.checkbox-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.checkbox-row input { margin-top: .2rem; }
.form-error { background: rgba(200,16,46,.08); color: var(--austria-red-dark); border: 1px solid rgba(200,16,46,.25); padding: .65rem .85rem; border-radius: var(--radius); font-size: .9rem; }
.test-banner { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; padding: .65rem .85rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1rem; }

/* Score card (points calculator) */
.score-card { padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; transition: all var(--transition); }
.score-card.score-pass { background: #ecfdf5; border-color: #6ee7b7; }
.score-card.score-fail { background: #fef2f2; border-color: #fca5a5; }
.score-number { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--austria-red); margin: 0; }
.score-label { color: var(--text-muted); font-size: .9rem; margin: .5rem 0 .25rem; }
.score-verdict { font-weight: 700; margin: 1rem 0; }

/* Result cards */
.success-card { padding: 2rem; border-radius: var(--radius-lg); background: #ecfdf5; border: 1px solid #6ee7b7; text-align: center; }
.error-card { padding: 2rem; border-radius: var(--radius-lg); background: #fef2f2; border: 1px solid #fca5a5; text-align: center; }

/* Spinner */
.spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid var(--border); border-top-color: var(--austria-red); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
