/* =========================================================
   MARÉ | Fine Ice Cream — Stylesheet
   Palette: warm ivory, cream, sand/stone, warm dark brown.
   No black UI, no navy, no gold, no gradients-as-decoration,
   no rounded SaaS cards, no glassmorphism.
   ========================================================= */

:root{
  --color-ivory:      #F7F2EA;
  --color-cream:      #EFE6D6;
  --color-stone:      #D9CBB5;
  --color-sand:       #C9B99C;
  --color-espresso:   #332A20;
  --color-line:       rgba(51, 42, 32, 0.14);

  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 7.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-espresso);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p,dl{ margin: 0; }
button, input, textarea{ font-family: inherit; font-size: 1rem; color: inherit; }

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

/* ---------- Accessibility ---------- */
.skip-link{
  position: absolute;
  left: -999px;
  background: var(--color-espresso);
  color: var(--color-ivory);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 3px;
}
.skip-link:focus{ left: var(--space-2); top: var(--space-2); }
.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;
}
:focus-visible{ outline: 2px solid var(--color-sand); outline-offset: 3px; }

/* ---------- Shared layout ---------- */
.section{ padding: var(--space-6) var(--space-2); scroll-margin-top: 100px; }
.section-inner{ max-width: var(--container-w); margin: 0 auto; }

.eyebrow{
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-espresso);
  opacity: 0.6;
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: inline-block;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--color-espresso);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.section-lede{
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--color-espresso);
  opacity: 0.78;
  margin-bottom: var(--space-4);
}
.split-text{
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--color-espresso);
  opacity: 0.82;
}

/* Signature reveal: a thin line that draws itself under an eyebrow
   on scroll — one quiet, deliberate gesture, nothing more. */
.reveal-line{ position: relative; padding-bottom: 0.6rem; }
.reveal-line::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--color-espresso);
  opacity: 0.4;
  transition: width 1.1s var(--ease);
}
.reveal-line.is-visible::after{ width: 48px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-radius: 1px;
  border: 1px solid var(--color-line);
  cursor: pointer;
  background: transparent;
  color: var(--color-espresso);
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn-outline:hover{
  border-color: var(--color-espresso);
  background: rgba(51,42,32,0.04);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  padding: var(--space-2);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.is-scrolled{
  background: rgba(247, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line);
  padding: 0.55rem var(--space-2);
}
.header-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.brand-mark{ display: inline-flex; align-items: center; }
.brand-mark-img{
  height: 30px;
  width: auto;
  /* The supplied logo file has an opaque white background rather than a
     transparent one, so it is shown as-is (no invert filter) in every
     header state to avoid rendering as a dark box over the hero photo. */
  background: var(--color-ivory);
  padding: 3px 6px;
  border-radius: 2px;
}

.main-nav{ display: flex; align-items: center; }
.nav-list{ display: flex; gap: var(--space-4); }
.nav-list a{
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--color-ivory);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
.nav-list a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-list a:hover::after{ width: 100%; }
.site-header.is-scrolled .nav-list a{ color: var(--color-espresso); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-ivory);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span{ background: var(--color-espresso); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  /* Warm fallback shown only if images/1.png fails to load. */
  background: linear-gradient(160deg, #4A3B2A 0%, var(--color-espresso) 60%, #241B12 100%);
}
.hero-transition{
  height: 80px;
  background: var(--color-cream);
}
.hero-media{
  display: block;
  width: 100%;
  height: auto;
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-2);
  text-align: center;
  color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo{
  width: min(240px, 50vw);
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-4);
  animation: riseIn 1s var(--ease) 0.15s both;
}
.hero-headline{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
  animation: riseIn 1s var(--ease) 0.32s both;
}
.hero-sub{
  font-size: 1rem;
  color: rgba(247,242,234,0.85);
  animation: riseIn 1s var(--ease) 0.48s both;
}
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}
.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dash{
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(247,242,234,0.6), transparent);
  animation: dashPulse 2.6s var(--ease) infinite;
}
@keyframes dashPulse{
  0%, 100%{ opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%{ opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Split sections (Hikâyemiz / Karakteristik Doku) ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  padding: 0;
}
.split-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) clamp(var(--space-3), 6vw, var(--space-6));
  background: var(--color-cream);
}
.split-media{ overflow: hidden; background: var(--color-stone); }
.split-media img{ width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split-reverse{ direction: rtl; }
.split-reverse > *{ direction: ltr; }

/* Hikâyemiz right-side image only: shown at ~66% of its previous
   displayed size, full frame visible (no crop/zoom), centered in
   its column on the existing split-media background. */
#hikayemiz .split-media{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}
#hikayemiz .split-media img{
  width: 66%;
  height: auto;
  object-fit: contain;
  min-height: 0;
}

