/* ============================================================
   Dupak 36 — Pusat Kuliner no. 1 Surabaya Utara
   Single-page landing. Vanilla CSS, no build step.
   Re-skin the whole site by editing only the :root block.
   ============================================================ */

:root {
  /* brand greens */
  --brand: #71aa37;                          /* primary — mid-tone brand */
  --brand-mid: #82b44f;                       /* hover */
  --brand-light: #4eab06;                     /* bright interactive/accent */
  --brand-dark: #073007;                      /* dark matcha — hero, footer, headings */
  --brand-muted: rgba(113, 170, 55, 0.06);
  --brand-border: rgba(113, 170, 55, 0.12);
  --brand-soft: rgba(113, 170, 55, 0.30);
  --accent: #4eab06;                          /* bright green accent (no gold) */
  --accent-light: #69b82b;
  --accent-soft: rgba(78, 171, 6, 0.30);

  /* neutrals / surfaces */
  --white: #FFFFFF;                           /* main background (minimalist) */
  --off-white: #FAFAF7;
  --surface: #f5f2ec;                         /* cream — alternating sections */
  --surface-dark: #ECE7DD;
  --border: #E6E3DC;
  --border-light: #F0EDE6;

  /* text */
  --ink: #073007;                             /* headings (dark matcha) */
  --text-primary: #1C2B1A;
  --text-secondary: #5C6B57;
  --text-tertiary: #93A08C;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- utility ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

.section-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ""; width: 26px; height: 1px; background: var(--brand-light); }
.section-heading {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15; color: var(--ink); margin-bottom: 18px;
}
.section-heading em { font-style: italic; color: var(--brand-light); }
.section-sub { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); font-weight: 300; max-width: 560px; }
section { padding: clamp(64px, 10vw, 118px) 0; }

/* ---- nav ---- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 14px rgba(7, 48, 7, 0.06); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* Brand mark — owner-supplied leaf-only crop (logo-only.png, 495×495, opaque,
   square corners). Pre-cropped, so `contain` on a square box is exact: no
   background-size/position offsets to maintain. No border-radius by design —
   the hard-edged tile matches the site. The wordmark is deliberately absent
   here; `.nav-name` beside it carries the name. */
