/* ========================================================
   Sarı Fırın — Stil dosyası
   Renk paleti logodan: koyu yeşil tema + pastel krem zemin
   ======================================================== */

:root {
  --green:        #1f4032;
  --green-soft:   #2e5446;
  --green-dark:   #163024;
  --cream-bg:     #fffde7;
  --cream-card:   #ffffff;
  --cream-warm:   #efe6d2;  /* Ürünler bölümü — sıcak yulaf tonu */
  --cream-icon:   #f4ecd9;  /* küçük ikon zeminleri için yumuşak ton */
  --text:         #3a2e26;
  --text-soft:    #6b5b4e;
  --gold:         #c79a3e;

  --shadow-sm: 0 4px 14px rgba(31, 64, 50, 0.08);
  --shadow-md: 0 12px 30px rgba(31, 64, 50, 0.12);
  --shadow-lg: 0 22px 50px rgba(31, 64, 50, 0.18);

  --radius:    18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--cream-bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Klavyeyle gezinenler için belirgin odak halkası */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ortak başlık parçaları ---------- */
.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
/* "Hikâyemiz" de diğer eyebrow'larla aynı altın renkte kalsın
   (aksi halde .about-text p kuralı rengi ezerdi) */
.about-text .eyebrow { color: var(--gold); }

.section { padding: 96px 0; }

.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-sub { color: var(--text-soft); margin-top: 14px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--cream-bg);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  background: var(--green-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-ghost {
  background: transparent;
  color: var(--cream-bg);
  border: 1.5px solid rgba(255, 253, 231, 0.7);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 253, 231, 0.12); }

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 231, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 253, 231, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand-logo { height: 56px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.28s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--green); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { color: var(--cream-bg); }
.nav-cta:hover { color: var(--cream-bg); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.6px;
  background: var(--green);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: url('../assets/hero.jpg') center/cover no-repeat fixed;
  color: var(--cream-bg);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(22, 48, 36, 0.92) 0%,
    rgba(22, 48, 36, 0.72) 45%,
    rgba(22, 48, 36, 0.38) 100%
  );
}
.hero-content {
  position: relative;
  max-width: 640px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e7c87f;
  margin-bottom: 18px;
}
.hero-title {
  color: var(--cream-bg);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 1.08rem;
  color: rgba(255, 253, 231, 0.9);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 253, 231, 0.88);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-scroll:hover {
  color: var(--cream-bg);
  transform: translateX(-50%) translateY(3px);
}
.hero-scroll-text {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-scroll-chevrons {
  position: relative;
  width: 24px; height: 30px;
}
.hero-scroll-chevrons .chev {
  position: absolute;
  left: 0;
  width: 24px; height: 14px;
  animation: scrollBob 2.6s var(--ease) infinite;
}
/* Üstteki net, alttaki sönük — okun sabit kalıp hafifçe nefes alması */
.hero-scroll-chevrons .chev:nth-child(1) { top: 0; opacity: 0.95; }
.hero-scroll-chevrons .chev:nth-child(2) { top: 8px; opacity: 0.45; animation-delay: 0.18s; }
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ========================================================
   HAKKIMIZDA
   ======================================================== */
.about { background: var(--cream-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  right: -18px; bottom: -22px;
  background: var(--green);
  color: var(--cream-bg);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}
.about-badge span { font-size: 0.82rem; opacity: 0.85; }

.about-text p { color: var(--text-soft); margin-bottom: 16px; }
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 26px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  color: var(--text);
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--cream-bg),
              inset 0 0 0 4.5px var(--green);
}

/* ========================================================
   ÜRÜNLER
   ======================================================== */
.products { background: var(--cream-warm); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-img { overflow: hidden; }
.product-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.07); }
.product-body { padding: 22px 22px 26px; }
.product-body h3 { font-size: 1.28rem; margin-bottom: 8px; }
.product-body p { color: var(--text-soft); font-size: 0.94rem; }

/* ========================================================
   İLETİŞİM
   ======================================================== */
.contact { background: var(--cream-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.info-item { display: flex; gap: 16px; }
.info-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--cream-icon);
  border-radius: 50%;
  font-size: 1.2rem;
}
.info-item h3 { font-size: 1.08rem; margin-bottom: 2px; }
.info-item p { color: var(--text-soft); font-size: 0.96rem; }
.info-item a:hover { color: var(--green); }
.contact-btn { margin-top: auto; text-align: center; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 253, 231, 0.82);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand img { height: 76px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; }

.footer-social { margin-top: 18px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 231, 0.08);
  border: 1px solid rgba(255, 253, 231, 0.16);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.social-icon:hover {
  background: rgba(255, 253, 231, 0.14);
  color: #e7c87f;
  transform: translateY(-2px);
}

/* İletişim kartındaki Instagram ikonu yeşil */
.info-icon svg { color: var(--green); }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e7c87f;
  margin-bottom: 4px;
}
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #e7c87f; }
.footer-bottom {
  border-top: 1px solid rgba(255, 253, 231, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 253, 231, 0.55);
}

/* ========================================================
   SAYFA BAŞINA DÖN
   ======================================================== */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--cream-bg);
  border: 1.5px solid rgba(255, 253, 231, 0.25);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background 0.25s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--green-soft);
  transform: translateY(-3px);
}

/* ========================================================
   SCROLL REVEAL
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-chevrons .chev { animation: none; opacity: 0.9; }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 44px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.38s var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(58, 46, 38, 0.08);
  }
  .nav-link::after { display: none; }
  .nav-cta {
    text-align: center;
    margin-top: 14px;
  }

  .section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media img { height: 360px; }
  .about-badge { right: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .contact-info { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; text-align: center; }
}