/* ---------- Lezzetler ---------- */
.flavors{ background: var(--color-ivory); }
.flavor-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.flavor-media{
  aspect-ratio: 3 / 4;
  background: var(--color-cream);
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.flavor-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.flavor-item:hover .flavor-media img{ transform: scale(1.045); }
.flavor-media-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-cream), var(--color-stone));
}
.flavor-label{
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-espresso);
}

/* ---------- Profesyonel İş Birlikleri ---------- */
.collab{
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 88vh;
  background: var(--color-cream);
}
.collab-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) clamp(var(--space-3), 6vw, var(--space-6));
}
.collab-intro{ margin-bottom: var(--space-4); }
.collab-list{ display: flex; flex-direction: column; }
.collab-row{
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
}
.collab-list .collab-row:last-child{ border-bottom: 1px solid var(--color-line); }
.collab-row h3{
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.collab-row p{ max-width: 44ch; opacity: 0.82; }
.collab-media{ overflow: hidden; background: var(--color-stone); }
.collab-media img{ width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* ---------- Contact ---------- */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 70vh;
}
.contact-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5) clamp(var(--space-3), 6vw, var(--space-6));
  background: var(--color-ivory);
}
.contact-details div{ padding: 0.75rem 0; }
.contact-details dt{
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.contact-details dd{
  margin: 0;
  opacity: 0.82;
}
.contact-details dd a{ border-bottom: 1px solid var(--color-line); }
.contact-details dd a:hover{ border-color: var(--color-espresso); }
.contact-copy .btn{ align-self: flex-start; }
.contact-media{ overflow: hidden; background: var(--color-stone); }
.contact-media img{ width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--color-stone);
  color: var(--color-espresso);
  padding: var(--space-5) var(--space-2) var(--space-3);
  text-align: center;
}
.footer-inner{ max-width: var(--container-w); margin: 0 auto; }
.brand-mark-footer .brand-mark-img{ height: 26px; filter: none; }
.footer-slogan{
  font-family: var(--font-display);
  font-style: italic;
  opacity: 0.75;
  margin: 0.6rem 0 var(--space-4);
}
.footer-nav{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-nav a{ font-size: 0.86rem; }
.footer-nav a:hover{ opacity: 0.7; }
.footer-copy{
  font-size: 0.8rem;
  opacity: 0.7;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(51,42,32,0.16);
}

/* ---------- Scroll reveal (fade content) ---------- */
.reveal-fade{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-fade.is-visible{ opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .flavor-row{ grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); }
}

@media (max-width: 900px){
  .split,
  .collab,
  .contact{ grid-template-columns: 1fr; min-height: 0; }
  .split-media,
  .collab-media,
  .contact-media{ order: -1; }
  .split-media img,
  .collab-media img,
  .contact-media img{ min-height: 280px; max-height: 60vh; }
  .split-reverse{ direction: ltr; }
}

@media (max-width: 720px){
  .hero-transition{ height: 45px; }
  .nav-toggle{ display: flex; }
  .nav-list{
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--color-ivory);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -8px 0 24px rgba(51,42,32,0.1);
  }
  .nav-list.is-open{ transform: translateX(0); }
  .nav-list a{ color: var(--color-espresso); font-size: 1.05rem; }
  body.nav-open{ overflow: hidden; }
  .nav-toggle.is-active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* Flavours as a refined horizontal scroll on small screens rather
   than shrinking five columns into an unreadable strip. */
@media (max-width: 640px){
  .flavor-row{
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    margin: 0 calc(var(--space-2) * -1);
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }
  .flavor-item{
    flex: 0 0 42vw;
    scroll-snap-align: start;
  }
  .section{ padding: var(--space-5) var(--space-2); }
  .split-copy,
  .collab-copy,
  .contact-copy{ padding: var(--space-4) var(--space-2); }
}
