/* =====================================================================
   RESUL BÖREK — single page
   Palette derived from the brand logos:
     cream/butter (the "yellow")  #FFFBDB
     sage         (the "green")   #829D88
   Background is a deep forest green built from that sage hue.
   ===================================================================== */

:root {
  /* greens */
  --green-900: #122017;   /* deepest — footer, shadow */
  --green-850: #16291f;   /* page base */
  --green-800: #1b3326;   /* page base 2 */
  --green-700: #21402f;   /* raised panels / cards */
  --green-600: #2c543e;   /* hover / soft borders */
  --sage:      #829d88;   /* logo green — muted accent */
  --sage-soft: #a9bfac;   /* lighter sage text */

  /* yellows */
  --cream:     #fffbdb;   /* logo yellow — headings, body, logo */
  --cream-72:  rgba(255, 251, 219, .72);
  --cream-55:  rgba(255, 251, 219, .55);
  --cream-14:  rgba(255, 251, 219, .14);
  --cream-08:  rgba(255, 251, 219, .08);
  --gold:      #e7c873;   /* warm yellow accent — wheat, flourishes */
  --gold-deep: #c9a24b;

  --maxw: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--green-850);
  background-image:
    radial-gradient(120% 80% at 50% -10%, #234836 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, #1f3a2c 0%, transparent 50%),
    linear-gradient(180deg, var(--green-850) 0%, var(--green-800) 40%, var(--green-900) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* film-grain overlay for a premium print feel */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: clamp(.72rem, .68rem + .3vw, .82rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--sage-soft);
  font-weight: 600;
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.01em;
  font-size: clamp(2.1rem, 1.3rem + 4vw, 4.1rem);
  margin: 0;
  color: var(--cream);
}
.display em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.section { padding: clamp(4.5rem, 3rem + 7vw, 9rem) 0; position: relative; z-index: 2; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-sub { color: var(--cream-72); margin: 1.2rem 0 0; font-size: 1.05rem; }

/* icons */
.ic, .ic-lg {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-lg { width: 30px; height: 30px; stroke-width: 1.6; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 32, 23, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--cream-14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
  transition: height .4s var(--ease);
}
.site-header.scrolled .header-inner { height: 66px; }

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 42px; width: auto;
  transition: height .4s var(--ease);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
}
.site-header.scrolled .brand-logo { height: 34px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav > a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--cream-72);
  position: relative;
  padding: .3rem 0;
  transition: color .25s;
}
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav > a:hover { color: var(--cream); }
.nav > a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--cream-14);
  border-radius: 100px;
  color: var(--cream) !important;
  font-weight: 600;
  background: var(--cream-08);
  transition: background .25s, border-color .25s, transform .25s;
}
.nav-cta:hover { background: var(--cream); color: var(--green-850) !important; transform: translateY(-1px); }
.nav-cta .ic { stroke: none; fill: currentColor; width: 16px; height: 16px; }

/* hamburger */
.hamburger { display: none; width: 30px; height: 22px; position: relative; cursor: pointer; }
.hamburger span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--cream); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  z-index: 2;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 35% at 50% 32%, rgba(231,200,115,.16), transparent 70%),
    radial-gradient(60% 50% at 50% 70%, rgba(130,157,136,.18), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: clamp(280px, 56vw, 560px);
  height: auto;
  margin: 1.4rem 0 1.8rem;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.35));
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, .9rem + 1.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--cream-72);
  margin: 0 0 2.4rem;
  max-width: 30ch;
}
.hero-tagline em { font-style: italic; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* wheat decorations */
.wheat { position: absolute; color: var(--gold); opacity: .22; pointer-events: none; }
.wheat svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wheat svg .wheat-grains path { fill: currentColor; stroke: none; }
.wheat--a { width: 70px; height: 130px; top: 16%; left: 8%; transform: rotate(-18deg); animation: sway 7s var(--ease) infinite; }
.wheat--b { width: 86px; height: 160px; bottom: 12%; right: 7%; transform: rotate(16deg); animation: sway 8s var(--ease) infinite reverse; }
@keyframes sway {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-12px); }
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--cream-55);
  border-radius: 100px; display: grid; place-items: start center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 1rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .ic { stroke: none; fill: currentColor; width: 18px; height: 18px; }
.btn-primary {
  background: var(--cream); color: var(--green-850);
  box-shadow: 0 10px 30px -10px rgba(255,251,219,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255,251,219,.6); background: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream-14); }
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); background: var(--cream-08); }
.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  position: relative; z-index: 2;
  border-block: 1px solid var(--cream-14);
  background: rgba(255,251,219,.03);
  padding: 1.15rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem);
  color: var(--cream-72);
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 1rem; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   STORY
   ===================================================================== */
.story { overflow: hidden; }
.story-watermark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 720px); opacity: .05; pointer-events: none; z-index: 0;
}
.story-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.story-copy p { color: var(--cream-72); font-size: 1.07rem; margin: 1.2rem 0 0; max-width: 46ch; }
.story-copy .display { margin-top: .4rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; font-weight: 600; color: var(--cream);
  padding-bottom: .25rem; border-bottom: 1.5px solid var(--gold);
  transition: gap .25s var(--ease), color .25s;
}
.link-arrow .ic { width: 18px; height: 18px; color: var(--gold); }
.link-arrow:hover { gap: .9rem; color: var(--gold); }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat {
  border: 1px solid var(--cream-14);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(180deg, var(--cream-08), transparent);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(231,200,115,.5); background: linear-gradient(180deg, rgba(231,200,115,.1), transparent); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); color: var(--gold); line-height: 1;
}
.stat-num small { font-size: .5em; color: var(--cream); }
.stat-label { display: block; margin-top: .6rem; font-size: .9rem; color: var(--cream-72); letter-spacing: .02em; }

