/* ===================================================================
   SERUPUT — Coffee & Roastery
   Stylesheet utama. Ubah warna brand di :root.
   =================================================================== */

:root {
  /* --- Palet (ubah di sini) --- */
  --ink:       #241811;   /* espresso pekat — teks & section gelap */
  --ink-soft:  #4A3A2E;
  --muted:     #7A6A5B;   /* teks sekunder */
  --line:      #E4D8C6;   /* garis hairline */
  --paper:     #F5EDDF;   /* krem oat — latar utama */
  --paper-2:   #EDE1CD;   /* krem lebih tua — section alternatif */
  --cream:     #FBF6EC;   /* krem terang (kartu) */
  --accent:    #B4692C;   /* karamel — aksen utama */
  --accent-2:  #8E4F1D;   /* karamel gelap (hover) */
  --sage:      #7C8A6B;   /* hijau sage — aksen segar (hemat) */
  --white:     #FFFFFF;

  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:    'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; }

/* --- Tipografi --- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.1; }

.label { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 24px; height: 1px; background: var(--accent); display: inline-block; }
.index-num { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head .title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 16ch; }
.sec-head .title .accent { color: var(--accent); font-style: italic; }
.sec-head .meta { max-width: 350px; color: var(--muted); font-size: 1rem; }
.rule-top { border-top: 1px solid var(--line); padding-top: 22px; }

/* --- Tombol --- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ========================= HEADER ========================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), border-color .4s, box-shadow .4s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(245,237,223,.9); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { font-family: var(--display); font-size: 1.5rem; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { color: var(--accent); display: inline-flex; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { font-size: .94rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 11px 22px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 100px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { bottom: 15px; }
.burger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }

/* ========================= HERO ========================= */
.hero { padding: 150px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line); color: var(--accent-2); font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 100px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-info { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-info .i b { font-family: var(--display); font-size: 1.05rem; display: block; }
.hero-info .i span { font-size: .86rem; color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure .main { aspect-ratio: 4/4.6; border-radius: 200px 200px 20px 20px; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px rgba(36,24,17,.18); }
.hero-figure .main img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .ph { display: grid; place-items: center; height: 100%; color: var(--accent); }
.hero-figure .stamp { position: absolute; right: -14px; top: 30px; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: .95rem; line-height: 1.15; transform: rotate(8deg); box-shadow: 0 14px 30px rgba(180,105,44,.4); }

/* ========================= STRIP ========================= */
.strip { background: var(--ink); color: var(--paper); padding: 22px 0; overflow: hidden; }
.strip-track { display: flex; gap: 50px; align-items: center; white-space: nowrap; animation: marquee 26s linear infinite; }
.strip-track span { font-family: var(--display); font-size: 1.3rem; opacity: .9; display: inline-flex; align-items: center; gap: 50px; }
.strip-track span::after { content: "✦"; color: var(--accent); font-size: .85rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ========================= ABOUT ========================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.about-visual { aspect-ratio: 5/5.4; border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: 0 24px 50px rgba(36,24,17,.12); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-body .lead { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.28; margin-bottom: 20px; }
.about-body .lead em { font-style: italic; color: var(--accent); }
.about-body p { color: var(--muted); margin-bottom: 26px; }
.about-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-mini .m h4 { font-family: var(--display); font-size: 1.9rem; color: var(--accent); margin-bottom: 2px; }
.about-mini .m span { font-size: .92rem; color: var(--muted); }

/* ========================= MENU ========================= */
.menu { background: var(--paper-2); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.item { background: var(--cream); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.item:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(36,24,17,.14); }
.item .pic { aspect-ratio: 3/2.5; overflow: hidden; background: var(--paper-2); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.item:hover .pic img { transform: scale(1.06); }
.item .body { padding: 22px 24px 26px; }
.item .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.item h3 { font-size: 1.4rem; }
.item .price { font-family: var(--sans); font-weight: 700; color: var(--accent); font-size: 1.02rem; white-space: nowrap; }
.item p { font-size: .93rem; color: var(--muted); }
.item .tag { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 700; }

/* ========================= KEUNGGULAN ========================= */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 34px; }
.feat .ic { width: 54px; height: 54px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 1.32rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .95rem; }

/* ========================= GALERI ========================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.gcell { border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gcell:hover img { transform: scale(1.05); }
.gcell .ph { display: grid; place-items: center; height: 100%; color: var(--accent); }
.gcell.big { grid-column: span 2; grid-row: span 2; }
.gcell.tall { grid-row: span 2; }

/* ========================= TESTIMONI ========================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; display: flex; flex-direction: column; }
.quote .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; }
.quote p { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); color: var(--accent); display: grid; place-items: center; font-family: var(--display); flex: 0 0 44px; }
.quote .who b { font-weight: 700; font-size: .96rem; display: block; }
.quote .who span { font-size: .84rem; color: var(--muted); }

/* ========================= CTA / VISIT ========================= */
.visit { background: var(--ink); color: var(--paper); }
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.visit .label { color: #E0A86A; }
.visit .label::before { background: #E0A86A; }
.visit h2 { font-family: var(--display); font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.06; margin: 18px 0 22px; }
.visit h2 em { font-style: italic; color: #E0A86A; }
.visit p { color: #C6B7A6; margin-bottom: 30px; max-width: 44ch; }
.visit .hours { display: grid; gap: 0; }
.visit .hours .row { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .98rem; }
.visit .hours .row:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.visit .hours .row span:first-child { color: #C6B7A6; }
.visit .hours .row span:last-child { font-weight: 700; }

/* ========================= CONTACT ========================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; }
.contact-details .row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact-details .row:last-child { border-bottom: 1px solid var(--line); }
.contact-details .row .k { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-details .row .v { font-size: 1.12rem; }
.contact-details .row .v a { border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.contact-details .row .v a:hover { border-color: var(--accent); color: var(--accent); }
.contact-details .socials { display: flex; gap: 20px; }
.contact-details .socials a { font-size: .95rem; color: var(--muted); font-weight: 600; }
.contact-details .socials a:hover { color: var(--accent); }
.form { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 20px 44px rgba(36,24,17,.08); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.form input, .form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--paper); transition: border-color .25s, background .25s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form textarea { min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ========================= FOOTER ========================= */
.footer { background: var(--ink); color: #C6B7A6; padding: 84px 0 32px; }
.footer .big { font-family: var(--display); font-size: clamp(3rem, 12vw, 9rem); color: var(--paper); line-height: .95; margin-bottom: 52px; display: flex; align-items: center; gap: 20px; }
.footer .big .mark { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cols p { max-width: 34ch; font-size: .95rem; }
.footer-cols h5 { font-family: var(--sans); color: var(--paper); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-cols a { display: block; padding: 6px 0; font-size: .95rem; color: #C6B7A6; transition: color .3s; }
.footer-cols a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: .84rem; color: #8B7A69; flex-wrap: wrap; gap: 10px; }

/* ========================= WHATSAPP FLOAT ========================= */
.wa { position: fixed; right: 26px; bottom: 26px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; padding: 13px 20px; border-radius: 100px; font-size: .9rem; font-weight: 700; box-shadow: 0 12px 30px rgba(180,105,44,.42); transition: background .3s, transform .3s var(--ease); }
.wa:hover { background: var(--accent-2); transform: translateY(-3px); }
.wa svg { flex: 0 0 auto; }

/* ========================= REVEAL ========================= */
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .reveal { animation: revealUp .75s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .js .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid, .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure .main { aspect-ratio: 16/12; border-radius: 24px; }
  .about-visual { max-width: 520px; }
  .menu-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gcell.big { grid-column: span 2; }
}
@media (max-width: 860px) {
  .section { padding: 84px 0; }
  .wrap { padding: 0 24px; }
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; transform: translateY(-135%); transition: transform .45s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-cta .btn { display: none; }
  .burger { display: block; }
  .hero { padding: 124px 0 64px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .menu-grid, .testi-grid, .feat-grid, .footer-cols, .about-mini { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .hero-figure .stamp { width: 88px; height: 88px; font-size: .82rem; }
}
