/* ============================================================
   Doç. Dr. Fidan Alakuş Sabuncuoğlu — Ortodonti
   Design system: tokens, layout, components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --color-bg: #FAF8F5;
  --color-bg-alt: #F2EFE9;
  --color-bg-deep: #16324A;
  --color-text: #20221F;
  --color-text-soft: #4A4B47;
  --color-text-on-deep: #F2EFE9;
  --color-border: #E4DFD6;
  --color-accent: #16324A;
  --color-accent-soft: #E8EDEF;
  --color-white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --space-8: 8.5rem;

  /* Layout */
  --content-width: 1180px;
  --text-width: 680px;
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ----- Typography ----- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.08; font-weight: 500; }
h2, .h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.18; }
h3, .h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.lede {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: var(--text-width);
  line-height: 1.6;
}
p { color: var(--color-text-soft); max-width: var(--text-width); }
p.wide { max-width: none; }
.text-block > * + * { margin-top: var(--space-3); }
.text-block h3 { margin-top: var(--space-5); color: var(--color-text); }
.text-block ul { margin-top: var(--space-2); }
.text-block li {
  position: relative;
  padding-left: 1.4em;
  color: var(--color-text-soft);
}
.text-block li + li { margin-top: 0.6em; }
.text-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ----- Layout helpers ----- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--space-5); }
}
section { padding-block: var(--space-6); }
section.tight { padding-block: var(--space-5); }
.section-head { max-width: var(--text-width); margin-bottom: var(--space-5); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.bg-alt { background: var(--color-bg-alt); }
.bg-deep {
  background:
    radial-gradient(720px 340px at 15% 0%, rgba(255,255,255,0.06), transparent 60%),
    var(--color-bg-deep);
  color: var(--color-text-on-deep);
}
.bg-deep h2, .bg-deep h3 { color: var(--color-text-on-deep); }
.bg-deep p { color: #C9D3D8; }
.divider { height: 1px; background: var(--color-border); border: 0; margin: 0; }

/* ----- Buttons & links ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 150ms var(--ease), box-shadow 180ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); box-shadow: 0 1px 2px rgba(22,50,74,0.05); }
.btn-primary:hover { background: #0F2333; box-shadow: 0 10px 24px -8px rgba(22,50,74,0.55); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-outline { border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent-soft); transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0) scale(0.97); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--color-text-on-deep); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-1px); }
.btn-ghost-light:active { transform: translateY(0) scale(0.97); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease), gap 180ms var(--ease);
}
.link-arrow:hover { border-color: var(--color-accent); gap: 0.6em; }
.link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 220ms var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(22,50,74,0.18); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 76px;
  transition: height 220ms var(--ease);
}
.site-header.is-scrolled .container { height: 66px; }
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; transition: transform 180ms var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-logo { height: 56px; width: auto; display: block; transition: height 220ms var(--ease); }
@media (max-width: 479px) { .brand-logo { height: 42px; } }
.site-header.is-scrolled .brand-logo { height: 46px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
  color: var(--color-text);
}
.brand-text strong { display: block; font-weight: 600; }
.brand-text span { display: block; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); }

.nav-desktop { display: none; }
.nav-desktop > ul { display: flex; align-items: center; gap: var(--space-4); }
.nav-desktop a { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--color-text-soft); transition: color 150ms var(--ease); }
.nav-desktop > ul > li > a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--color-accent);
  transition: right 220ms var(--ease);
}
.nav-desktop > ul > li > a:hover::after,
.nav-desktop > ul > li > a[aria-current="page"]::after { right: 0; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--color-text); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 6px);
  width: 560px;
  max-width: 82vw;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 24px 56px rgba(22, 50, 74, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.6rem; }
.dropdown a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.92rem;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.dropdown a svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--color-accent); }
.dropdown a:hover { background: var(--color-bg-alt); transform: translateX(2px); }
.dropdown .dropdown-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem; padding-top: 0.9rem;
  font-weight: 600; color: var(--color-accent);
  justify-content: space-between;
}
.dropdown .dropdown-all svg:last-child { width: 14px; height: 14px; margin-left: auto; }

.header-cta { display: none; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile nav panel */
.nav-mobile {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--color-bg);
  z-index: 49;
  overflow-y: auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile > ul { display: flex; flex-direction: column; }
.nav-mobile > ul > li { border-bottom: 1px solid var(--color-border); }
.nav-mobile > ul > li > a, .nav-mobile .accordion-trigger { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.05rem; font-weight: 500; }
.nav-mobile .sub-list { display: none; padding: 0 0.25rem 1rem 1rem; }
.nav-mobile .sub-list.is-open { display: block; }
.nav-mobile .sub-list a { display: block; padding: 0.55rem 0; color: var(--color-text-soft); font-size: 0.96rem; }
.nav-mobile .accordion-trigger svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.nav-mobile .accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-mobile .mobile-cta { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* ----- Hero ----- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 760px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
@media (min-width: 900px) {
  .hero .container { max-width: none; margin-inline: 0; padding-inline: var(--space-6); }
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 26%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,18,21,0.86) 0%, rgba(14,18,21,0.74) 38%, rgba(14,18,21,0.5) 58%, rgba(14,18,21,0.2) 78%, rgba(14,18,21,0.05) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: var(--space-7); }
.hero-content .eyebrow { color: #D7DEE1; }
.hero-content h1 { color: #fff; max-width: 12ch; animation: heroRise 900ms var(--ease) both; }
.hero-content .lede { color: #E7EAE8; margin-top: var(--space-3); animation: heroRise 900ms var(--ease) 120ms both; }
.hero-content .eyebrow { animation: heroRise 900ms var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-4); animation: heroRise 900ms var(--ease) 220ms both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-content .lede, .hero-content .eyebrow, .hero-actions { animation: none; }
}
.hero-badges { position: relative; z-index: 1; display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-5); }
.hero-badge {
  display: flex; align-items: center; gap: 0.65rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  animation: heroRise 900ms var(--ease) 340ms both;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #fff; line-height: 1; }
.hero-badge span { display: block; font-size: 0.72rem; letter-spacing: 0.04em; color: #CBD5D8; margin-top: 0.2rem; }
@media (min-width: 640px) { .hero-media img { object-position: 84% 20%; } }

/* ----- About page hero ----- */
.about-hero { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 780px) { .about-hero { grid-template-columns: 1.2fr 1fr; } }
.about-portrait { position: relative; max-width: 340px; margin-inline: auto; }
@media (min-width: 780px) { .about-portrait { margin-inline: 0 0 0 auto; } }
.about-badge {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  box-shadow: 0 20px 40px -16px rgba(22,50,74,0.28);
}
.about-badge .img-frame { width: 40px; height: 53px; flex-shrink: 0; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--color-text); line-height: 1; }
.about-badge span { display: block; font-size: 0.7rem; color: var(--color-text-soft); margin-top: 0.2rem; }
@media (max-width: 479px) { .about-badge { left: 0.5rem; bottom: -1.2rem; padding: 0.5rem 0.8rem 0.5rem 0.5rem; } }

/* ----- Page header (non-home pages) ----- */
.page-header { padding-block: var(--space-6) var(--space-5); border-bottom: 1px solid var(--color-border); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4em; font-size: 0.85rem; color: var(--color-text-soft); margin-bottom: var(--space-3); }
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--color-border); }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

/* ----- Treatment page hero visual (icon-in-blob) ----- */
.tx-hero { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }
@media (min-width: 780px) { .tx-hero { grid-template-columns: 1.3fr 1fr; } }
.tx-visual { display: flex; justify-content: center; }
@media (min-width: 780px) { .tx-visual { justify-content: flex-end; } }
.tx-visual-shape {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, var(--color-accent-soft), var(--color-bg-alt) 72%);
  border: 1px solid var(--color-border);
}
.tx-visual-shape::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  opacity: 0.6;
}
.tx-visual-shape svg { width: 42%; height: 42%; color: var(--color-accent); }
@media (min-width: 480px) { .tx-visual-shape { width: 240px; height: 240px; } }
.tx-visual-photo {
  width: 100%;
  max-width: 300px;
  box-shadow: 0 24px 48px -20px rgba(22, 50, 74, 0.32);
}
@media (min-width: 480px) { .tx-visual-photo { max-width: 340px; } }

