/* ==========================================================================
   RAUF GOLD — Kurumsal site
   Palette: deep teal #0C4445, teal-deep #082E2F, gold #BD9A55,
            gold-soft #E4D2AA, cream #FCFAF5, stone #EFEAE0, ink #10231F
   Type: Fraunces (display serif) + Public Sans (body/UI sans)
   ========================================================================== */

:root {
  --teal: #0c4445;
  --teal-deep: #082e2f;
  --gold: #bd9a55;
  --gold-soft: #e4d2aa;
  --cream: #fcfaf5;
  --stone: #efeae0;
  --ink: #10231f;
  --ink-soft: #3c4e49;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --max-w: 1180px;
  --pad: clamp(1.5rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0 0 1rem;
  max-width: 38em;
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

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

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--teal);
}

.wordmark span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

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

.main-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    inset: 86px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad) 1.25rem;
  }
  .main-nav li {
    border-top: 1px solid var(--stone);
  }
  .main-nav a {
    display: block;
    padding: 0.85rem 0;
  }
}

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

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
}

.hero-lede {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  border: 1px solid var(--teal);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.btn-ghost:hover {
  background: var(--teal);
  color: var(--cream);
}

.hero-mark {
  justify-self: center;
}

.hero-mark svg {
  width: min(320px, 100%);
}

.hero-mark img {
  width: min(340px, 100%);
  border-radius: 4px;
  box-shadow: 0 18px 40px -16px rgba(8, 46, 47, 0.45);
}

.mark-ring {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: draw-ring 1.6s ease-out 0.2s forwards;
}

@keyframes draw-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-ring {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    order: -1;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ---------- Stat band ---------- */

.stat-band {
  background: var(--teal);
  color: var(--cream);
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}

.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-band dt {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  color: var(--gold-soft);
  font-weight: 600;
}

.stat-band dd {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.88;
}

@media (max-width: 700px) {
  .stat-band .wrap {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: left;
  }
}

/* ---------- Generic section ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

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

.section-head {
  max-width: 42em;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.25rem;
}

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

.card {
  border-top: 3px solid var(--gold);
  padding-top: 1.2rem;
}

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Principles list variant (ilkelerimiz) */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem 2rem;
}

.principle {
  background: var(--cream);
  border: 1px solid var(--stone);
  padding: 1.6rem 1.5rem;
}

.principle h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Founder / vision block ---------- */

.vision {
  background: var(--teal-deep);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.vision .wrap {
  max-width: 760px;
}

.vision .rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.6rem;
  border: none;
}

.vision p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--cream);
  max-width: 100%;
}

.vision .attribution {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-soft);
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--stone);
  padding: clamp(2.6rem, 6vw, 3.8rem) 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.page-header p {
  color: var(--ink-soft);
  margin-top: 0.8rem;
  max-width: 40em;
}

/* ---------- Contact cards ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

.contact-card {
  border: 1px solid var(--stone);
  padding: 1.75rem 1.6rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--teal);
}

.contact-card a {
  font-weight: 600;
}

.legal-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--stone);
  padding-top: 2rem;
}

.legal-block dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.legal-block dt {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-block dd {
  margin: 0;
  font-weight: 600;
}

/* ---------- Registration detail block (marka-tescili) ---------- */

.reg-block {
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin: 2rem 0;
}

.reg-block dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.7rem 2rem;
  margin: 0;
}

.reg-block dt {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.reg-block dd {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--teal);
}

/* ---------- CTA strip ---------- */

.cta-strip {
  background: var(--teal);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: left;
}

.cta-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  max-width: 24em;
}

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

.site-footer {
  background: var(--teal-deep);
  color: var(--gold-soft);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.footer-grid h4 {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-grid .wordmark {
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-grid .wordmark span {
  color: var(--gold);
}

.footer-grid p {
  color: var(--gold-soft);
  opacity: 0.85;
  font-size: 0.93rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--gold-soft);
  font-size: 0.93rem;
}

.footer-grid a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(228, 210, 170, 0.25);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  opacity: 0.75;
}