/* ===== Polymath Font Faces (Versi 2) ===== */
/* Anggap semua file .otf disimpan di folder ./fonts/ */

@font-face {
  font-family: "Polymath Text";
  src: url("/storage/fonts/PolymathTextDemo-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polymath Text";
  src: url("/storage/fonts/PolymathTextDemo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polymath Text";
  src: url("/storage/fonts/PolymathTextDemo-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polymath";
  src: url("/storage/fonts/PolymathDemo-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polymath";
  src: url("/storage/fonts/PolymathDemo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polymath";
  src: url("/storage/fonts/PolymathDemo-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== Base & Font ===== */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #05070a;
  color: #f5f5f5;
  font-family: "Polymath Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* Polymath font – sambungkan file font Anda sendiri */
@font-face {
  font-family: "Polymath";
  src: url("/storage/fonts/Polymath.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #080a0e;
  --bg-darker: #05070a;
  --bg-wood: #3b2412;
  --accent: #c08c57;   /* tembaga */
  --accent-soft: #e2b889;
  --text-main: #f5f5f5;
  --text-muted: #b1b5c0;
  --border-subtle: #242733;
}

.align-center{
    text-align: center !important;
}

/* ===== Preloader (Versi 3) ===== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.04), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255,255,255,0.04), transparent 55%),
    #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  padding: 2.2rem 2.8rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,10,0.9);
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
  text-align: center;
  min-width: 260px;
}

.preloader-logo {
  font-family: "Polymath", "Polymath Text", serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin-bottom: 1.4rem;
}

/* ===== Scroll-in Reveal (Versi 4) ===== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Garis tipis progress */
.preloader-line {
  position: relative;
  width: 190px;
  max-width: 100%;
  height: 2px;
  margin: 0 auto 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.preloader-line-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    rgba(226,184,137,0.1),
    var(--accent),
    rgba(226,184,137,0.9)
  );
  animation: preloaderLine 1.6s cubic-bezier(0.33, 0.01, 0.17, 0.99) forwards;
}

/* Caption kecil di bawah garis */
.preloader-caption {
  margin: 0;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Animasi garis mengisi */
@keyframes preloaderLine {
  0% {
    transform: scaleX(0);
  }
  15% {
    transform: scaleX(0.2);
  }
  50% {
    transform: scaleX(0.7);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Kontainer umum */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5,7,10,0.95), rgba(5,7,10,0.6));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36,39,51,0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

/* Logo */
.logo-mark {
  font-family: "Polymath", "Polymath Text", serif;
}

.logo-mark:hover {
  color: var(--accent-soft);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--accent-soft);
}

/* Header CTA */
.header-cta {
  font-size: 0.75rem;
}

/* ===== Buttons & Links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

.btn-outline {
  border-color: rgba(241,241,241,0.4);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(241,241,241,0.25);
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(241,241,241,0.5);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.link-inline::after {
  content: "→";
  font-size: 0.8em;
}

.link-inline:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.link-inline.light {
  color: #fbe3c1;
}

.link-inline.light:hover {
  border-color: #fbe3c1;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("/storage/images/TAKK-Bali-Hero.jpg"); /* existing */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* parallax sederhana */
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(0,0,0,0.7), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(0,0,0,0.8), transparent 55%),
              rgba(0,0,0,0.45);
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.hero-content {
  position: relative;
  padding-top: 5rem; /* offset header */
  padding-bottom: 4rem;
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245,245,245,0.7);
  margin-bottom: 0.75rem;
}

/* Hero title */
.hero-title {
  font-family: "Polymath", "Polymath Text", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}


.hero-subtitle {
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: radial-gradient(circle at top, #10131c 0, #05070a 55%, #020307 100%);
}

.section-wood {
  background: radial-gradient(circle at top, #55321b 0, #3b2412 55%, #2b190d 100%);
}

/* Section heading (eyebrow) */
.section-eyebrow {
  font-family: "Polymath", "Polymath Text", serif;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.section-eyebrow.light {
  color: #fbe3c1;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.body-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.body-light {
  color: #fbe3c1;
}

.max-480 {
  max-width: 30rem;
}

.max-420 {
  max-width: 26rem;
}

/* ===== Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Story big heading */
.story-heading {
  font-family: "Polymath", "Polymath Text", serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 1rem 0 1rem;
}

.story-left .body-copy {
  margin-bottom: 1rem;
}

.story-media {
  position: relative;
}

.story-media img {
  display: block;
  width: 100%;
  border-radius: 0px;
}

.plate-image {
  overflow: hidden;
  border-radius: 0px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}

.plate-image img {
  transition: transform 0.6s ease;
}

.plate-image:hover img {
  transform: scale(1.04);
}

.chef-image {
  position: absolute;
  bottom: -14%;
  left: -10%;
  width: 42%;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

/* ===== Awaits ===== */
.awaits-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.awaits-media img {
  width: 100%;
  border-radius: 1.4rem;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* ===== Signatures ===== */
.signatures-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.signature-card {
  background: rgba(10,12,18,0.95);
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.signature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.18);
}

.card-image img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

/* Card titles (signatures) */
.card-title {
  font-family: "Polymath", "Polymath Text", serif;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Location ===== */
.location-inner {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.location-text {
  max-width: 34rem;
}

.location-map img {
  width: 100%;
  border-radius: 0px;
  display: block;
  border: 1px solid rgba(255,255,255,0.4);
  /* box-shadow: 0 18px 40px rgba(0,0,0,0.7); */
}

.location-cta {
  margin-top: 0.25rem;
}

/* ===== Location (Mapbox – Versi 5B-1) ===== */

.location-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: stretch;
}

.location-text {
  max-width: 26rem;
}

.location-map {
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0px;
  background: #000;
}

#takk-map {
  width: 100%;
  height: 340px;
}

/* Sedikit tweak untuk feel grayscale & clarity */
#takk-map canvas {
  filter: grayscale(100%) contrast(112%) brightness(92%);
}

/* Responsive */
@media (max-width: 768px) {
  .location-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  #takk-map {
    height: 260px;
  }
}

/* ===== Reserve ===== */
.reserve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 3.2rem;
  align-items: stretch;
}

.reserve-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: rgba(241,241,241,0.4);
  margin-bottom: 0.75rem;
}

.reserve-form {
  margin-top: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: rgba(241,241,241,0.85);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(88,93,112,0.9);
  background-color: rgba(10,12,18,0.9);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #636878;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(192,140,87,0.4);
  background-color: #0f121d;
}

.reserve-notes {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reserve right */
.reserve-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reserve-image {
  flex: 1;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.reserve-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.reserve-image:hover img {
  transform: scale(1.04);
}

/* Reserve tagline */
.reserve-tagline {
  margin-top: 1rem;
  text-align: right;
  font-family: "Polymath", "Polymath Text", serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-soft);
}

/* ===== Footer hero ===== */
.footer-hero {
  position: relative;
  background-image: url("/storage/images/footer-dishes.jpg"); /* ganti gambar dish strip */
  background-size: cover;
  background-position: center;
  padding: 3.5rem 0;
}

.footer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.footer-hero-inner {
  position: relative;
  text-align: center;
}

/* Footer hero title */
.footer-hero-title {
  font-family: "Polymath", "Polymath Text", serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.site-footer {
  background: #05070a;
  border-top: 1px solid rgba(36,39,51,0.7);
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--accent-soft);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    display: none; /* bisa diganti hamburger kalau mau JS */
  }

  .hero-content {
    padding-top: 6rem;
  }

  .story-grid,
  .reserve-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chef-image {
    position: absolute;
    bottom: -18%;
    left: 8%;
    width: 46%;
  }

  .signatures-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-title {
    letter-spacing: 0.14em;
  }

  .hero-subtitle {
    max-width: none;
  }

  .signatures-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-center {
    order: 3;
  }
}

/* =========================================================
   TAKK MENU MODAL – Elegant PDF Viewer
   ========================================================= */

/* Root modal */
.takk-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.takk-modal.is-open {
  display: flex;
}

/* Backdrop */
.takk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Modal panel */
.takk-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  background: #070a0f;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 120px rgba(0,0,0,0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   HEADER
   ========================================================= */
.takk-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0)
  );
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand */
.takk-modal__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.takk-modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent, #d7a36a);
  line-height: 1.2;
}

.takk-modal__title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f5f5;
  line-height: 1.2;
}

/* Header actions */
.takk-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ghost button (Open PDF) */
.takk-modal__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(245,245,245,0.92);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.takk-modal__ghost:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}

/* Close button */
.takk-modal__close {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #f5f5f5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.takk-modal__close:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}

.takk-modal__close span {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

/* =========================================================
   BODY / PDF VIEWER
   ========================================================= */
.takk-modal__body {
  flex: 1;
  background: #0b1016;
}

.takk-modal__pdf {
  width: 100%;
  height: 70vh;
  max-height: calc(100vh - 210px);
  border: 0;
  background: #0b1016;
}

/* =========================================================
   FOOTER
   ========================================================= */
.takk-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );
}

.takk-modal__note {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .takk-modal {
    padding: 14px;
  }

  .takk-modal__pdf {
    height: 62vh;
  }

  .takk-modal__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}