.nav-mark, .footer-mark {
  background-image: url("asset/images/logo-only.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* Percentage, not px, so the 36px and 30px marks round by the same proportion.
     Ceiling is 40%: the leaf's furthest pixel sits at 104% of the inscribed
     circle's radius, so border-radius:50% would clip ~350px of artwork. */
  border-radius: 22%;
}
.nav-mark { width: 36px; height: 36px; }
.nav-name { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; color: var(--ink); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.02em; transition: color 0.25s; }
.nav-links a:hover { color: var(--brand-light); }
.nav-close { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
.nav-close svg { width: 26px; height: 26px; }
.nav-cta { background: var(--brand-dark) !important; color: var(--white) !important; padding: 9px 22px; font-size: 0.76rem !important; transition: background 0.3s !important; }
.nav-cta:hover { background: #0a4a0a !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-dark); transition: transform 0.3s, opacity 0.3s; }

/* ---- hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(60px, 10vw, 96px); position: relative;
  /* Real photo of the site at night. --brand-dark stays as the base so the hero
     is never bare while the image loads. */
  background: var(--brand-dark) url("asset/images/hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  /* First listed paints on top: the brand glows sit over the scrim, and the
     scrim sits over the photo. Darkest at top and bottom, where the nav, the
     headline and the ticker need contrast; lighter mid-frame to let it show. */
  background:
    radial-gradient(ellipse 55% 60% at 82% 25%, rgba(78,171,6,0.16) 0%, transparent 62%),
    radial-gradient(ellipse 50% 70% at 12% 85%, rgba(113,170,55,0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7,48,7,0.86) 0%, rgba(7,48,7,0.60) 42%, rgba(7,48,7,0.95) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-light), transparent); opacity: 0.5; }
.hero-accent-line { position: absolute; top: 0; left: clamp(30px, 8vw, 120px); width: 1px; height: 170px; background: linear-gradient(180deg, var(--brand-light), transparent); opacity: 0.4; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(40px, 5vw, 80px); align-items: end; }
.hero-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ""; width: 34px; height: 1px; background: var(--brand-light); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.08; color: var(--white); }
.hero h1 em { font-style: italic; color: var(--brand-light); }
.hero-right { padding-bottom: 6px; }
.hero-desc { font-size: clamp(0.92rem, 1.2vw, 1.02rem); line-height: 1.75; color: rgba(255,255,255,0.62); font-weight: 300; margin-bottom: 34px; }
.hero-btn { display: inline-flex; align-items: center; gap: 11px; padding: 13px 32px; background: var(--brand-light); color: var(--white); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; transition: background 0.3s, transform 0.2s; }
.hero-btn:hover { background: #43950a; transform: translateY(-1px); }
.hero-btn svg { width: 15px; height: 15px; transition: transform 0.25s; }
.hero-btn:hover svg { transform: translateX(4px); }
.hero-ticker { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; z-index: 2; }
.ticker-item { flex: 1; padding: 20px clamp(16px, 3vw, 40px); border-right: 1px solid rgba(255,255,255,0.12); display: flex; align-items: baseline; gap: 10px; }
.ticker-item:last-child { border-right: none; }
.ticker-num { font-family: var(--serif); font-size: 1.6rem; color: var(--brand-light); }
.ticker-label { font-size: 0.66rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 500; }

/* ---- about ---- */
.about { background: var(--white); border-top: 1px solid var(--border); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-text p { font-size: 0.9rem; line-height: 1.85; color: var(--text-secondary); font-weight: 300; margin-bottom: 18px; }
/* Real photo of the tenant village mid-service — the scene the About copy describes. */
.about-visual { position: relative; min-height: 430px; background: var(--brand-dark) url("asset/images/about-bg.jpg") center/cover no-repeat; overflow: hidden; display: flex; align-items: flex-end; padding: 36px; }
.about-visual::before {
  content: ""; position: absolute; inset: 0;
  /* Scrim last = underneath the brand wash and hatch, on top of the photo.
     Heavier at the bottom where the white pull-quote sits. */
  background:
    linear-gradient(135deg, rgba(78,171,6,0.18) 0%, transparent 55%),
    repeating-linear-gradient(60deg, transparent, transparent 44px, rgba(255,255,255,0.03) 44px, rgba(255,255,255,0.03) 45px),
    linear-gradient(180deg, rgba(7,48,7,0.58) 0%, rgba(7,48,7,0.78) 55%, rgba(7,48,7,0.93) 100%);
}
.about-stamp { position: absolute; top: 30px; right: 30px; width: 78px; height: 78px; border: 2px solid var(--accent-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.about-stamp span:first-child { font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }
.about-stamp span:last-child { font-family: var(--serif); font-size: 1.4rem; color: var(--brand-light); }
.about-quote { position: relative; z-index: 1; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--white); }
.about-quote span { color: var(--brand-light); }

/* ---- zones (cards) ---- */
.zones { background: var(--surface); border-top: 1px solid var(--border); }
.zones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-top: 48px; }
.zone-card { background: var(--white); padding: clamp(28px, 3vw, 44px); position: relative; transition: background 0.35s; }
.zone-card:hover { background: var(--off-white); }
.zone-card::after { content: ""; position: absolute; left: clamp(28px, 3vw, 44px); bottom: 0; width: 26px; height: 2px; background: var(--brand-light); opacity: 0; transition: opacity 0.3s, width 0.4s; }
.zone-card:hover::after { opacity: 1; width: 46px; }
.zone-icon { width: 44px; height: 44px; color: var(--brand-light); margin-bottom: 22px; }
.zone-icon svg { width: 100%; height: 100%; }
.zone-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.zone-card p { font-size: 0.82rem; line-height: 1.75; color: var(--text-secondary); font-weight: 300; }

/* ---- gallery ---- */
.gallery { background: var(--white); border-top: 1px solid var(--border); }
/* `dense` matters: the .tall item leaves a hole beside the second .wide one, and
   default (sparse) placement never moves the cursor backwards, so appended items
   would skip past it. Dense backfills, packing the grid with no gaps. */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 48px; grid-auto-flow: row dense; }
.gallery-item { position: relative; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-ph { color: var(--text-tertiary); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 12px; }
.gallery-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-muted), transparent 60%); }
.gallery-item img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

