/* ===== Variables ===== */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #0f766e;
  --color-primary-dark: #0d9488;
  --color-accent: #14b8a6;
  --color-navy: #0c4a6e;
  --color-border: #e2e8f0;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 118, 110, 0.12);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.header-phone {
  flex-shrink: 0;
  white-space: nowrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.header-social a:hover {
  color: var(--color-primary);
  background: rgba(15, 118, 110, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

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

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

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

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

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

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

.btn-full {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, #0f766e 50%, #0d9488 100%);
  opacity: 0.97;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  color: #fff;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-image {
  display: none;
}

.hero-image img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 520px;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--color-navy);
}

.hero-actions .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-navy);
}

.hero-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.scroll-icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: transparent;
  border-radius: 50%;
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Hero video (top) ===== */
.section-hero-video {
  padding: 2.5rem 0;
  background: var(--color-surface);
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--color-navy);
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Doctor Section ===== */
.section-doctor {
  background: var(--color-surface);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.doctor-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor-bio p {
  margin: 0 0 1rem;
}

.doctor-bio .highlight {
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.08) 0%, transparent 100%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  margin-top: 1rem;
}

.doctor-card {
  position: sticky;
  top: 100px;
}

.card-inner {
  background: var(--color-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.card-inner h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.card-inner p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.card-inner .address {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.link-reviews {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== Merkez Section ===== */
.section-merkez {
  background: var(--color-bg);
}

.merkez-desc {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--color-text-muted);
}

.merkez-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.feature:hover {
  box-shadow: var(--shadow);
}

.feature-icon {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.innovation-box {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.innovation-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
}

.innovation-box h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.innovation-box p {
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.innovation-box .small {
  font-size: 0.9rem;
  opacity: 0.85;
}

.innovation-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.innovation-image img {
  width: 100%;
  height: auto;
  display: block;
}

.surgery-gallery {
  margin-top: 2rem;
}

.gallery-title {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin: 0 0 1.5rem;
  text-align: center;
}

.surgery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.surgery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.surgery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.surgery-item p {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

.video-section {
  margin-top: 2.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-navy);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Varikosel Section ===== */
.section-varikosel {
  background: var(--color-surface);
}

.varikosel-content {
  max-width: 720px;
  margin: 0 auto;
}

.varikosel-block {
  margin-bottom: 2rem;
}

.varikosel-block h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

.varikosel-block p,
.varikosel-block ol,
.varikosel-block ul {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
}

.varikosel-block ol,
.varikosel-block ul {
  padding-left: 1.5rem;
}

.varikosel-block.checklist ul {
  list-style: none;
  padding-left: 0;
}

.varikosel-block.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.varikosel-block.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Öncesi Sonrası ===== */
.section-oncesonra {
  background: var(--color-bg);
}

.oncesonra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.oncesonra-list h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.oncesonra-list ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.oncesonra-list li {
  margin-bottom: 0.5rem;
}

/* ===== Testimonial ===== */
.section-testimonial {
  background: var(--color-surface);
  text-align: center;
}

.testimonial {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0;
  border: none;
}

.testimonial p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.section-contact {
  background: var(--color-bg);
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.form-message--success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(15, 118, 110, 0.3);
}

.form-message--error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

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

.contact-info {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.contact-info p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-info a {
  font-weight: 500;
}

.doktortakvimi-widget-wrap {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.doktortakvimi-widget-wrap .widget-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--color-navy);
}

.doktortakvimi-widget-wrap .zl-url {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
}

.doktortakvimi-widget-wrap .zl-url:hover {
  color: var(--color-primary-dark);
}

/* DoktorTakvimi widget iframe/embed içeriği sayfa tarafından enjekte edilir */
.doktortakvimi-widget-wrap iframe {
  max-width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.9);
  padding: 2rem 0;
}

.footer a {
  color: rgba(255,255,255,0.95);
}

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

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-contact {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.footer-legal {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

/* ===== Floating contact buttons ===== */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.float-btn-whatsapp {
  background: #25d366;
}

.float-btn-whatsapp:hover {
  background: #20bd5a;
}

.float-btn-phone {
  background: var(--color-primary);
}

.float-btn-phone:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .float-actions {
    bottom: max(5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
    gap: 0.5rem;
  }
  .float-btn {
    width: 52px;
    height: 52px;
  }
}

/* ===== Responsive ===== */
@media (min-width: 901px) {
  .hero-image {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    display: block;
    order: -1;
  }

  .hero-image img {
    margin: 0 auto;
    max-width: 280px;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .doctor-card {
    position: static;
  }

  .merkez-gallery {
    grid-template-columns: 1fr;
  }

  .innovation-content {
    grid-template-columns: 1fr;
  }

  .innovation-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .surgery-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    z-index: 999;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    visibility: visible;
  }

  .nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 1rem 0;
  }

  .header-phone {
    display: none;
  }

  .header-social {
    margin-top: 1rem;
    justify-content: center;
    gap: 1rem;
  }

  .header-social a {
    width: 44px;
    height: 44px;
    color: var(--color-navy);
  }

  .header-social a:hover {
    color: var(--color-primary);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .innovation-box {
    padding: 1.5rem 1.25rem;
  }

  .innovation-content {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}
