/* ============================================================
   ASLANBEY — Apricots & Fine Foods
   Design tokens: warm Malatya-orchard palette, classical serif
   wordmark echo, hand-drawn botanical linework as signature motif.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* --- Palette: grounded in the logo + Malatya orchard world --- */
  --cream:        #F8F2E6;   /* base page background, sun-bleached linen */
  --cream-deep:   #EFE4CC;   /* alt section background, dried-fruit paper */
  --paper:        #FFFCF6;   /* card surfaces */
  --ink:          #2B2318;   /* warm near-black, roasted walnut */
  --ink-soft:     #5A4E3C;   /* secondary text */
  --apricot:      #DE7A21;   /* ripe apricot flesh */
  --apricot-deep: #B2590E;   /* hover / pressed */
  --gold:         #BD9448;   /* lion-mark gold */
  --gold-soft:    #E4CE9C;   /* hairlines, borders */
  --olive:        #6E7A44;   /* leaf */
  --mulberry:     #4A222B;   /* dried mulberry — deep accent panels */
  --mulberry-2:   #6B303B;   /* mulberry lighter, for gradients */

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe{ max-width:100%; }
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family: var(--serif); font-weight: 400; color: var(--ink); }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apricot-deep);
}
.eyebrow::before{
  content:"";
  width:26px;
  height:1px;
  background: var(--gold);
  display:inline-block;
}
.eyebrow.on-dark{ color: var(--gold-soft); }
.eyebrow.on-dark::before{ background: var(--gold-soft); }
.eyebrow.center{ justify-content:center; }
.eyebrow.center::before{ display:none; }

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--apricot);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--apricot-deep); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--cream); }
.btn-ghost.on-dark{ border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-ghost.on-dark:hover{ background: var(--gold-soft); color: var(--mulberry); }
.btn-arrow{ transition: transform .25s ease; }
.btn:hover .btn-arrow{ transform: translateX(4px); }

/* -------------------- Header / Nav -------------------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(248,242,230,0.0);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(248,242,230,0.94);
  backdrop-filter: blur(8px);
  border-color: var(--gold-soft);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{ height:46px; width:auto; }
.brand-word{ display:flex; flex-direction:column; line-height:1; }
.brand-word b{
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-word span{
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top:3px;
}
.nav-links{ display:flex; align-items:center; gap:38px; }
.nav-links a{
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover{ color: var(--apricot-deep); }
.nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background: var(--apricot);
}
.nav-right{ display:flex; align-items:center; gap:22px; }
.nav-phone{ font-size:13px; font-weight:700; color: var(--ink); display:flex; align-items:center; gap:8px;}
.nav-phone svg{ width:15px; height:15px; stroke: var(--apricot); }
.nav-whatsapp{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  flex-shrink:0;
  transition: transform .2s ease, background .2s ease;
}
.nav-whatsapp svg{ width:17px; height:17px; }
.nav-whatsapp:hover{ background:#1DA851; transform: translateY(-1px); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width:32px; height:24px;
  position:relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:2px; background:var(--ink);
  transition: all .25s ease;
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:11px; }
.nav-toggle span:nth-child(3){ top:22px; }
.nav-toggle.open span:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-links{
    position:fixed; top:82px; left:0; right:0; bottom:0;
    background: var(--cream);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding: 10px 32px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y:auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ width:100%; padding: 16px 0; border-bottom:1px solid var(--gold-soft); font-size:16px; }
  .nav-right .nav-phone{ display:none; }
  .nav-toggle{ display:block; }
  .site-header{
    background: var(--cream) !important;
    border-bottom: 1px solid var(--gold-soft) !important;
    backdrop-filter: none !important;
  }
  .nav-toggle span{ background: var(--ink) !important; }
}

/* -------------------- Divider (signature botanical rule) -------------------- */
.branch-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  width: 100%;
  max-width: 260px;
}
.branch-divider svg{ width:100%; height:auto; }

