/* =========================================================
   D'PALASAN — stylesheet
   Design tokens derived from the brand mark: warm gold gradient
   circle on deep espresso ink, with a botanical line motif and
   a parchment "treatment docket" for the service menu.
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
p,
ul,
li,
figure {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
svg {
  display: block;
}

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

/* ---------- Tokens ---------- */
:root {
  /* ink (dark) surfaces */
  --ink: #19140d;
  --ink-2: #201810;
  --ink-3: #2b2116;
  --line-on-ink: rgba(244, 236, 218, 0.14);

  /* parchment (light) surfaces */
  --parchment: #f6efdd;
  --parchment-2: #ece0c4;
  --line-on-parchment: rgba(36, 27, 16, 0.14);

  /* text */
  --text-on-ink: #f3ead8;
  --muted-on-ink: #c7b996;
  --text-on-parchment: #251c10;
  --muted-on-parchment: #6e5c3e;

  /* gold accent */
  --gold-100: #fbd98b;
  --gold-300: #efb454;
  --gold-500: #d4901f;
  --gold-700: #9c6a16;
  --gold-ink: #7c4f0e; /* darkened for gold text set on parchment — keeps 4.5:1+ contrast */
  --gold-grad: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-300) 45%, var(--gold-500) 100%);

  /* botanical accent */
  --sage: #7c8f63;
  --sage-deep: #4b5a38;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --container-w: 1180px;
  --header-h: 78px;
}

/* ---------- Base ---------- */
html,
body {
  overflow-x: hidden;
}
body {
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gold-300);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.eyebrow--dark {
  color: var(--gold-ink);
}
.eyebrow__line {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  flex: none;
}

.section-title {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
  color: var(--text-on-ink);
}
.section-title--dark {
  color: var(--text-on-parchment);
}

.accent-gold {
  font-style: italic;
  font-weight: 500;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* botanical decorative line-art (used behind hero / cta) */
.botanical-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
}
.botanical-line path {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.botanical-line circle {
  fill: var(--gold-300);
}
.botanical-line--hero {
  top: -40px;
  right: -60px;
  width: 460px;
  height: auto;
}
.botanical-line--cta {
  left: -40px;
  bottom: -30px;
  width: 420px;
  height: auto;
}

/* ---------- Reveal-on-scroll ----------
   Only pre-hide content once we know JS is running (html.js, set by an
   inline script at the top of body). If JS never loads, [data-reveal]
   elements simply stay visible — content is never permanently hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary {
  background: var(--gold-grad);
  color: #241a0b;
  box-shadow: 0 10px 24px -10px rgba(212, 144, 31, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(212, 144, 31, 0.65);
}
.btn--ghost {
  background: transparent;
  color: var(--text-on-ink);
  border: 1px solid var(--line-on-ink);
}
.btn--ghost:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}
.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}
.icon--arrow {
  transition: transform 0.25s ease;
}
.btn:hover .icon--arrow {
  transform: translateX(3px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(25, 20, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(25, 20, 13, 0.92);
  border-bottom-color: var(--line-on-ink);
}

.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: none;
}
.brand-logo {
  height: 52px;
  width: auto;
}

.nav-links {
  flex: 1;
  display: none;
}
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: center;
}
.nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-on-ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-300);
  transition: right 0.25s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text-on-ink);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-cta {
  display: none;
  flex: none;
}

.nav-toggle {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  width: 22px;
  height: 1.5px;
  background: var(--text-on-ink);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition:
    max-height 0.35s ease,
    border-color 0.35s ease;
}
.mobile-menu.is-open {
  max-height: 420px;
  border-bottom-color: var(--line-on-ink);
}
.mobile-menu nav ul {
  padding: 10px 24px 6px;
}
.mobile-menu .nav-link {
  display: block;
  padding: 13px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--line-on-ink);
}
.mobile-menu__cta {
  margin: 18px 24px 26px;
}

@media (min-width: 860px) {
  .nav-links {
    display: block;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-menu {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 88px;
  background: radial-gradient(ellipse at 85% 8%, rgba(212, 144, 31, 0.16), transparent 55%), var(--ink);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  font-weight: 600;
  color: var(--text-on-ink);
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 46ch;
  color: var(--muted-on-ink);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted-on-ink);
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 7px 15px;
}

.hero-media {
  position: relative;
  justify-self: center;
  width: clamp(230px, 64%, 300px);
  min-width: 0;
}
.hero-media__ring {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--gold-500);
  opacity: 0.4;
  border-radius: 50% / 46%;
}
.hero-media__img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 50% / 46%;
  border: 6px solid var(--ink-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
}
.hero-media__badge {
  position: absolute;
  left: -10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--parchment);
  color: var(--text-on-parchment);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
}
.hero-media__badge .icon {
  width: 18px;
  height: 18px;
  color: var(--gold-700);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    text-align: left;
  }
  .hero-media {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding-block: 96px;
  background: var(--ink);
}

.about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
  width: clamp(220px, 70%, 300px);
  margin-inline: auto;
  min-width: 0;
}
.about-media__main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-on-ink);
}
.about-media__main img {
  width: 100%;
  height: auto;
  max-height: 375px;
  object-fit: cover;
}
.about-media__inset {
  position: absolute;
  width: 46%;
  bottom: -34px;
  right: -28px;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}
.about-media__inset img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.about-text {
  color: var(--muted-on-ink);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 40px;
}

.pillars {
  display: grid;
  gap: 22px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pillar__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-3);
  color: var(--gold-300);
  border: 1px solid var(--line-on-ink);
}
.pillar__icon svg {
  width: 22px;
  height: 22px;
}
.pillar__label {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-on-ink);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .about-media {
    width: 100%;
    max-width: 340px;
    margin-inline: 0;
    justify-self: start;
    min-width: 0;
  }
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 20px;
  }
  .pillar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ---------- seam / perforation divider ---------- */
.seam {
  position: relative;
  height: 0;
}
.seam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background-image: radial-gradient(circle, var(--dot-color, var(--parchment)) 3.5px, transparent 3.8px);
  background-size: 26px 22px;
  background-repeat: repeat-x;
  background-position: center;
}
.seam--down {
  background: var(--ink);
}
.seam--down::before {
  top: -22px;
  --dot-color: var(--parchment);
}
.seam--up {
  background: var(--parchment);
}
.seam--up::before {
  top: -22px;
  --dot-color: var(--ink);
}

