/* css/style.css */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --cream: #F5F0E8;
  --black: #1A1A18;
  --terracotta: #C4725A;
  --palm: #7B8B6F;
  --rule: #E0D9CE;
  --muted: #6B6560;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, Arial, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 120px);
  --side-pad: clamp(24px, 6vw, 120px);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C8B75' fill-opacity='0.04' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

::selection {
  background: var(--terracotta);
  color: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
}

/* Images fill their containers */
.hero-bg img,
.about-photo img,
.gallery-item img,
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--side-pad);
  color: var(--cream);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

nav.scrolled {
  color: var(--black);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-book {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  transition: background 0.3s var(--ease);
}

.nav-book:hover { background: var(--black); }

.nav-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-menu span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-menu span:first-child { top: 0; }
.nav-menu span:last-child { bottom: 0; }

@media (max-width: 768px) {
  .nav-links, .nav-book { display: none; }
  .nav-menu { display: block; }
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--side-pad) calc(var(--section-pad) * 0.8);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(89, 58, 38, 0.75) 0%,
    rgba(89, 58, 38, 0.3) 40%,
    rgba(60, 45, 30, 0.08) 100%
  );
}

/* Leaf silhouette parallax layer */
.hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -8%;
  width: 50%;
  height: 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100 0C100 0 30 80 30 200s70 200 70 200c0 0-35-100-35-200S100 0 100 0z' fill='%237B8B6F'/%3E%3Cpath d='M100 0C100 0 170 80 170 200s-70 200-70 200c0 0 35-100 35-200S100 0 100 0z' fill='%237B8B6F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--cream);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s var(--ease) forwards;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.4s var(--ease) forwards;
}

.btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: background 0.3s var(--ease);
}

.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s var(--ease) forwards;
}

.btn:hover { background: var(--black); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Divider (ornamental) ── */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

/* ── Tropical Accent Strip ── */
.tropical-strip {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--palm) 30%, var(--terracotta) 50%, var(--palm) 70%, transparent 100%);
  opacity: 0.25;
}

/* ── Frangipani SVG accent ── */
.frangipani {
  display: block;
  margin: 0 auto;
}

/* ── Brand Statement ── */
.statement {
  padding: var(--section-pad) var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.statement p {
  max-width: 600px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}

/* ── Section Title (reusable) ── */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ── Services Overview ── */
.services {
  padding: var(--section-pad) var(--side-pad);
}

.services-list {
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
}

.service-row:hover {
  background: rgba(196, 114, 90, 0.04);
}

.service-name {
  font-size: 1.5rem;
  font-weight: 400;
}

.service-summary {
  font-size: 0.9rem;
  color: var(--muted);
}

.service-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .service-link { justify-self: start; }
}

/* ── About ── */
.about {
  padding: var(--section-pad) var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-photo {
  aspect-ratio: 102 / 240;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 21.25% 21.25% 0 0;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-photo {
    aspect-ratio: 102 / 240;
    border-radius: 50% 50% 0 0 / 21.25% 21.25% 0 0;
  }
}

/* ── Gallery ── */
.gallery {
  padding: var(--section-pad) var(--side-pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 102 / 240;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 50% 50% 0 0 / 21.25% 21.25% 0 0;
}

.gallery-item img {
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196, 114, 90, 0.15);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item {
    border-radius: 50% 50% 0 0 / 21.25% 21.25% 0 0;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Contact ── */
.contact {
  padding: var(--section-pad) var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-detail p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-detail a {
  transition: color 0.3s;
}

.contact-detail a:hover {
  color: var(--terracotta);
}

.contact-map {
  min-height: 350px;
  overflow: hidden;
  border-radius: 12px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; }
}

/* ── Footer ── */
footer {
  padding: 3rem var(--side-pad) 2rem;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a,
.footer-social a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover { color: var(--black); }

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-sm {
  font-size: 0.65rem;
  padding: 0.55rem 1.2rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Services Page ── */
body.page-services nav {
  color: var(--black);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.page-header {
  padding: 10rem var(--side-pad) 3rem;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.page-intro {
  font-size: 1rem;
  color: var(--muted);
}

.category-nav {
  position: sticky;
  top: 60px;
  z-index: 50;
  display: flex;
  gap: 2rem;
  padding: 1rem var(--side-pad);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.category-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.category-link:hover,
.category-link.active { color: var(--black); }

.menu-section {
  padding: var(--section-pad) var(--side-pad) 3rem;
}

.menu-category {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.menu-list {
  margin-bottom: 2.5rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
}

.menu-item:hover {
  background: rgba(196, 114, 90, 0.04);
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.menu-item-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.menu-item-duration {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

.menu-item-book {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color 0.3s;
}

.menu-item-book:hover { color: var(--black); }

.menu-cta {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .menu-item {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }
  .menu-item-info { grid-column: 1 / -1; }
  .menu-item-duration { justify-self: start; }
  .menu-item-price { justify-self: end; }
  .menu-item-book { grid-column: 1 / -1; justify-self: start; }

  .category-nav { gap: 1.5rem; overflow-x: auto; }
}

/* ── Mobile Menu ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
}

.mobile-overlay .btn {
  margin-top: 1rem;
  opacity: 1;
  transform: none;
  animation: none;
}

.nav-menu.open span:first-child {
  transform: translateY(9.5px) rotate(45deg);
}
.nav-menu.open span:last-child {
  transform: translateY(-9.5px) rotate(-45deg);
}