/* ----- Section divider visual ----- */
.divider-visual { display: flex; align-items: center; gap: var(--space-3); margin-block: var(--space-2) var(--space-4); max-width: var(--text-width); }
.divider-visual-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.divider-visual-icon svg { width: 24px; height: 24px; }
.divider-visual hr { flex: 1; border: 0; height: 1px; background: var(--color-border); }

/* ----- Cards ----- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.tx-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.tx-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(22, 50, 74, 0.28);
}
.tx-card:hover .tx-card-icon { background: var(--color-accent); color: #fff; }
.tx-card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.tx-card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tx-card-body h3 { font-size: 1.15rem; }
.tx-card-body p { font-size: 0.95rem; margin: 0; }
.tx-card-body .link-arrow { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; }
.tx-card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25em 0.7em;
  border-radius: 999px;
}

.people-split { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .people-split { grid-template-columns: 1fr 1fr; } }
.people-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.people-card h3 { margin-bottom: 0.5rem; }
.people-card ul { margin-top: var(--space-2); }

/* ----- Process steps ----- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-4); counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-3); } }
.step { counter-increment: step; position: relative; padding-top: 0.2rem; }
.step-num {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-accent);
  background: var(--color-white);
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  margin-bottom: 0.9rem;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
@media (min-width: 780px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute; top: 23px; left: calc(50% + 34px); right: calc(-50% + 34px);
    height: 1px; background: var(--color-border);
  }
}
.step:hover .step-num { background: var(--color-accent); color: #fff; }
.step h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; }

/* ----- FAQ / accordion ----- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1.3rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 200ms var(--ease); color: var(--color-accent); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 260ms var(--ease); }
.faq-a-inner { padding-bottom: 1.3rem; }
.faq-a p { font-size: 0.98rem; }
.faq-a p + p { margin-top: 0.8rem; }

/* ----- Publications accordion ----- */
.pub-accordion { max-width: 900px; margin-inline: auto; }
.pub-item .faq-q { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; }
.pub-count { font-weight: 400; color: var(--color-text-soft); margin-left: 0.35em; }
.pub-list { display: flex; flex-direction: column; gap: 0.85rem; }
.pub-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  padding-left: 1.3em;
  position: relative;
}
.pub-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-border);
}