/* ---- visit / find us ---- */
.visit { background: var(--surface); border-top: 1px solid var(--border); }
.visit-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 5vw, 72px); margin-top: 48px; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 26px; }
.visit-block h4 { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.visit-block p { font-size: 0.9rem; line-height: 1.7; color: var(--text-primary); }
.visit-block a { color: var(--brand-light); text-decoration: none; font-weight: 500; }
.visit-hours { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.visit-hours-row { display: flex; justify-content: space-between; font-size: 0.84rem; }
.visit-hours-row span:first-child { color: var(--text-secondary); }
.visit-hours-row span:last-child { color: var(--ink); font-weight: 500; }
/* Holds the live Leaflet map. --brand-dark shows only while tiles load. */
.visit-map { background: var(--brand-dark); min-height: 340px; position: relative; overflow: hidden; }
.visit-map-canvas { width: 100%; height: 100%; min-height: 340px; }
.visit-map-fallback { padding: 24px; color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.6; }
.visit-map-fallback a { color: var(--brand-light); }
/* Own wrapper, not .visit-block — that block's `a` rule would repaint the label brand-green on a brand-green button. */
.visit-cta { margin-top: -6px; }
.visit-map-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 26px; background: var(--brand-light); color: var(--white); text-decoration: none; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em; transition: background 0.3s; }
.visit-map-btn:hover { background: #43950a; }
.visit-map-btn svg { width: 15px; height: 15px; }

/* Leaflet overrides — pull the widget onto the site's type and palette. */
.leaflet-container { font-family: var(--sans); background: var(--surface); }
.leaflet-container a { color: var(--brand); }
.leaflet-control-attribution { font-size: 0.58rem !important; background: rgba(255,255,255,0.8) !important; }
.leaflet-popup-content { font-family: var(--sans); font-size: 0.82rem; line-height: 1.6; color: var(--text-primary); }
.leaflet-popup-content strong { color: var(--ink); font-weight: 600; }

/* Gesture-handling hint overlay ("Use ctrl + scroll…" / "Use two fingers…").
   The plugin renders it via .leaflet-container::after with 22px Roboto on a black
   scrim; this pulls it onto the site's type and a --brand-dark tint. Text itself is
   auto-localised by the plugin (en/id among others) — don't hardcode it here.
   Scoped to .leaflet-container on purpose: there is only one map on the site. */
.leaflet-container::after {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  padding: 20px 28px;
  background: rgba(7, 48, 7, 0.55);
  /* Plugin ships z-index 461, below Leaflet's popup pane (700), so the popup would
     stay bright over the dimmed map. Lift it so the whole map dims as one.
     The plugin's pointer-events:none still lets the +/- buttons take clicks. */
  z-index: 1000;
}

/* ---- contact ---- */
/* ---------- TENANT ---------- */
.tenant { background: var(--white); border-top: 1px solid var(--border); }
.tenant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); margin-top: 48px; }
.tenant-card { background: var(--surface); padding: clamp(28px, 3vw, 44px); }
.tenant-kind { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.tenant-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-bottom: 20px; }
.tenant-specs { list-style: none; margin-bottom: 20px; }
.tenant-specs li { display: flex; justify-content: space-between; gap: 20px; font-size: 0.82rem; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tenant-specs li span:first-child { color: var(--text-secondary); font-weight: 300; white-space: nowrap; }
.tenant-specs li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.tenant-card p { font-size: 0.82rem; line-height: 1.75; color: var(--text-secondary); font-weight: 300; }
.tenant-process { margin-top: clamp(48px, 6vw, 80px); }
.tenant-process h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-bottom: 26px; }
.tenant-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.tenant-steps li { counter-increment: step; background: var(--white); padding: 22px 20px; font-size: 0.8rem; line-height: 1.65; color: var(--text-secondary); font-weight: 300; }
.tenant-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--brand-light); margin-bottom: 8px; }
.tenant-terms { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px clamp(30px, 4vw, 60px); }
.tenant-terms p { font-size: 0.82rem; line-height: 1.75; color: var(--text-secondary); font-weight: 300; }
.tenant-terms strong { color: var(--ink); font-weight: 500; }
.tenant-cta { margin-top: 36px; }
.tenant-cta svg { width: 15px; height: 15px; }

