/* ==========================================================================
   Güresan Zeytinyağları - Yakında sayfası
   Fontlar: Marcellus & Hanken Grotesk (SIL Open Font License, sunucuda barındırılıyor)
   Görseller: bu proje için özel çizildi (SVG), telif sorunu yok.

   Bütün ölçüler rem cinsinden; her ekran sınıfı için kök font boyutu (html font-size)
   ayrı ayarlanır, böylece sayfa o ekranın genişliğine VE yüksekliğine göre ölçeklenir.
   Sayfa hiçbir ekranda kaydırma (scroll) gerektirmeyecek şekilde tasarlandı.
   ========================================================================== */

/* ---------- Fontlar ---------- */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Renkler ve temel değişkenler ---------- */
:root {
  --bg-deep: #141a10;   /* gece zeytini */
  --bg:      #1e2618;   /* zeytin yaprağı */
  --bg-lift: #2b3621;   /* ışık alan yaprak */
  --leaf:    #a9b192;   /* yaprağın gümüşi alt yüzü */
  --gold:    #cdb15f;   /* erken hasat yağı */
  --gold-hi: #dcc47f;
  --cream:   #ede8d8;
  --muted:   #a8ab96;
  --ink:     #19200f;

  --serif: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ekran sınıfına göre değişen düzen değişkenleri (aşağıda her sınıf kendi değerini verir) */
  --pad-x: 1.5rem;
  --pad-y: 1.25rem;
  --art-w: max(82vw, 48vh);
  --art-top: -5vh;
  --art-right: calc(var(--art-w) * -.22);
}

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