/* ----- Comparison table ----- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table caption { text-align: left; font-weight: 600; margin-bottom: 0.6rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.compare-table th { font-family: var(--font-display); font-weight: 500; color: var(--color-text); }
.compare-table td { color: var(--color-text-soft); }
.table-scroll { overflow-x: auto; }

/* ----- FAQ page layout ----- */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
@media (min-width: 860px) { .faq-layout { grid-template-columns: 1fr 300px; } }
.faq-sidebar { position: sticky; top: 96px; }
.faq-sidebar .img-frame { max-width: 160px; margin-inline: auto; }

/* ----- Empty state ----- */
.empty-state { max-width: 460px; margin-inline: auto; text-align: center; padding-block: var(--space-4); }
.empty-state-icon {
  width: 64px; height: 64px; margin-inline: auto var(--space-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent);
}
.empty-state p { margin-inline: auto; margin-top: 0.8rem; }
.empty-state .hero-actions { margin-top: var(--space-4); }

/* ----- Contact block ----- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list dt { font-weight: 600; color: var(--color-text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--space-3); }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 0.3rem 0 0; color: var(--color-text-soft); }
.map-frame { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ----- Video embed (16:9, responsive) ----- */
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg-alt); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--color-text-soft); font-size: 0.9rem; text-align: center; padding: var(--space-3); }

/* ----- Footer ----- */
.site-footer {
  background: #12293D;
  color: #C9D3D8;
  padding-block: var(--space-5) var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-3); } }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { font-size: 0.92rem; color: #C9D3D8; transition: color 150ms var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-brand p { color: #A9B7BD; font-size: 0.92rem; max-width: 34ch; margin-top: 0.9rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-2); }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; color: #93A3AA; }
.footer-notice { font-size: 0.74rem; line-height: 1.7; color: #93A3AA; max-width: 640px; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.1); }
.legal-strip { background: var(--color-bg-alt); padding-block: var(--space-3); }
.legal-strip p { font-size: 0.78rem; line-height: 1.6; color: var(--color-text-soft); max-width: none; margin-inline: 0; text-align: left; }
.legal-strip p strong { color: var(--color-text); font-weight: 600; }

/* ----- Image frames (fixed aspect ratio, uniform crop) ----- */
.img-frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-bg-alt); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame.ratio-portrait { aspect-ratio: 3/4; }
.img-frame.ratio-tall { aspect-ratio: 4/5; }
.img-frame.ratio-square { aspect-ratio: 1/1; }
.img-frame.ratio-wide { aspect-ratio: 16/10; }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Utility ----- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff; padding: 0.8em 1.2em; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.disclaimer { font-size: 0.85rem; color: var(--color-text-soft); border-top: 1px solid var(--color-border); padding-top: var(--space-3); margin-top: var(--space-3); }
.center-text { text-align: center; margin-inline: auto; }
