/* ============================================
   smile-antalya.com — Design System
   Premium Dental Tourism Guide
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0A7B6E;
  --primary-dark: #065F54;
  --primary-light: #B8E0D9;
  --cta: #E8614D;
  --cta-hover: #D4503D;
  --bg: #F5F0EB;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2D9CF;
  --shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.1);
  --whatsapp: #25D366;
  --whatsapp-hover: #1DA851;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1140px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(15px, 1.6vw, 17px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Spacing --- */
section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-white { background: var(--bg-white); }
.section-sand { background: var(--bg); }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition);
}

.lang-btn:hover { border-color: var(--primary); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.lang-dropdown a:hover { background: var(--bg); }
.lang-dropdown a.active { color: var(--primary); font-weight: 600; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* --- Hero Section --- */
.hero {
  padding-top: 140px;
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--bg-white);
  text-align: center;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Trust Indicators below Hero */
.trust-row {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* --- Treatment Cards --- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.treatment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

a.treatment-card {
  text-decoration: none;
  color: inherit;
}

.treatment-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.treatment-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.treatment-card h3 { margin-bottom: 8px; }

.treatment-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}

.treatment-price {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  margin-top: auto;
  border-radius: 50px;
}

/* --- Price Comparison Table --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table thead {
  background: var(--primary);
  color: #fff;
}

.price-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.price-table tbody tr:hover {
  background: rgba(10, 123, 110, 0.03);
}

.price-table .price-old {
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-table .price-antalya {
  color: var(--primary);
  font-weight: 700;
}

.price-table .price-save {
  color: var(--cta);
  font-weight: 700;
}

/* --- How It Works Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 auto 16px;
}

.step h4 { margin-bottom: 8px; }

.step p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Connecting line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--border);
}

/* --- Why Antalya Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.why-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

.why-number {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image svg {
  width: 80px;
  height: 80px;
  color: var(--primary);
  opacity: 0.5;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.form-submit:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success svg { width: 48px; height: 48px; color: var(--primary); margin-bottom: 16px; }

.contact-info h3 { margin-bottom: 16px; }

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Cookie Consent Banner --- */
#cookieBanner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  z-index: 950;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

#cookieBanner span { max-width: 700px; }

#cookieOk {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

#cookieOk:hover { background: var(--primary-dark); }

[dir="rtl"] #cookieBanner { flex-direction: row-reverse; }

@media (max-width: 768px) {
  #cookieBanner { flex-direction: column; text-align: center; gap: 10px; padding: 16px; }
}

/* --- Legal Pages (scoped to .legal-page) --- */
.legal-page h2 { margin-top: 32px; margin-bottom: 12px; }
.legal-page h3 { margin-top: 24px; margin-bottom: 8px; font-size: 18px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; color: var(--text-secondary); }
.legal-page ul li { margin-bottom: 6px; font-size: 15px; }
.legal-page p + p { margin-top: 12px; }

/* --- 404 Page --- */
.not-found {
  text-align: center;
  padding: 180px 24px 100px;
}

.not-found h1 { font-size: clamp(48px, 8vw, 80px); color: var(--primary-light); margin-bottom: 16px; }
.not-found p { color: var(--text-secondary); font-size: 18px; margin-bottom: 32px; }

/* --- Data Charts (CSS-only, no images) --- */
.chart-group { margin: 32px 0; }
.chart-group-title { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }

.chart-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-align: right; }
.chart-track { background: var(--border); border-radius: 6px; height: 28px; overflow: hidden; position: relative; }
.chart-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: width 0.8s ease;
}
/* Data Viz Palette — warm+cool mix, colorblind-safe, healthcare-trust */
.chart-fill.primary { background: #0A7B6E; }       /* Teal — our brand, positive/Antalya */
.chart-fill.compare { background: #7C8DB5; }        /* Slate blue — neutral comparison */
.chart-fill.warm { background: #E89B4D; }           /* Warm amber — attention, moderate */
.chart-fill.alert { background: #C95D4F; }          /* Muted coral — caution, not screaming red */
.chart-fill.success { background: #3BA582; }         /* Soft green — safe, positive */
.chart-fill.muted { background: #B8C1CC; }           /* Light gray — background, inactive */
.chart-value { font-size: 14px; font-weight: 600; color: var(--text); }

.chart-source {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}
.chart-source a { color: var(--primary); }

/* Stat Cards Row */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

a.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-source {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Risk Matrix */
.risk-matrix { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.risk-matrix th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.risk-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.risk-matrix tbody tr:hover { background: rgba(10,123,110,0.03); }
/* Colorblind-safe risk colors — NOT pure red/green */
.risk-high { color: #C95D4F; font-weight: 600; }    /* Muted coral — distinguishable */
.risk-medium { color: #D4882B; font-weight: 600; }  /* Deep amber — warm warning */
.risk-low { color: #2D8B70; font-weight: 600; }     /* Deep teal — safe, not pure green */

@media (max-width: 768px) {
  .chart-bar-row { grid-template-columns: 100px 1fr 80px; gap: 8px; }
  .chart-label { font-size: 12px; }
  .chart-fill { font-size: 11px; padding: 0 6px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .risk-matrix { font-size: 12px; }
  .risk-matrix th, .risk-matrix td { padding: 8px; }
}

@media (max-width: 480px) {
  .chart-bar-row { grid-template-columns: 80px 1fr 60px; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

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

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--primary-light); }

.footer p {
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* --- Buttons Generic --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* --- RTL Support (Arabic) --- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero { text-align: center; }
[dir="rtl"] .faq-question { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .step:not(:last-child)::after { left: auto; right: calc(50% + 36px); }
[dir="rtl"] .footer-grid { direction: rtl; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .lang-switcher { order: -1; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .treatments-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .why-grid { grid-template-columns: 1fr; }

  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 12px; }

  .trust-row { gap: 16px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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