/* =====================================================================
   WHY  (features)
   ===================================================================== */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.feature {
  border: 1px solid var(--cream-14);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 2.2rem;
  background: linear-gradient(180deg, rgba(255,251,219,.05), rgba(255,251,219,.01));
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.feature::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(80% 60% at 50% 0%, rgba(231,200,115,.14), transparent 70%);
}
.feature:hover { transform: translateY(-6px); border-color: rgba(231,200,115,.45); box-shadow: 0 24px 50px -28px rgba(0,0,0,.6); }
.feature:hover::after { opacity: 1; }
.feature-ic {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 1.4rem;
  border-radius: 16px; border: 1px solid rgba(231,200,115,.3);
  background: rgba(231,200,115,.08); color: var(--gold);
}
.feature-ic svg { width: 30px; height: 30px; }
.feature-ic > svg:first-child { /* wheat */ fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-ic > svg .wheat-grains path { fill: currentColor; stroke: none; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 .6rem; color: var(--cream); }
.feature p { margin: 0; color: var(--cream-72); font-size: .98rem; }

/* =====================================================================
   BRANCHES
   ===================================================================== */
.branch-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.branch {
  position: relative;
  border: 1px solid var(--cream-14);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.1rem;
  background:
    linear-gradient(180deg, rgba(255,251,219,.05), rgba(255,251,219,.015)),
    var(--green-700);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.branch::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: .55; transition: opacity .4s;
}
.branch:hover { transform: translateY(-6px); border-color: rgba(231,200,115,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.branch:hover::before { opacity: 1; }

.branch-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.branch-top h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0; color: var(--cream); }
.badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .18em;
  color: var(--green-850); background: var(--gold);
  padding: .3rem .6rem; border-radius: 100px;
}

.branch-row {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .65rem 0; color: var(--cream-72);
  transition: color .25s;
}
.branch-row .ic { color: var(--gold); margin-top: .15rem; width: 19px; height: 19px; }
.branch-row span { font-size: .98rem; line-height: 1.45; }
.branch-addr:hover, .branch-tel:hover { color: var(--cream); }
.branch-tel span { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 600; color: var(--cream); }
.branch-tel:hover span { color: var(--gold); }

.branch-actions { display: flex; gap: .7rem; margin-top: 1.4rem; }
.branch-actions .btn-sm { flex: 1; justify-content: center; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--cream-14);
  border-radius: clamp(24px, 2vw, 36px);
  padding: clamp(3rem, 2rem + 5vw, 6rem) 1.5rem;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(231,200,115,.12), transparent 60%),
    linear-gradient(180deg, var(--green-700), var(--green-800));
}
.contact-card .eyebrow { justify-content: center; }
.contact-card .display { margin-inline: auto; }
.contact-phone {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem);
  color: var(--cream); margin: 2rem 0 .6rem;
  transition: color .3s, transform .3s var(--ease);
}
.contact-phone .ic { color: var(--gold); width: .8em; height: .8em; stroke: none; fill: currentColor; }
.contact-phone:hover { color: var(--gold); transform: scale(1.02); }
.contact-sub { color: var(--cream-72); margin: 0 0 2.4rem; }

.contact-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip {
  font-size: .9rem; font-weight: 600; color: var(--cream-72);
  border: 1px solid var(--cream-14); border-radius: 100px;
  padding: .55rem 1.1rem; background: var(--cream-08);
  font-variant-numeric: tabular-nums;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.chip:hover { color: var(--green-850); background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.wheat--c { width: 64px; height: 120px; top: -10px; left: 50%; transform: translateX(-50%) rotate(0deg); opacity: .25; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--cream-14);
  background: var(--green-900);
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.5rem; flex-wrap: wrap;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 1.1rem; opacity: .95; }
.footer-brand p { color: var(--cream-55); margin: 0; font-size: .95rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--cream-72); font-weight: 500; font-size: .95rem; transition: color .25s; }
.footer-nav a:hover { color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid var(--cream-08);
  font-size: .85rem; color: var(--cream-55);
}
.footer-est { letter-spacing: .35em; color: var(--sage-soft); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* small stagger inside grids */
.why-grid .feature:nth-child(2), .branch-grid .branch:nth-child(2) { transition-delay: .08s; }
.why-grid .feature:nth-child(3), .branch-grid .branch:nth-child(3) { transition-delay: .16s; }
.why-grid .feature:nth-child(4), .branch-grid .branch:nth-child(4) { transition-delay: .24s; }

.svg-sprite { position: absolute; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 940px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .story-watermark { display: none; }
}

@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16, 41, 31, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 96px 1.5rem 2rem;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
    border-bottom: 1px solid var(--cream-14);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  }
  .nav-toggle:checked ~ .site-header .nav { transform: translateY(0); }
  .nav > a { padding: 1rem 0; border-bottom: 1px solid var(--cream-08); font-size: 1.05rem; }
  .nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 1rem; padding: .9rem; }
}

@media (max-width: 600px) {
  .branch-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .branch { padding: 1.6rem; }
  .contact-chips { flex-direction: column; align-items: stretch; }
  .chip { text-align: center; }
  .hero { min-height: 92svh; }
}

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

/* =====================================================================
   MOTION / A11Y
   ===================================================================== */
:where(a, .btn, label):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
