/* ═══════════════════════════════════════
   YMN Doğal Ürünler — Global Styles
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ─── Variables ─── */
:root {
  --cream:      #F6F1E7;
  --cream-deep: #EDE5D0;
  --cream-mid:  #E8DFC8;
  --olive:      #556B2F;
  --olive-dark: #3A4A1E;
  --olive-mid:  #6B8040;
  --olive-light:#8A9E55;
  --earth:      #7A5C3E;
  --earth-light:#A07850;
  --charcoal:   #2A2A22;
  --gold:       #C8A96E;
  --gold-light: #E2C98A;
  --text:       #2C2A24;
  --text-muted: #7A7060;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Grain Overlay ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9990; opacity: 0.35;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 4rem;
  height: 80px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(58,74,30,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.18);
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(58,74,30,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo span {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.logo {
  width: 150px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,241,231,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding-top: 80px;
  min-height: 42vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,56,18,0.78) 0%, rgba(85,107,47,0.5) 60%, rgba(122,92,62,0.3) 100%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--cream), transparent);
  z-index: 2;
}
.page-hero-content {
  position: relative; z-index: 3;
  padding: 4rem;
  animation: fadeUp 1s ease both;
}
.page-hero-content .eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.page-hero-content .eyebrow::before {
  content: '';
  display: block; width: 36px; height: 1px;
  background: var(--gold-light);
}
.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.08;
}
.page-hero-content h1 em { font-style: italic; color: var(--gold-light); }

/* ─── Section base ─── */
section { padding: 6rem 4rem; }
.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--earth-light);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.8rem;
}
.section-label::after {
  content: '';
  flex: 0 0 30px; height: 1px;
  background: var(--earth-light);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--olive-dark);
}
h2 em { font-style: italic; color: var(--earth); }

.gold-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 2.2rem;
  background: transparent;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); color: var(--olive-dark); }
.btn-primary .btn-arrow { font-size: 1rem; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-olive {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 2.2rem;
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
.btn-olive:hover { background: var(--olive-dark); border-color: var(--olive-dark); }

/* ─── Footer ─── */
footer {
  background: var(--olive-dark);
  color: var(--cream);
  padding: 5rem 4rem 3rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: 'YMN';
  position: absolute;
  bottom: -2.5rem; right: -1rem;
  font-family: var(--serif);
  font-size: 16rem;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 3rem;
}
.footer-brand .brand-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cream);
  font-weight: 400;
}
.footer-brand .brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(246,241,231,0.5);
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  color: rgba(246,241,231,0.52);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-contact-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  color: rgba(246,241,231,0.52);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  opacity: 0.7;
}
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,241,231,0.52);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--sans);
  letter-spacing: 0;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(246,241,231,0.28);
  letter-spacing: 0.05em;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-docs-links {
  display: inline-flex;
  align-items: center;
  color: rgba(246,241,231,0.52);
}
.footer-docs-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-docs-links a:hover {
  color: var(--gold);
}
.footer-docs-sep {
  opacity: 0.3;
  margin: 0 0.8rem;
}

/* ─── ISO BADGE ─── */
.iso-badge {
  position: absolute;
  width: 120px;
  z-index: 10;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}
.iso-badge:hover {
  transform: scale(1.08) translateY(-4px);
}
.iso-badge img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .iso-badge { width: 90px; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  section { padding: 5rem 2rem; }
  .page-hero-content { padding: 3rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-left { flex-direction: column; gap: 0.5rem; }
  /* ─── Mobile typography ─── */
  body { font-size: 1rem; }
  h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  p, .story-text p, .mission-text p, .map-text p { font-size: 1rem; line-height: 1.8; }
  .section-label { font-size: 0.72rem; }
  .btn-olive, .btn-primary { font-size: 0.82rem; padding: 0.9rem 1.8rem; }
}
