/* ============================================================
   Op. Dr. Cenk Teker — Rhinoplasty & ENT Surgery, Istanbul
   Design system: ink navy on porcelain white with champagne
   gold accents. Cormorant Garamond + Manrope, self-hosted.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorantgaramond-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorantgaramond-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #152A43;
  --navy-deep:   #0D1C2E;
  --navy-tint:   #E9EDF2;
  --gold:        #B99668;
  --gold-soft:   #F2EADD;
  --porcelain:   #FBFAF8;
  --white:       #FFFFFF;
  --ink:         #22262C;
  --ink-soft:    #5B6068;
  --line:        #E6E2D9;

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 28, 46, .05), 0 4px 14px rgba(13, 28, 46, .06);
  --shadow-md: 0 2px 4px rgba(13, 28, 46, .06), 0 16px 38px rgba(13, 28, 46, .12);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 .55em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }

p { margin: 0 0 1.1em; }

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

::selection { background: var(--gold-soft); color: var(--navy-deep); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 44em;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: #C7A67B; color: var(--navy-deep); box-shadow: var(--shadow-md); }

.btn-navy {
  background: var(--navy);
  color: var(--porcelain);
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--navy-deep); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(21, 42, 67, .45);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: var(--porcelain);
  border-color: rgba(251, 250, 248, .55);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: var(--porcelain); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 22px rgba(13, 28, 46, .07);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a:not(.btn) {
  position: relative;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: .35rem;
}
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); }

.site-nav .btn { padding: .7rem 1.4rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(13, 28, 46, .14);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1.25rem; justify-content: center; }
}

/* ---------- Hero (full-bleed portrait, copy on the right) ---------- */
.hero {
  position: relative;
  background: #FDFDFD;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: min(88vh, 820px);
  align-items: center;
}
.hero-copy {
  width: min(560px, 52%);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero-copy .eyebrow { margin-bottom: 1rem; }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  color: var(--gold);
  margin-bottom: 1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 2rem 0 1.75rem;
}

.hero-cred {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-cred li { display: flex; align-items: center; gap: .5rem; }
.hero-cred svg { color: var(--gold); flex: none; }

@media (max-width: 860px) {
  .hero-bg { position: static; height: min(72vw, 420px); }
  .hero-bg img { object-position: 12% 18%; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding-top: 2.25rem; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-deep);
  color: var(--porcelain);
  border-top: 3px solid var(--gold);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.trust-grid > div { text-align: center; }
.trust-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.trust-num em { font-style: normal; color: var(--gold); }
.trust-label {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, .66);
}
@media (max-width: 680px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.card .card-link:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split-figure { position: relative; margin: 0; }
.split-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split-figure::after {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding-block: .5rem;
  color: var(--ink-soft);
}
.checklist svg { color: var(--gold); flex: none; margin-top: .32rem; }
.checklist strong { color: var(--ink); }

/* ---------- Featured procedure panel (services) ---------- */
.feature-panel {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: rgba(251, 250, 248, .85);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.25rem, 5vw, 4rem);
}
.feature-panel h2, .feature-panel h3 { color: var(--white); }
.feature-panel .eyebrow { color: var(--gold); }

.variant-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.variant-list li {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(251, 250, 248, .15);
}
.variant-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .25rem;
}
.variant-list p { margin: 0; font-size: .97rem; }

/* ---------- Service rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.9rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 0; }
.service-row .card-icon { width: 64px; height: 64px; margin: 0; }
.service-row h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); margin-bottom: .35em; }
.service-row p { color: var(--ink-soft); max-width: 58em; margin-bottom: 0; }
@media (max-width: 620px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--gold-soft); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--navy);
  flex: 1;
}
.quote p::before { content: '\201C'; color: var(--gold); }
.quote p::after { content: '\201D'; color: var(--gold); }
.quote figcaption {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: .5rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--porcelain);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(251, 250, 248, .8); }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(120% 170% at 88% -30%, var(--gold-soft) 0%, rgba(242, 234, 221, 0) 55%),
    var(--porcelain);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- About page ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--gold);
}
.timeline strong { display: block; color: var(--navy); font-weight: 700; }
.timeline span { color: var(--ink-soft); font-size: .95rem; }

.philosophy {
  border-left: 2px solid var(--gold);
  padding: .5rem 0 .5rem 1.75rem;
  margin: 2.5rem 0;
}
.philosophy p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 .4em;
}
.philosophy cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Note box ---------- */
.note {
  background: var(--navy-tint);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  font-size: .95rem;
  color: var(--navy);
  margin-top: 2.5rem;
}
.note strong { font-weight: 700; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block { margin-bottom: 2.25rem; }
.contact-block h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  margin-bottom: .4rem;
}
.contact-block h3 svg { color: var(--gold); }
.contact-block p, .contact-block address {
  font-style: normal;
  color: var(--ink-soft);
  margin: 0;
}
.contact-block a { font-weight: 700; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours-table td {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.hours-table td:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.hours-table tr:last-child td { border-bottom: 0; }

.map-frame {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 1.8rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--porcelain);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: .8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field-hint { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }

.form-card .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form-privacy {
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 1rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 250, 248, .75);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: var(--gold); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(251, 250, 248, .75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-note { margin-top: 1rem; max-width: 34em; }

.footer-bottom {
  border-top: 1px solid rgba(251, 250, 248, .14);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .82rem;
  color: rgba(251, 250, 248, .5);
}

/* ---------- Reveal on scroll ----------
   Hidden state only applies once <html> has the .js class
   (set inline in <head>), so content is never lost without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
