/* =========================================================
   Kral Coffee — homepage styles
   Palette & type mirror the spiritjayacoffee.com layout.
   ========================================================= */

:root {
  --cream: #fffff3;
  --ink: #1d1e20;
  --ink-soft: #55565a;
  --dark: #1b1a02;      /* header-on-scroll + footer */
  --gold: #d29a00;
  --gold-hover: #b98800;
  --line: rgba(29, 30, 32, .14);
  --line-light: rgba(255, 255, 243, .35);

  --header-h: 104px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), transform .35s var(--ease);
}

/* Background appears as soon as the user scrolls down. */
.site-header.is-scrolled {
  background: var(--dark);
  border-bottom-color: rgba(255, 255, 243, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 72px;
  width: auto;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.brand:hover img { opacity: .85; }
.site-header.is-scrolled .brand img { height: 60px; }

/* ---------- Nav ---------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  color: var(--cream);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}

/* underline-grow hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

/* "Hubungi Kami" — minimal outlined pill, no fill */
.nav-cta {
  margin-left: 10px;
  padding: 11px 24px;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}

/* ---------- Dropdown ---------- */
.has-dropdown { position: relative; }

.caret {
  width: 11px;
  height: 8px;
  transition: transform .3s var(--ease);
}
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 243, .12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s var(--ease);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--cream);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14.5px;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              padding-left .22s var(--ease);
}
.dropdown a:hover {
  background: rgba(210, 154, 0, .16);
  color: var(--gold);
  padding-left: 20px;
}

/* ---------- Burger ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
}

.hero-media,
.about-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 40% black wash over the video */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}
.overlay-soft { background: rgba(27, 26, 2, .45); }

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 243, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  background: var(--cream);
  padding: 88px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 18px;
  transition: transform .35s var(--ease);
}
.feature:hover .feature-icon { transform: translateY(-4px) scale(1.06); }

.feature h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.feature p {
  color: var(--ink-soft);
  font-size: .9375rem;
  margin: 0;
}

/* =========================================================
   ABOUT (media left / text right)
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  min-height: 640px;
}

.about-media {
  position: relative;
  overflow: hidden;
}

.about-body {
  display: flex;
  align-items: center;
  padding: 96px clamp(24px, 5vw, 80px);
}

.about-inner { max-width: 560px; }

.about-inner h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  margin-bottom: 24px;
}

.about-inner p {
  color: var(--ink-soft);
  font-size: .9688rem;
}

.about-inner .btn { margin-top: 18px; }

/* =========================================================
   HIGHLIGHTS
   ========================================================= */
.highlights,
.locations { padding: 96px 0; }

.highlights { background: #f6f5e6; }
.locations { background: var(--cream); }

.highlights-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.highlights-head h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.highlights-head p { color: var(--ink-soft); margin: 0; }

.highlights-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight {
  padding: 34px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.highlight:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 0, .55);
  box-shadow: 0 18px 40px rgba(27, 26, 2, .1);
}

.highlight .num {
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.highlight h3 { font-size: 1.25rem; }
.highlight p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

/* ---------- Locations ---------- */
.location-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaee;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 0, .55);
  box-shadow: 0 18px 40px rgba(27, 26, 2, .1);
}
.location-card h3 { font-size: 1.1875rem; margin-bottom: 14px; }
.location-card p { color: var(--ink-soft); font-size: .9375rem; }
.location-card .muted {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--gold);
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  padding: 150px 0;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.125rem);
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 243, .9);
  margin-bottom: 34px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding-top: 76px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand img {
  height: 76px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  color: rgba(255, 255, 243, .65);
  font-size: .9375rem;
  max-width: 340px;
  margin: 0;
}

.site-footer h4 {
  font-size: 1.125rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 11px;
  color: rgba(255, 255, 243, .65);
  font-size: .9375rem;
}

.site-footer li a {
  position: relative;
  transition: color .25s var(--ease);
}
.site-footer li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-footer li a:hover { color: var(--gold); }
.site-footer li a:hover::after { transform: scaleX(1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 243, .1);
  padding: 24px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: .8125rem;
  color: rgba(255, 255, 243, .5);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .features-grid { gap: 36px; }
  .highlights-grid,
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 84px; }

  .brand img { height: 56px; }
  .site-header.is-scrolled .brand img { height: 48px; }
  .footer-brand img { height: 62px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--dark);
    border-top: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    border-top-color: rgba(255, 255, 243, .08);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
  }
  .nav-link { padding: 14px 0; justify-content: space-between; }
  .nav-link::after { left: 0; right: 0; bottom: 8px; }

  .nav-cta {
    margin: 14px 0 0;
    justify-content: center;
    padding: 14px 24px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 243, .04);
    border-radius: 10px;
    max-height: 0;
    padding: 0 8px;
    overflow: hidden;
    transition: max-height .35s var(--ease), padding .35s var(--ease);
  }
  .has-dropdown.is-open > .dropdown { max-height: 260px; padding: 8px; }

  .features { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }

  .about { grid-template-columns: 1fr; }
  .about-media { position: relative; height: 360px; }
  .about-body { padding: 64px 24px; }

  .highlights, .locations { padding: 64px 0; }
  .highlights-grid, .location-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 110px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}
