/* ==========================================================================
   Alperen Şahin — Odyolog | Audiologist
   Design tokens
   ========================================================================== */
:root {
  --navy: #1b2a4a;
  --navy-dark: #10192e;
  --gold: #c6ae83;
  --gold-light: #ddc9a3;
  --magenta: #d1007e;
  --magenta-light: #ff6fae;
  --orange: #f7941d;
  --orange-dark: #f15a24;
  --red-cta: #a52226;
  --red-cta-dark: #841a1d;
  --bg-light: #f4f4f4;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-body: #333333;
  --text-muted: #6b6b6b;
  --border-light: #e4e4e4;

  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container-max: 1280px;
  --header-h: 104px;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(20, 30, 60, 0.12);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================================================
   Top accent bar
   ========================================================================== */
.top-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--magenta-light) 55%, var(--magenta) 100%);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  background: var(--navy);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
  max-width: 900px;
  margin-inline: auto;
}

.main-nav ul {
  display: flex;
  width: 100%;
}

.main-nav li { flex: 1; }

.main-nav a {
  display: block;
  text-align: center;
  padding: 0.9rem 1rem;
  color: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background: rgba(255, 255, 255, 0.08); }

.main-nav li.active a {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
}

.main-nav li.nav-cta a {
  background: var(--gold-light);
  color: var(--navy-dark);
  font-weight: 600;
}

.main-nav li.nav-cta a:hover { background: var(--gold); }

.header-photo {
  flex-shrink: 0;
}

.header-photo img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); background: var(--navy); }
.nav-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); background: var(--navy); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-outline {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  text-transform: uppercase;
}

.btn-outline:hover { border-color: var(--gold); }

.btn-red {
  background: var(--red-cta);
  color: var(--bg-white);
}

.btn-red:hover { background: var(--red-cta-dark); }

.btn-navy {
  background: var(--navy);
  color: var(--bg-white);
  width: 100%;
  border-radius: 6px;
  padding: 1.1rem;
  text-transform: none;
  font-size: 1rem;
}

.btn-navy:hover { background: var(--navy-dark); }

.btn-whatsapp {
  background: var(--red-cta);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
}

.btn-whatsapp:hover { background: var(--red-cta-dark); }

/* ==========================================================================
   Hero (Ana Sayfa)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100vh - var(--header-h));
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-media {
  position: relative;
}

.hero-media .photo-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
}

.hero-copy {
  background: linear-gradient(135deg, #d9dde3 0%, #cfd3d8 30%, var(--gold-light) 75%, var(--gold) 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.5rem);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--text-dark);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
}

.hero-actions .btn-outline {
  padding: 1.15rem 1.5rem;
}

/* ==========================================================================
   Generic page hero / breadcrumb
   ========================================================================== */
.breadcrumb {
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 0;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumb a { color: var(--text-dark); }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--text-muted); }
.breadcrumb .current { color: var(--text-muted); font-weight: 400; }

.page-heading {
  text-align: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 1rem;
}

.page-heading h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-dark);
}

/* ==========================================================================
   About page (Hakkımda)
   ========================================================================== */
.about-section {
  position: relative;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ffd7c2 0%, #ffe9e0 22%, #f2f2f2 45%, #f2f2f2 70%, #bfe6fb 100%);
  z-index: 0;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.about-grid .about-photo img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 5px solid var(--navy-dark);
}

.about-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.about-copy p { margin-bottom: 1rem; color: var(--text-body); }

.social-row {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-row a:hover { background: var(--navy); color: var(--bg-white); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

.journey-section {
  position: relative;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
}

.journey-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffd7c2 0%, #fff3ee 30%, #f4f4f4 55%, #cdeeff 100%);
  z-index: 0;
}

.journey-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 980px;
  margin-inline: auto;
}

.journey-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.journey-inner p { margin-bottom: 1.25rem; color: var(--text-body); }

.contact-teaser {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.contact-teaser-inner {
  max-width: 980px;
  margin-inline: auto;
}

.contact-teaser h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-teaser p { max-width: 60ch; margin-bottom: 1.5rem; }

.contact-teaser .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.contact-links .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.contact-links svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
  flex-shrink: 0;
}

.contact-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   İşitme Cihazları — brand grid
   ========================================================================== */
.brands-hero {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.brands-hero h1 {
  font-family: var(--font-serif);
  color: var(--bg-white);
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 1000px;
  margin-inline: auto;
}

.brand-tile {
  background: var(--bg-white);
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.18);
}

.brand-tile img { max-height: 100%; object-fit: contain; }

/* ==========================================================================
   Ürünler — brand product listing
   ========================================================================== */
.brand-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.brand-pills a {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.brand-pills a:hover {
  background: var(--navy);
  color: var(--bg-white);
}

.brand-products {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  border-top: 1px solid var(--border-light);
}

.brand-products:first-of-type { border-top: none; }

.brand-products-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.brand-products-heading img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
}

.brand-products-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
  cursor: zoom-in;
}

.product-card:hover { transform: translateY(-4px); }

.product-card .product-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.product-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card .product-label {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.product-soon {
  background: var(--bg-light);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Product lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(10, 15, 28, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
  max-width: min(92vw, 760px);
  text-align: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  margin-inline: auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-caption { margin-top: 1.25rem; }

.lightbox-label {
  display: block;
  color: var(--bg-white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.lightbox-counter {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-white);
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close {
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.lightbox-prev { left: clamp(0.5rem, 3vw, 1.5rem); }
.lightbox-next { right: clamp(0.5rem, 3vw, 1.5rem); }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-img { max-height: 50vh; }
}

/* ==========================================================================
   Hizmetlerimiz (Services / Randevu Al)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .service-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.9rem;
}

.service-card hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.service-card .btn { align-self: flex-start; }

/* ==========================================================================
   Tinnitus page (reuses about-style layout)
   ========================================================================== */
.info-section {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 900px;
  margin-inline: auto;
}

.info-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.info-section p { margin-bottom: 1.1rem; }

.info-list {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.9rem;
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
}

.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-top: 2.5rem;
}

.cta-banner p {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   İletişim (Contact)
   ========================================================================== */
.contact-page {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--container-max);
  margin-inline: auto;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
}

.contact-info .divider {
  width: 60px;
  border-top: 2px solid var(--text-dark);
  margin: 1.75rem 0;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-info p { margin-bottom: 1.25rem; }
.contact-info .note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  background: var(--bg-white);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

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

.map-embed {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-light);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.site-footer .social-row { justify-content: center; margin-bottom: 1.25rem; }

.site-footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer .footer-meta a { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-photo { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
    max-width: none;
  }

  .site-header.nav-open .main-nav ul {
    flex-direction: column;
  }

  .site-header.nav-open .main-nav a { padding: 1rem 1.5rem; text-align: left; }

  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-photo { max-width: 420px; margin-inline: auto; width: 100%; }

  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }

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

  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .brand-grid { grid-template-columns: 1fr; }
  .contact-teaser .contact-links { gap: 1rem 2rem; }

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