/* ===== Kırkdal Zeytincilik — shared styles (TR + EN) ===== */

:root {
  --bg-page: #EFEDE7;
  --green-dark: #122E17;
  --green-darker: #0E2412;
  --cream-1: #F5F2EA; /* section bg */
  --cream-2: #EFEAD9; /* footer bg */
  --cream-3: #EBE6D6; /* vision tile bg */
  --gray-light: #E3E3DF; /* logo media bg */
  --gold: #B08D2F;
  --gold-2: #C9A227;
  --gold-3: #E8C766;
  --text-cream-1: #F1EADA;
  --text-cream-2: #F6F1E4;
  --text-cream-3: #C6CDBE;
  --text-cream-4: #F3EEE0;
  --body-green-1: #4A574B;
  --body-green-2: #5B6B5C;
  --body-green-3: #2B3B2C;
  --muted-1: #A8B79F;
  --muted-2: #9DB09B;
  --border: #E2DBC6;
  --contact-green: #17421F;

  --font-serif: 'DM Serif Display', serif;
  --font-label: 'Karla', sans-serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg-page);
  font-family: var(--font-body);
  color: var(--body-green-3);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

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

button { font-family: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ===================== Header ===================== */

.site-header {
  position: relative;
  background: var(--green-dark);
  color: var(--text-cream-1);
  padding-bottom: 72px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 60px) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-link { flex: 0 0 auto; }

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font: 400 13px/1 var(--font-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #D9D2BE;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-btn {
  display: inline-block;
  border: 1px solid var(--gold-2);
  color: var(--gold-3);
  padding: 13px 24px;
  font: 400 12px/1 var(--font-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cta-btn:hover {
  background: var(--gold-2);
  color: var(--green-dark);
}

/* language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch a,
.lang-switch span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 3px;
  overflow: hidden;
  opacity: .55;
  transition: opacity .15s ease, outline-color .15s ease;
  outline: 1px solid transparent;
}
.lang-switch a:hover { opacity: 1; color: inherit; }
.lang-switch .is-current {
  opacity: 1;
  outline-color: rgba(232, 199, 102, .6);
}
.lang-switch svg { width: 100%; height: 100%; display: block; }

/* hamburger (hidden by default, shown ≤1024px) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(241, 234, 218, .3);
  background: transparent;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-cream-1);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-panel { display: none; }

/* ===================== Hero ===================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: center;
  padding: 20px clamp(20px, 5vw, 60px) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(201, 162, 39, .5);
  color: var(--gold-3);
  padding: 8px 16px;
  font: 400 11px/1 var(--font-label);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 30px 0 0;
  font: 400 clamp(38px, 6.2vw, 88px) / .98 var(--font-serif);
  color: var(--text-cream-2);
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-3);
}

.hero p.lede {
  margin: 32px 0 0;
  max-width: 520px;
  font: 400 17px/1.8 var(--font-label);
  color: var(--text-cream-3);
}

.hero-taglines {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(241, 234, 218, .16);
  font: 400 13px/1 var(--font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-1);
}
.hero-taglines .sep { color: var(--gold-2); }

.hero-media {
  position: relative;
  height: 600px;
  width: 100%;
  min-width: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ===================== About ===================== */

.about {
  background: var(--cream-1);
  padding: 0 clamp(20px, 5vw, 60px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

.about-text {
  padding: 96px 48px 96px 0;
}

.eyebrow {
  font: 400 11px/1 var(--font-label);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-text h2 {
  margin: 20px 0 0;
  font: 400 clamp(30px, 4vw, 52px) / 1.1 var(--font-serif);
  color: var(--green-dark);
}

.about-text p {
  margin: 24px 0 0;
  font: 400 17px/1.85 var(--font-label);
  color: var(--body-green-1);
}

.about-media {
  position: relative;
  min-height: 340px;
  width: 100%;
  min-width: 0;
  background: #ece9e2;
  padding: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ===================== Vision / Mission ===================== */

.vision-mission-outer {
  background: var(--cream-1);
  padding: 0 clamp(20px, 5vw, 60px) 96px;
}

.vision-mission {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.vm-tile {
  padding: 56px 48px;
}
.vm-tile.vision { background: var(--cream-3); }
.vm-tile.mission { background: var(--green-dark); }

.vm-tile .eyebrow.on-dark { color: var(--gold-3); }

.vm-tile p {
  margin: 22px 0 0;
  font: 400 27px/1.45 var(--font-serif);
}
.vm-tile.vision p { color: var(--green-dark); }
.vm-tile.mission p { color: var(--text-cream-4); }

/* ===================== Gallery ===================== */

.gallery {
  background: var(--cream-1);
  padding: 44px clamp(20px, 5vw, 60px) 88px;
}

.gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-heading {
  margin-bottom: 32px;
}
.gallery-heading h2 {
  margin: 0;
  font: 400 clamp(30px, 4vw, 44px) / 1 var(--font-serif);
  color: var(--green-dark);
}

.gallery-wrap {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(245, 242, 234, .92);
  color: var(--green-dark);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(18, 46, 23, .22);
  transition: opacity .25s ease, background .15s ease, color .15s ease;
  opacity: 1;
}
.gallery-arrow:hover {
  background: var(--green-dark);
  color: var(--text-cream-1);
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

@media (hover: hover) and (pointer: fine) {
  .gallery-arrow { opacity: 0; }
  .gallery-wrap:hover .gallery-arrow { opacity: 1; }
}

.gallery-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform .7s cubic-bezier(.32, .72, 0, 1);
  cursor: grab;
}
.gallery-track:active { cursor: grabbing; }

.gallery-track > .gallery-item {
  flex: 0 0 calc(50% - 10px);
  width: calc(50% - 10px);
  min-width: 0;
  height: 440px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.gallery-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  transition: background .15s ease;
}
.gallery-dots button.is-active { background: var(--gold); }

@media (max-width: 1024px) {
  .gallery-track > .gallery-item { flex: 0 0 100%; width: 100%; height: 300px; }
  .gallery-arrow { display: none; }
}

/* ===================== Footer ===================== */

.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  padding: 76px clamp(20px, 5vw, 60px);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-left: -8px;
}

.footer-tagline {
  margin: 14px 0 0;
  font: 300 15px/1.7 var(--font-body);
  color: var(--body-green-2);
  max-width: 280px;
}

.footer-contact-label {
  font: 400 12px/1 var(--font-body);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--contact-green);
  color: var(--contact-green);
  padding: 11px 18px;
  font: 500 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.instagram-btn:hover {
  background: var(--contact-green);
  color: #F6EFDC;
}

.footer-address {
  margin-top: 20px;
  font: 300 16px/2 var(--font-body);
  color: var(--body-green-3);
}
.footer-address a:hover { color: var(--gold); }

.bottom-bar {
  background: var(--green-dark);
  color: var(--muted-2);
  font: 300 12px/1 var(--font-body);
  letter-spacing: .1em;
  padding: 18px clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================== Responsive ===================== */

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-bar { flex-wrap: wrap; position: relative; }

  .mobile-nav-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 0 clamp(20px, 5vw, 60px);
    z-index: 20;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .mobile-nav-panel.is-open {
    max-height: 400px;
    opacity: 1;
    padding: 8px clamp(20px, 5vw, 60px) 24px;
  }
  .mobile-nav-panel a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(241, 234, 218, .12);
    font: 400 15px/1 var(--font-label);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #D9D2BE;
  }
  .mobile-nav-panel a:last-child { border-bottom: 0; }

  body.nav-open { overflow: hidden; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > div { min-width: 0; }
  .hero-media { height: auto; order: -1; min-width: 0; }
  .hero-media img { height: auto; object-fit: contain; }

  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding: 64px 0; }
  .about-media { min-height: 280px; padding: 32px; }

  .vision-mission { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-grid > div { display: flex; flex-direction: column; align-items: center; }
  .footer-logo { margin-left: 0; }
  .footer-tagline { max-width: none; }
}

@media (max-width: 600px) {
  .site-header { padding-bottom: 48px; }
  .logo { width: 88px; height: 88px; }
  .cta-btn { padding: 11px 16px; font-size: 11px; }

  /* header-actions' box is dropped so its children (cta-btn, lang-switch,
     nav-toggle) line up directly with the logo as header-bar flex items */
  .header-bar { row-gap: 12px; column-gap: 14px; }
  .header-actions { display: contents; }
  .logo-link { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
  .cta-btn { order: 4; flex: 1 1 100%; text-align: center; }

  .hero-taglines {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px 12px;
    font-size: 10.5px;
    letter-spacing: .06em;
    scrollbar-width: none;
  }
  .hero-taglines::-webkit-scrollbar { display: none; }
  .hero-taglines span { white-space: nowrap; flex-shrink: 0; }

  .bottom-bar { justify-content: center; text-align: center; }
}
