/* =========================================================
   Ferizli 3 No'lu Aile Sağlığı Merkezi — Site Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #F3EFE6;
  --paper-alt: #EAE1CE;
  --ink: #16241F;
  --ink-soft: #4B5D56;
  --teal: #0E5C57;
  --teal-deep: #093C39;
  --tile-red: #B33F2E;
  --gold: #C79A45;
  --sage: #DCE7DF;
  --line: rgba(22, 36, 31, 0.16);
  --radius: 6px;
  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--teal); }
a:hover { color: var(--tile-red); }

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

img { max-width: 100%; display: block; }

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

/* ---------- Divider ---------- */

.kilim-divider {
  height: 18px;
  background: url('../assets/kilim-divider.svg') repeat-x center / 24px 18px;
}

/* ---------- Top utility bar ---------- */

.topbar {
  background: var(--teal-deep);
  color: #EDE7D6;
  font-size: 0.92rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a { color: #EDE7D6; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tel { font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Header / nav ---------- */

header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .brand-logo { height: 40px; }
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 1.15rem;
  line-height: 1.25;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--tile-red);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--tile-red);
  color: #FBF6EC;
}
.btn-primary:hover { background: #9A3423; color: #FBF6EC; }

.btn-outline {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-outline:hover { background: var(--teal-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  color: var(--tile-red);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.hero h1 { margin-bottom: 0.35em; }

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(9,60,57,0.55), rgba(9,60,57,0.92)),
              url('../assets/hero-exterior.jpg') center / cover no-repeat;
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-panel h3 {
  color: var(--paper);
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 14px;
  position: relative;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-panel li {
  padding: 10px 0;
  border-top: 1px solid rgba(243, 239, 230, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
}
.hero-panel li:first-child { border-top: none; }
.hero-panel li span:last-child { color: var(--gold); font-weight: 600; text-align: right; }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.alt { background: var(--sage); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head p { margin: 6px 0 0; color: var(--ink-soft); }

/* Service list (not a card grid — a structured, scannable list) */

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-row h3 { margin: 0; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; }
.service-row p { margin: 0; color: var(--ink-soft); }

/* Doctor / staff cards */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.staff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.staff-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.staff-card h3 { margin-bottom: 2px; }
.staff-card .role { color: var(--tile-red); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.staff-card .unit { color: var(--ink-soft); font-size: 0.92rem; }

/* Hours table */

table.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  background: var(--paper);
}

table.hours caption { text-align: left; font-weight: 600; margin-bottom: 12px; color: var(--ink-soft); }

table.hours th, table.hours td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

table.hours th {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-weight: 600;
  background: var(--sage);
}

table.hours tr:last-child td { border-bottom: none; }

.note-box {
  border-left: 4px solid var(--gold);
  background: var(--paper-alt);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Health information banner (T.C. Sağlık Bakanlığı / KETEM görselleri) */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.info-card p {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: none;
}

@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid img,
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sage);
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1.5px dashed var(--line);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:first-child { border-top: none; }

.contact-list .label {
  display: block;
  font-size: 0.85rem;
  color: var(--tile-red);
  font-weight: 600;
  margin-bottom: 4px;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* CTA band */

.cta-band {
  background: var(--teal-deep);
  color: var(--paper);
  text-align: center;
  padding: 48px 0;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #C9D8D3; margin: 0 auto 24px; }
.cta-band .btn-primary { background: var(--tile-red); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #C9D3CD;
  padding: 44px 0 24px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h4 { color: var(--paper); font-size: 1rem; margin-bottom: 12px; }
footer.site-footer a { color: #C9D3CD; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(201, 211, 205, 0.2);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #93A199;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  header.site-header { position: relative; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