/* =========================================================
   SERVICES (parchment "menu" section)
   ========================================================= */
.services {
  background: var(--parchment);
  padding-block: 88px 100px;
}

.services-head {
  max-width: 62ch;
  margin-bottom: 56px;
}
.services-intro {
  color: var(--muted-on-parchment);
  font-size: 16.5px;
  margin-top: 18px;
  max-width: 56ch;
}

.menu-block {
  margin-bottom: 64px;
}
.menu-block:last-child {
  margin-bottom: 0;
}
.menu-block__title {
  font-size: 1.5rem;
  color: var(--text-on-parchment);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-on-parchment);
}

/* table */
.menu-table-wrap {
  overflow-x: auto;
}
.menu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}
.menu-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-parchment);
  padding-bottom: 12px;
  font-weight: 500;
}
.menu-table thead th:not(:first-child) {
  text-align: right;
}
.menu-table tbody th {
  text-align: left;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-on-parchment);
  font-size: 15.5px;
}
.menu-table tbody tr {
  border-top: 1px dashed var(--line-on-parchment);
}
.menu-table tbody td,
.menu-table tbody th {
  padding: 15px 6px;
}
.menu-table tbody td {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-on-parchment);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* docket list */
.menu-list__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px dashed var(--line-on-parchment);
  flex-wrap: wrap;
}
.menu-list__name {
  font-weight: 500;
  color: var(--text-on-parchment);
  font-size: 15.5px;
  flex: none;
}
.menu-list__leader {
  flex: 1 1 40px;
  min-width: 24px;
  border-bottom: 1px dotted var(--line-on-parchment);
  height: 0;
  transform: translateY(-4px);
}
.menu-list__prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--parchment-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-on-parchment);
  white-space: nowrap;
}
.pill__dur {
  color: var(--muted-on-parchment);
  font-size: 11.5px;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding-block: 100px;
  text-align: center;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title {
  font-size: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  font-style: italic;
  color: var(--text-on-ink);
  margin-bottom: 40px;
  max-width: 16ch;
}

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

.footer-grid {
  display: grid;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-ink);
}

.footer-brand .footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  color: var(--muted-on-ink);
  font-size: 14.5px;
  max-width: 32ch;
  line-height: 1.7;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--gold-300);
  margin-bottom: 20px;
}

.footer-contact li,
.footer-hours li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--muted-on-ink);
}
.footer-contact .icon {
  width: 17px;
  height: 17px;
  color: var(--gold-300);
  flex: none;
}
.footer-contact a:hover {
  color: var(--text-on-ink);
}
.footer-hours li {
  justify-content: space-between;
  gap: 18px;
}
.footer-hours li span:first-child {
  color: var(--text-on-ink);
}

.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14.5px;
  color: var(--muted-on-ink);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-block: 26px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13.5px;
  color: var(--muted-on-ink);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-on-ink);
  display: grid;
  place-items: center;
  color: var(--text-on-ink);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}
.back-to-top:hover {
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: #241a0b;
  box-shadow: 0 14px 30px -10px rgba(212, 144, 31, 0.6);
  transition: transform 0.25s ease;
}
.whatsapp-float svg {
  width: 27px;
  height: 27px;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
}

/* =========================================================
   RESPONSIVE — containers & section rhythm
   ========================================================= */
@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}
@media (min-width: 1200px) {
  .container {
    padding-inline: 40px;
  }
}

@media (max-width: 480px) {
  .hero-media__badge {
    font-size: 12px;
    padding: 10px 14px;
  }
  .cta-title {
    max-width: none;
  }
  .menu-table tbody th,
  .menu-table tbody td {
    padding: 14px 4px;
    font-size: 13.5px;
  }
  .menu-table thead th {
    font-size: 11px;
  }
}
