/* Anatolia Hospital Lara — Design System
   Theme: Deep Navy + Warm White + Brand Orange
   Fonts: Cormorant (display) + Nunito Sans (body)
*/

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

:root {
  --bg:       #FAFAF8;
  --bg-alt:   #F2F0EC;
  --navy:     #0C1A2E;
  --navy-mid: #152540;
  --ink:      #1C1C2E;
  --muted:    #5A6475;
  --orange:   #FF8724;
  --orange-d: #E07010;
  --white:    #FFFFFF;
  --border:   #E2DDD6;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;

  --r-sm:  .375rem;
  --r-md:  .75rem;
  --r-lg:  1.25rem;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .55s;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { max-width: 68ch; color: var(--muted); font-size: 1rem; }
p.lead { font-size: 1.15rem; max-width: 58ch; color: var(--ink); }

/* ── Z-index Scale ─────────────────────────────────────────────── */
:root {
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 1.1rem 0;
  transition: background .35s var(--ease-out), box-shadow .35s;
}
.site-header.scrolled {
  background: rgba(12, 26, 46, .97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: flex; gap: .25rem;
  background: rgba(255,255,255,.1);
  border-radius: 2rem;
  padding: .2rem;
}
.lang-toggle button {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: .25rem .6rem;
  border-radius: 2rem;
  transition: all .2s;
}
.lang-toggle button.active,
.lang-toggle button[aria-pressed="true"] {
  background: var(--orange);
  color: var(--white);
}

.btn-appt {
  font-size: .85rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  padding: .6rem 1.4rem;
  border-radius: 2rem;
  transition: background .2s, transform .15s;
}
.btn-appt:hover { background: var(--orange-d); transform: translateY(-1px); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/anatolia-hospital-lara-building.jpg');
  background-size: cover; background-position: center 30%;
  transform-origin: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,26,46,.88) 45%, rgba(12,26,46,.35) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,135,36,.15);
  border: 1px solid rgba(255,135,36,.4);
  border-radius: 2rem;
  padding: .4rem 1rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { color: rgba(255,255,255,.78); margin-bottom: 2.5rem; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: .95rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: .9rem 2rem; border-radius: 2rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--orange-d); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.4); color: var(--white);
  font-weight: 600; font-size: .95rem;
  padding: .9rem 2rem; border-radius: 2rem;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.hero-stats {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  z-index: 2;
}
.hero-stats .container { display: flex; gap: 2.5rem; }
.stat { border-left: 2px solid var(--orange); padding-left: 1rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--white); line-height: 1;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* ── Section base ──────────────────────────────────────────────── */
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-label {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { margin-bottom: 3rem; }

/* ── Services ──────────────────────────────────────────────────── */
.services { background: var(--white); }
.services-header { max-width: 640px; margin-bottom: 4rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,135,36,.1);
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(255,135,36,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.service-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.service-card p { font-size: .9rem; margin: 0; }

/* ── About ─────────────────────────────────────────────────────── */
.about { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-img-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-float {
  position: absolute; bottom: 2rem; left: -1.5rem;
  background: var(--orange); color: var(--white);
  border-radius: var(--r-lg); padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(255,135,36,.35);
}
.about-badge-float .num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 600; line-height: 1;
}
.about-badge-float .lbl { font-size: .8rem; font-weight: 700; opacity: .85; margin-top: .2rem; }

.about-content { padding: 1rem 0; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.25rem; }
.about-features { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.feature-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.feature-icon { color: var(--orange); font-size: 1.1rem; flex-shrink: 0; }
.feature-row span { font-weight: 600; font-size: .9rem; }

/* ── Gallery ───────────────────────────────────────────────────── */
.gallery { background: var(--navy); padding: clamp(4rem, 8vw, 7rem) 0; }
.gallery-header { color: var(--white); margin-bottom: 3rem; }
.gallery-header .section-title { color: var(--white); }
.gallery-header p { color: rgba(255,255,255,.65); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  overflow: hidden; border-radius: var(--r-md);
  cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item { aspect-ratio: 16/10; }
.gallery-item:first-child { aspect-ratio: auto; }

/* ── Why us ────────────────────────────────────────────────────── */
.why { background: var(--white); }
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem;
}
.why-card { text-align: center; padding: 2.5rem 1.5rem; }
.why-num {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 500;
  color: var(--orange); line-height: 1;
  margin-bottom: .5rem;
}
.why-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: .5rem; }
.why-card p { margin: 0 auto; text-align: center; font-size: .9rem; }

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.7); margin: 0 auto 2.5rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: #070F1C;
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo img { height: 32px; margin-bottom: 1.25rem; filter: brightness(0) invert(1) opacity(.8); }
.footer-brand p { font-size: .88rem; max-width: 26ch; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .8rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a {
  font-size: .88rem; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-contact p { font-size: .88rem; margin: 0; }
.footer-contact .phone {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 600;
  color: var(--orange); display: block; margin-bottom: .5rem;
}
.footer-bottom {
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: .5rem;
}
.disclaimer {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  padding: .75rem 1.25rem;
  font-size: .78rem; color: rgba(255,255,255,.35);
  margin-top: 1.5rem; text-align: center;
}

/* ── Page header (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 9rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--orange);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero p { color: rgba(255,255,255,.65); margin-top: .75rem; }

/* ── Services page ─────────────────────────────────────────────── */
.services-full { background: var(--white); }
.dept-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dept-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .25s, transform .25s var(--ease-out);
}
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.dept-card-body { padding: 1.5rem; }
.dept-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: .4rem; }
.dept-card p { font-size: .88rem; margin: 0; }
.dept-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,135,36,.1); color: var(--orange);
  padding: .2rem .6rem; border-radius: 2rem; margin-bottom: .75rem;
}

/* ── About page ─────────────────────────────────────────────────── */
.timeline { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--bg-alt); }
.timeline-list { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1.5rem; padding-bottom: 2.5rem; position: relative;
}
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 39px; top: 28px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-year {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 600; color: var(--orange);
  width: 80px; padding-top: .1rem;
}
.timeline-body h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: .4rem; }
.timeline-body p { font-size: .9rem; margin: 0; }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem; overflow: hidden;
}
.team-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: .25rem; }
.team-card .role { font-size: .85rem; color: var(--orange); font-weight: 600; }

/* ── Contact page ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,135,36,.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--orange);
}
.contact-item h5 { font-family: var(--font-body); font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.contact-item p { font-size: .95rem; color: var(--ink); margin: 0; }
.contact-item a { color: var(--orange); font-weight: 600; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; height: 300px; margin-top: 2rem; }
.map-frame iframe { width: 100%; height: 100%; border: none; }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.5rem;
}
.contact-form-wrap h3 { margin-bottom: .5rem; }
.form-note {
  font-size: .82rem; color: var(--muted);
  margin-bottom: 2rem; padding: .75rem 1rem;
  background: var(--bg); border-radius: var(--r-sm);
  border-left: 3px solid var(--orange);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font: inherit; font-size: .9rem; background: var(--bg);
  color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,135,36,.12);
}
textarea { min-height: 120px; resize: vertical; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* ── GSAP reveal helpers ─────────────────────────────────────────── */
.reveal { opacity: 1; }

/* ── Mobile Nav ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--navy);
    flex-direction: column; align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    z-index: calc(var(--z-sticky) + 1);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .menu-toggle { display: flex; }

  .hero-stats .container { gap: 1.5rem; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge-float { left: 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