html {
  height: 100%;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Telefon (dikey) - temel boyut. Hem genişliğe hem yüksekliğe bakar. */
  font-size: clamp(12px, min(4.1vw, 2.2vh), 17px);
  font-size: clamp(12px, min(4.1vw, 2.2svh), 17px);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sayfa iskeleti ---------- */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding:
    calc(var(--pad-y) + env(safe-area-inset-top, 0px))
    calc(var(--pad-x) + env(safe-area-inset-right, 0px))
    calc(var(--pad-y) + env(safe-area-inset-bottom, 0px))
    calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(205, 177, 95, .07), transparent 70%),
    radial-gradient(130% 100% at 74% 38%, var(--bg-lift) 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

/* İnce film greni: gradyanlarda bantlaşmayı önler, yüzeye doku verir */
.page::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- Zeytin dalı ---------- */
.art {
  position: absolute;
  z-index: 0;
  top: var(--art-top);
  right: var(--art-right);
  width: var(--art-w);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 40%, transparent 78%);
}
.branch { display: block; width: 100%; height: auto; overflow: visible; }
.branch path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.branch .b-stem  { stroke: var(--leaf); opacity: .85; }
.branch .b-leaf  { stroke: var(--leaf); fill: rgba(169, 177, 146, .075); }
.branch .b-rib   { stroke: var(--leaf); opacity: .55; }
.branch .b-stalk { stroke: var(--leaf); opacity: .85; }
.branch .b-olive { stroke: var(--gold); fill: url(#g-olive); }
.branch .b-hl    { stroke: #efe3b8; opacity: .7; }
/* Çizgi kalınlıkları (SVG birimi), her ekran sınıfı kendi değerini verir. Telefon (dikey): */
.branch .b-stem{stroke-width:3.77} .branch .b-leaf{stroke-width:2.6} .branch .b-rib{stroke-width:1.56} .branch .b-stalk{stroke-width:2.34} .branch .b-olive{stroke-width:2.73} .branch .b-hl{stroke-width:2.73}

/* ---------- İçerik ---------- */
.content {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 34rem;
  padding-bottom: 1.75rem;
}

.brand { margin: 0; font-weight: 400; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: .95;
  letter-spacing: .01em;
  color: var(--cream);
}
.brand-sub {
  display: block;
  margin-top: .55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--muted);
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.5rem 0 1.4rem;
  border: 0;
  background: var(--gold);
}

.title {
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--cream);
}

.lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.1rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn .icon {
  width: 1.15rem; height: 1.15rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.btn .icon .dot { fill: currentColor; stroke: none; }

.btn-primary { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(237, 232, 216, .32); }
.btn-ghost:hover { border-color: rgba(237, 232, 216, .7); background: rgba(237, 232, 216, .05); }

.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.foot {
  position: relative;
  z-index: 1;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .8;
}
.foot p { margin: 0; }

/* ==========================================================================
   EKRAN SINIFLARI
   ========================================================================== */

/* ---------- Tablet (dikey) ve dikey monitör: 600px ve üzeri ---------- */
@media (min-width: 600px) and (orientation: portrait) {
  html {
    font-size: clamp(15px, min(2.5vw, 1.75vh), 24px);
    font-size: clamp(15px, min(2.5vw, 1.75svh), 24px);
  }
  :root { --pad-x: 3rem; --pad-y: 2rem; --art-w: 72vw; --art-top: -4vh; --art-right: -12vw; }
  .branch .b-stem{stroke-width:3.04} .branch .b-leaf{stroke-width:2.1} .branch .b-rib{stroke-width:1.26} .branch .b-stalk{stroke-width:1.89} .branch .b-olive{stroke-width:2.21} .branch .b-hl{stroke-width:2.21}
  .brand-name { font-size: 4.6rem; }
  .title { font-size: 2rem; }
  .actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Telefon (yatay) ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  html {
    font-size: clamp(11px, min(1.9vw, 3.6vh), 15px);
    font-size: clamp(11px, min(1.9vw, 3.6svh), 15px);
  }
  :root { --pad-x: 2rem; --pad-y: 1rem; --art-w: 34vw; --art-top: 50%; --art-right: 2vw; }
  .branch .b-stem{stroke-width:3.48} .branch .b-leaf{stroke-width:2.4} .branch .b-rib{stroke-width:1.44} .branch .b-stalk{stroke-width:2.16} .branch .b-olive{stroke-width:2.52} .branch .b-hl{stroke-width:2.52}
  .art { transform: translateY(-50%); -webkit-mask-image: none; mask-image: none; }
  .content { align-self: center; max-width: 60%; padding-bottom: 0; }
  .brand-name { font-size: 3.4rem; }
  .brand-sub { font-size: 1.05rem; }
  .rule { margin: 1.1rem 0 1rem; }
  .title { font-size: 1.5rem; margin-bottom: .45rem; }
  .lead { max-width: 46ch; font-size: .95rem; line-height: 1.5; }
  .actions { flex-direction: row; margin-top: 1.2rem; }
  .btn { min-height: 2.8rem; padding: 0 1.2rem; font-size: .9rem; }
}

/* ---------- Masaüstü temel: laptop, 720p (1280x720), 768p, iPad yatay ---------- */
@media (orientation: landscape) and (min-height: 521px) and (min-width: 900px) {
  html {
    font-size: clamp(14px, min(1.17vw, 2.4vh), 18px);
    font-size: clamp(14px, min(1.17vw, 2.4svh), 18px);
  }
  :root {
    /* "Sahne": 21:9 gibi çok geniş ekranlarda kompozisyon ortada toplanır */
    --stage: min(100vw, 210vh);
    --stage: min(100vw, 210svh);
    --gutter: calc((100vw - var(--stage)) / 2);
    --pad-x: calc(var(--gutter) + var(--stage) * .07);
    --pad-y: 2.2rem;
    --art-w: min(80vh, var(--stage) * .5);
    --art-w: min(80svh, var(--stage) * .5);
    --art-top: 50%;
    --art-right: calc(var(--gutter) + var(--stage) * .015);
  }
  .branch .b-stem{stroke-width:2.46} .branch .b-leaf{stroke-width:1.7} .branch .b-rib{stroke-width:1.02} .branch .b-stalk{stroke-width:1.53} .branch .b-olive{stroke-width:1.78} .branch .b-hl{stroke-width:1.78}
  .art { transform: translateY(-50%); -webkit-mask-image: none; mask-image: none; }
  .content { align-self: center; max-width: 36rem; padding-bottom: 0; }
  .brand-name { font-size: 5.6rem; }
  .brand-sub { font-size: 1.45rem; margin-top: .7rem; }
  .rule { width: 3.5rem; margin: 2.1rem 0 2rem; }
  .title { font-size: 2.15rem; margin-bottom: .9rem; }
  .lead { font-size: 1.06rem; line-height: 1.65; }
  .actions { flex-direction: row; gap: .8rem; margin-top: 2.2rem; }
  .btn { min-height: 3.25rem; padding: 0 1.55rem; }
}

/* ---------- 1080p (1920x1080) ve 1600px üzeri ---------- */
@media (orientation: landscape) and (min-height: 521px) and (min-width: 1600px) {
  html {
    font-size: clamp(16px, min(.95vw, 2.15vh), 20px);
    font-size: clamp(16px, min(.95vw, 2.15svh), 20px);
  }
  :root {
    --pad-x: calc(var(--gutter) + var(--stage) * .08);
    --art-w: min(84vh, var(--stage) * .46);
    --art-w: min(84svh, var(--stage) * .46);
    --art-right: calc(var(--gutter) + var(--stage) * .1);
  }
  .branch .b-stem{stroke-width:2.17} .branch .b-leaf{stroke-width:1.5} .branch .b-rib{stroke-width:0.9} .branch .b-stalk{stroke-width:1.35} .branch .b-olive{stroke-width:1.58} .branch .b-hl{stroke-width:1.58}
}

/* ---------- 2K / 1440p (2560x1440) ve 2400px üzeri ---------- */
@media (orientation: landscape) and (min-height: 521px) and (min-width: 2400px) {
  html {
    font-size: clamp(20px, min(.92vw, 2.15vh), 27px);
    font-size: clamp(20px, min(.92vw, 2.15svh), 27px);
  }
  :root {
    --pad-x: calc(var(--gutter) + var(--stage) * .09);
    --art-right: calc(var(--gutter) + var(--stage) * .11);
  }
  .branch .b-stem{stroke-width:2.03} .branch .b-leaf{stroke-width:1.4} .branch .b-rib{stroke-width:0.84} .branch .b-stalk{stroke-width:1.26} .branch .b-olive{stroke-width:1.47} .branch .b-hl{stroke-width:1.47}
}

/* ---------- 4K / 2160p (3840x2160) ve 3200px üzeri ---------- */
@media (orientation: landscape) and (min-height: 521px) and (min-width: 3200px) {
  html {
    font-size: clamp(26px, min(.9vw, 2.15vh), 40px);
    font-size: clamp(26px, min(.9vw, 2.15svh), 40px);
  }
  :root {
    --pad-x: calc(var(--gutter) + var(--stage) * .1);
    --art-right: calc(var(--gutter) + var(--stage) * .12);
  }
  .branch .b-stem{stroke-width:1.89} .branch .b-leaf{stroke-width:1.3} .branch .b-rib{stroke-width:0.78} .branch .b-stalk{stroke-width:1.17} .branch .b-olive{stroke-width:1.37} .branch .b-hl{stroke-width:1.37}
}

/* ==========================================================================
   Açılış animasyonu: dal kendini çizer, yazılar yumuşakça belirir.
   Bütün cihazlarda oynar (Windows'ta "animasyon efektleri" kapalı olsa da).
   Gecikmeler (--d: çizim, --f: dolgu) zeytin-dali.svg içinde her çizgiye yazılı.
   ========================================================================== */
.branch path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  animation: draw 1.9s cubic-bezier(.45, .05, .25, 1) var(--d, 0s) forwards;
}
.branch .b-leaf, .branch .b-olive {
  fill-opacity: 0;
  animation:
    draw 1.9s cubic-bezier(.45, .05, .25, 1) var(--d, 0s) forwards,
    fill-in 1.4s ease var(--f, 1.1s) forwards;
}
.content, .foot { animation: fade 1.4s ease .25s both; }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes fade    { from { opacity: 0; } to { opacity: 1; } }