/* -------------------- Section shells -------------------- */
section{ padding: 108px 0; }
.section-alt{ background: var(--cream-deep); }
.section-dark{
  background: linear-gradient(155deg, var(--mulberry) 0%, var(--mulberry-2) 100%);
  color: var(--cream);
}
.section-dark h2, .section-dark h3{ color: var(--cream); }
.section-head{
  text-align:center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2{
  font-size: clamp(30px, 4vw, 44px);
  margin: 16px 0 18px;
  font-style: italic;
}
.section-head p{ color: var(--ink-soft); font-size:16px; }
.section-dark .section-head p{ color: #E9D9C4; }

/* -------------------- Page header (inner pages) -------------------- */
.page-hero{
  padding: 76px 0 64px;
  background: var(--cream-deep);
  position: relative;
  overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{
  font-size: clamp(40px, 6vw, 64px);
  font-style: italic;
  margin-top: 14px;
}
.page-hero p{
  margin-top: 18px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 17px;
}
.page-hero-motif{
  position:absolute;
  right:-40px; top:50%; transform:translateY(-50%);
  width: 360px; opacity:0.55;
}

/* -------------------- Footer -------------------- */
.site-footer{
  background: var(--ink);
  color: #D9CDB8;
  padding: 72px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:40px; }
.footer-brand b{ font-family: var(--serif); font-size:19px; color:#fff; letter-spacing:0.05em; }
.footer-col p{ color:#B8AC96; font-size:14.5px; line-height:1.75; }
.footer-col h4{
  font-family: var(--sans);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ font-size:14.5px; color:#D9CDB8; transition:color .2s; }
.footer-col ul a:hover{ color: var(--apricot); }
.footer-bottom{
  padding-top:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:#8C8067;
  flex-wrap:wrap;
  gap:10px;
}
@media (max-width: 880px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* -------------------- Reveal-on-scroll -------------------- */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* -------------------- Responsive: collapse inline grids on smaller screens -------------------- */
@media (max-width: 900px){
  section{ padding: 72px 0; }
  .container[style*="grid-template-columns"],
  .container > div[style*="grid-template-columns"],
  .container div[style*="grid-template-columns:repeat(3"],
  .container div[style*="grid-template-columns:repeat(4"]{
    grid-template-columns: 1fr !important;
  }
  .page-hero-motif{ display:none; }
  .hero-visual{ display:none !important; }
  [style*="position:sticky"]{ position: static !important; }
}
@media (max-width: 600px){
  .container{ padding: 0 20px; }
  h1{ font-size: 38px !important; }
  .btn{ width:100%; justify-content:center; }
}

/* -------------------- Utility -------------------- */
.mt-8{ margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.text-center{ text-align:center; }
.gold-text{ color: var(--gold); }
.apricot-text{ color: var(--apricot); }

/* -------------------- Aslanbey Chatbot -------------------- */
.ab-chat-wrap{ position:fixed; bottom:22px; right:22px; z-index:9999; font-family: var(--sans, sans-serif); }
.ab-chat-bubble{
  width:58px; height:58px; border-radius:50%; border:none; cursor:pointer;
  background: var(--mulberry); box-shadow: 0 6px 20px rgba(74,34,43,0.35);
  display:flex; align-items:center; justify-content:center;
  transition: transform .2s ease;
}
.ab-chat-bubble:hover{ transform: scale(1.06); }
.ab-chat-wrap.open .ab-chat-bubble svg{ display:none; }
.ab-chat-wrap.open .ab-chat-bubble::after{
  content:"×"; color:#fff; font-size:28px; line-height:1;
}
.ab-chat-panel{
  position:absolute; bottom:72px; right:0; width:330px; max-width:88vw; height:440px; max-height:70vh;
  background: var(--paper, #fff); border:1px solid var(--gold-soft, #e2d3b8); border-radius:12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform: translateY(12px) scale(.97); pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.ab-chat-wrap.open .ab-chat-panel{ opacity:1; transform:none; pointer-events:auto; }
.ab-chat-header{
  background: var(--mulberry); color:#fff; padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between; font-weight:700; font-size:14.5px;
}
.ab-chat-close{ background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; padding:0 4px; }
.ab-chat-body{ flex:1; overflow-y:auto; padding:14px 14px 6px; display:flex; flex-direction:column; gap:10px; background:var(--cream, #F8F2E6); }
.ab-msg{ max-width:82%; padding:9px 12px; border-radius:10px; font-size:13.5px; line-height:1.5; }
.ab-msg-bot{ align-self:flex-start; background:#fff; border:1px solid var(--gold-soft, #e2d3b8); color:var(--ink, #2a2320); border-bottom-left-radius:2px; }
.ab-msg-user{ align-self:flex-end; background: var(--apricot, #DE7A21); color:#fff; border-bottom-right-radius:2px; }
.ab-chat-quick{ display:flex; flex-wrap:wrap; gap:6px; padding:8px 14px; background:var(--cream, #F8F2E6); }
.ab-quick-btn{
  background:#fff; border:1px solid var(--gold-soft, #e2d3b8); color: var(--mulberry);
  border-radius:20px; padding:6px 12px; font-size:12px; cursor:pointer; transition: background .15s ease;
}
.ab-quick-btn:hover{ background: var(--cream-deep, #F0E6D2); }
.ab-chat-input-row{ display:flex; border-top:1px solid var(--gold-soft, #e2d3b8); background:#fff; }
.ab-chat-input-row input{
  flex:1; border:none; padding:12px 14px; font-size:13.5px; outline:none; font-family:inherit;
}
.ab-chat-input-row button{
  border:none; background: var(--apricot, #DE7A21); color:#fff; width:44px; font-size:16px; cursor:pointer;
}
@media (max-width:600px){
  .ab-chat-wrap{ bottom:16px; right:16px; }
  .ab-chat-panel{ width: 90vw; height: 65vh; bottom:70px; }
}
