/* Merve Bayrakçeken Ortodonti — site styles */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #14292e;
  --muted: #56686b;
  --primary: #1c5d63;
  --primary-dark: #123f44;
  --tint: #e6f0ee;
  --accent: #b5654d;
  --accent-soft: #f4e3da;
  --line: #e7e0d4;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(20, 41, 46, 0.35);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

img {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
}

/* Marks content that is waiting for real information */
.todo {
  background: #fff4c2;
  outline: 1px dashed #c9a227;
  border-radius: 4px;
  padding: 0 0.3em;
  color: #5c4a00;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

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

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

.btn--ghost {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost:hover {
  background: var(--tint);
}

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

.btn--light:hover {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

.btn--sm {
  padding: 0.65em 1.2em;
  font-size: 0.92rem;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " \2192";
  transition: margin-left 0.2s;
}

.text-link:hover::after {
  margin-left: 4px;
}

/* Top bar */
.topbar {
  background: var(--primary-dark);
  color: #dcebe9;
  font-size: 0.88rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

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

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__phone strong {
  color: #fff;
  font-weight: 600;
}

.topbar__social {
  display: flex;
  gap: 14px;
}

.topbar svg {
  width: 18px;
  height: 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 28px;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
}

.brand__text small {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

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

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

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero__text > * {
  animation: rise 0.7s both;
}

.hero__text > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero__text > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero__text > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero__text > :nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2rem 0 2.4rem;
}

.hero__points {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(560px, 100%);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -10% -7% -10% 42%;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* Portrait frame: the photo is shown whole, at its own aspect ratio */
.portrait {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
}

.hero__badge {
  position: absolute;
  left: 24px;
  bottom: -26px;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  line-height: 1.3;
}

.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

.hero__badge span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--tint);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__head p:last-child {
  color: var(--muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.split p {
  color: var(--muted);
}

.split--media {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.media-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts {
  list-style: none;
  margin: 1.6rem 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
  color: inherit;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.card .text-link {
  color: var(--primary);
}

.cards--featured {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}

.cards--four {
  grid-template-columns: repeat(4, 1fr);
}

.card--photo {
  padding: 0;
  overflow: hidden;
}

.card--photo img {
  width: 100%;
}

/* The two featured photos share one size; the taller one is trimmed, not stretched */
.cards--featured .card--photo img {
  aspect-ratio: 1010 / 422;
  object-fit: cover;
  object-position: center 25%;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.cards--four .card__body {
  padding: 22px;
}

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--primary);
  padding-top: 20px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 24px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin: 0;
  padding-bottom: 22px;
}

/* Call-to-action band */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #c5dad7;
  max-width: 36em;
  margin: 0 auto 2rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta__wire {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: min(1100px, 130%);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.cta .container {
  position: relative;
}

/* Inner page header */
.page-hero {
  background: var(--tint);
  padding: 64px 0 56px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  margin-bottom: 0.3em;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
  margin: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: inherit;
}

/* About page */
.about {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: start;
}

.about__aside {
  position: sticky;
  top: 110px;
}

.about__aside .btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

.about__body h2 {
  font-size: 1.7rem;
  margin-top: 2.2em;
}

.about__body h2:first-child {
  margin-top: 0;
}

.about__body p {
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 20px 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.timeline__years {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.timeline strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
}

.timeline p {
  margin: 2px 0 0;
}

.about__figure {
  margin: 2.2em 0 0;
}

.about__figure img {
  width: 100%;
  border-radius: var(--radius);
}

/* Treatments page */
.treatment {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.treatment:first-child {
  border-top: 0;
  padding-top: 0;
}

.treatment:last-child {
  padding-bottom: 0;
}

.treatment__head h2 {
  font-size: 1.9rem;
}

.treatment__head p {
  color: var(--primary);
  font-weight: 500;
  margin: 0;
}

.treatment__img {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 24px;
}

.treatment__body p {
  color: var(--muted);
}

.treatment__body h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Contact page */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 22px;
}

.contact__list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__list h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 2px;
}

.contact__list p {
  margin: 0;
}

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

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

.map__link {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.form h2 {
  font-size: 1.6rem;
  margin: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
}

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

.form__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0e2f33;
  color: #b9cfcc;
  padding: 64px 0 0;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .brand__mark {
  background: #fff;
  color: var(--primary-dark);
}

.site-footer .brand__text small {
  color: #9fc4c0;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
  color: #fff;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 16px;
    justify-content: center;
  }

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

  .hero__grid,
  .split,
  .about,
  .treatment,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    width: 100%;
    margin-bottom: 26px;
  }

  .hero__badge {
    left: 16px;
  }

  .about__aside {
    position: static;
    max-width: 420px;
  }

  .treatment {
    gap: 16px;
    padding: 40px 0;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .topbar__phone span {
    display: none;
  }

  .cards,
  .steps,
  .form__row,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