/* ---------- CONTACT ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
/* Same asymmetric spine as .visit-layout above, so the two sections line up.
   No max-width — the old 720px cap stranded ~480px of empty container. */
/* No background on the grid, and gap:0 — otherwise a transparent card would
   reveal the grid's fill rather than the section. The divider is a real border
   on the second card instead of a painted 1px gap. */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; margin-top: 48px; }
/* Truly no background: the section shows through, so the two can never drift apart. */
.contact-card { background: transparent; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.contact-card + .contact-card { border-left: 1px solid var(--border); }
.contact-card h4 { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.contact-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-primary); }
/* :not() keeps the CTA out of this — .contact-card a would otherwise beat
   .visit-map-btn on specificity and paint the label green on a green button. */
.contact-card a:not(.visit-map-btn) { color: var(--brand-light); text-decoration: none; font-weight: 500; }
.contact-card a:not(.visit-map-btn):hover { text-decoration: underline; }
/* WhatsApp is the primary channel, so it carries the site's CTA treatment.
   align-self keeps the pill hugging its content instead of stretching the flex column. */
.contact-wa { align-self: flex-start; margin-top: 4px; padding: 14px 30px; }
.contact-wa svg { width: 18px; height: 18px; }
/* Reuses .visit-hours / .visit-hours-row: label left, value right, hairline rules. */
.contact-card .visit-hours { margin-top: 4px; gap: 2px; }
.contact-card .visit-hours-row { padding: 9px 0; align-items: baseline; gap: 20px; }
.contact-card .visit-hours-row + .visit-hours-row { border-top: 1px solid var(--border-light); }

/* ---- footer ---- */
footer { background: var(--brand-dark); padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 30px; height: 30px; }   /* image rule shared with .nav-mark */
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 0.76rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--brand-light); }
.footer-bottom { padding-top: 24px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 4px; background: var(--white);
    padding: 84px 32px 32px; border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; font-size: 0.95rem; }
  .nav-close { display: block; position: absolute; top: 22px; right: 26px; }
  .nav-cta { display: inline-block; margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { margin-top: 18px; }
  .hero-ticker { flex-wrap: wrap; }
  .ticker-item { flex: 1 1 50%; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .zones-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-layout { grid-template-columns: 1fr; }
  /* Parent is auto-height once stacked, so height:100% would collapse to zero. */
  .visit-map, .visit-map-canvas { min-height: 320px; height: 320px; }
  /* Only 320px of map to work with, and the Indonesian hint string is long. */
  .leaflet-container::after { font-size: 0.85rem; padding: 16px 20px; }
  .tenant-grid { grid-template-columns: 1fr; }
  .tenant-steps { grid-template-columns: repeat(2, 1fr); }
  .tenant-terms { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Stacked, so the divider runs horizontally instead. */
  .contact-card + .contact-card { border-left: none; border-top: 1px solid var(--border); }
  /* Stacked, so nothing to bottom-align against — sit the CTA under its label. */
  .contact-wa { margin-top: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .ticker-item { flex: 1 1 100%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 1; }
  .tenant-steps { grid-template-columns: 1fr; }
  .tenant-specs li { flex-direction: column; gap: 2px; }
  .tenant-specs li span:last-child { text-align: left; }
}
