@import url('https://fonts.googleapis.com/css2?family=Parisienne&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Poppins:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--coffee-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ---------- Eyebrow / script heading system ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
}
.eyebrow.on-dark { color: var(--brass-onbrown); }

.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
  color: var(--coffee);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.script-heading.on-dark { color: var(--ivory); }
.script-heading.small { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: center;
}

/* Bar removed site-wide per request — kept the selector (rather than
   deleting it outright) so the <div class="rule"></div> markup already
   sitting in every page's .section-head block stays harmless instead of
   showing default browser div styling. */
.section-head .rule {
  display: none;
}

/* Full-width hairline marking a seam between two sections, in cream.
   0.16 opacity measured at only 1.53:1 contrast against the brown
   background — effectively invisible on most screens. 0.45 clears a
   real, visible 3.09:1 while staying a thin line, not a bold rule. */
.section-seam {
  width: 100%;
  height: 1px;
  background: rgba(243,238,227,0.45);
  margin: var(--sp-4) 0 0;
}
.section-seam.seam-top {
  margin: 0 0 var(--sp-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
}
.btn-primary {
  background: var(--terracotta);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--coffee-900); transform: translateY(-2px); }

.btn-outline {
  border-color: currentColor;
  color: var(--ivory);
  background: transparent;
}
.btn-outline:hover { background: var(--ivory); color: var(--coffee); }

.btn-outline-dark {
  border-color: var(--coffee);
  color: var(--coffee);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--coffee); color: var(--ivory); }

/* ---------- Arch motif (signature element) ----------
   A semi-elliptical top mimics Villa Merced's capiz window frames.
   Used for image frames, badges, and section dividers throughout. */
.arch-frame {
  border-top-left-radius: 50% 20%;
  border-top-right-radius: 50% 20%;
  overflow: hidden;
  position: relative;
}
.arch-frame::after{
  content:"";
  position:absolute; inset:0;
  border-top-left-radius: 50% 20%;
  border-top-right-radius: 50% 20%;
  box-shadow: inset 0 0 0 6px rgba(253,251,247,0.85);
  pointer-events:none;
}

.arch-divider {
  height: 34px;
  width: 100%;
  display: block;
}

/* Placeholder photo panels: warm brand-pattern fill standing in for real
   photography. Swap the `background` declaration on .photo-* classes for a
   real image (background-image: url(...)) when photos are supplied. */
.photo-panel {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(253,251,247,0.10), transparent 45%),
    repeating-linear-gradient(135deg, rgba(253,251,247,0.045) 0 2px, transparent 2px 34px),
    linear-gradient(155deg, var(--coffee) 0%, var(--coffee-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
}
.photo-panel .monogram {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.photo-panel svg { position:absolute; opacity:.14; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--coffee);
  border-bottom: 1px solid rgba(253,251,247,0.08);
}
.nav-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
  color: var(--ivory);
}
.logo-lockup .l1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  white-space: nowrap;
}
.logo-lockup .l2 {
  /* Branding serif font (not the body sans) with small-caps + wide tracking
     so "HOTEL" reads as a refined subtitle spanning the same visual width
     as "Villa Merced" above it, instead of a cramped afterthought. */
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.62em;
  text-align: center;
  color: var(--brass);
  margin-top: 4px;
  padding-left: 0.62em; /* optically re-center the trailing letter-spacing */
  white-space: nowrap;
}

@media (max-width: 420px) {
  .logo-lockup .l1 { font-size: 1.3rem; }
  .logo-lockup .l2 { font-size: 0.62rem; letter-spacing: 0.5em; padding-left: 0.5em; }
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(253,251,247,0.82);
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ivory); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(253,251,247,0.35);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--ivory);
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--coffee);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
    border-bottom: 1px solid rgba(253,251,247,0.08);
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--sp-2) var(--sp-3) var(--sp-3);
  }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid rgba(253,251,247,0.08); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--coffee-900);
  color: rgba(253,251,247,0.75);
  padding: var(--sp-5) 0 var(--sp-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(253,251,247,0.12);
}
.footer-grid h4 {
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}
.footer-grid p, .footer-grid a { font-size: 0.86rem; line-height: 1.7; }
.footer-grid a:hover { color: var(--ivory); }
.footer-grid li { margin-bottom: 0.4rem; }

/* Footer social icons must be visible by default (not only revealed on
   hover) since mobile/tablet has no hover state at all. Desktop keeps a
   hover highlight on top of that baseline visibility. */
.site-footer .social-row a {
  color: var(--ivory);
  border-color: rgba(253,251,247,0.35);
}
.site-footer .social-row a:hover {
  background: rgba(253,251,247,0.14);
  color: var(--ivory);
}

/* Sub-brand links, now living under the social row instead of the
   footer-bottom strip. */
.footer-brands { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.footer-brands a { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(253,251,247,0.25); padding: 0.35rem 0.7rem; border-radius: 999px; }
.footer-brands a:hover { border-color: rgba(253,251,247,0.6); }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

/* Reservations column: the inquiry/reservation form link is the priority
   action, styled as a button above the plain contact links. */
.footer-reserve-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--terracotta);
  color: var(--ivory) !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: .03em;
  padding: .6rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--sp-2) !important;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.footer-reserve-cta:hover { background: var(--coffee-900); transform: translateY(-1px); color: var(--ivory); }
.footer-reserve-cta svg { width: 15px; height: 15px; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic section rhythm ---------- */
.section { padding: var(--sp-6) 0; }
.section.on-brown { background: var(--coffee); color: var(--ivory); }
.section.on-cream { background: var(--cream); }
.section.tight { padding: var(--sp-5) 0; }

/* ---------- Icon style ---------- */
.icon-line { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ivory);
  color: var(--coffee);
  padding: 0.6rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: var(--sp-2); top: var(--sp-2); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Heading hierarchy (shared across all 9 pages) ----------
   Keeps every page's headings and body copy on the same fluid scale so
   nothing feels ad-hoc from one section or page to the next. */
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); }
body, p, li { font-size: var(--fs-body); line-height: var(--lh-body); }
small, .text-small { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); }
.script-heading { font-size: var(--fs-h1); }
.script-heading.small { font-size: var(--fs-h2); }

/* ---------- Image / media card system ----------------------------------
   One shared visual language for every photo slot on the site: a thin
   1px hairline border, a soft resting shadow, rounded corners, and a
   restrained hover lift + zoom. Placeholder panels (.photo-panel) and
   real photos (.img-card img / .img-card picture) both use it, so the
   look doesn't change when real photography gets dropped in later.
   webp-ready: point any .img-card img src/srcset at a .webp file — no
   markup changes needed. */
.img-card,
.photo-panel {
  position: relative;
  overflow: hidden;
  border: var(--card-border);
  box-shadow: var(--card-shadow-rest);
  transition: box-shadow .45s var(--ease-soft), transform .45s var(--ease-soft), border-color .45s var(--ease-soft);
}
/* Regular (non-arch) panels get uniform rounded corners. .arch-frame keeps
   its own asymmetric top-arch radius, defined further up in this file. */
.img-card:not(.arch-frame),
.photo-panel:not(.arch-frame) {
  border-radius: var(--radius-md);
}
/* Full-bleed hero/page-hero backgrounds aren't "cards" — no border, radius,
   or shadow on those, just the photo. */
.hero .photo-panel,
.page-hero.photo-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}
.on-brown .img-card,
.on-brown .photo-panel,
.section.on-brown .img-card,
.section.on-brown .photo-panel {
  border: var(--card-border-dark);
}
.img-card:hover,
a.img-card:hover,
.room-showcase-image:hover,
.nearby-card:hover .img-card,
.space-card:hover .img-card {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.img-card img,
.img-card video,
.img-card picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .8s var(--ease-soft);
}
.img-card:hover img,
.img-card:hover video {
  transform: scale(1.045);
}
.img-card .img-card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(0deg, rgba(25,15,11,.62), transparent);
  color: var(--ivory);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Standard aspect ratios so grids of image cards line up cleanly. */
.img-card.ratio-square   { aspect-ratio: 1 / 1; }
.img-card.ratio-4-3      { aspect-ratio: 4 / 3; }
.img-card.ratio-16-10    { aspect-ratio: 16 / 10; }
.img-card.ratio-16-9     { aspect-ratio: 16 / 9; }
.img-card.ratio-9-16     { aspect-ratio: 9 / 16; } /* portrait video cards */
.img-card.ratio-4-5      { aspect-ratio: 4 / 5; }

@media (prefers-reduced-motion: reduce) {
  .img-card, .photo-panel, .img-card img, .img-card video { transition: none !important; }
}

/* ---------- Responsive baseline additions ----------
   Fills small gaps left by the per-component breakpoints: fluid section
   padding on very small phones, and guarding against horizontal overflow
   from anything unexpectedly wide (iframes, embeds, tables). */
img, video, iframe { max-width: 100%; }
table { max-width: 100%; }

@media (max-width: 480px) {
  .section { padding: var(--sp-5) 0; }
  .section.tight { padding: var(--sp-4) 0; }
  .wrap { padding: 0 var(--sp-2); }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.82rem; }
}
/* ---------------------------------------------------------
   Floating "Book Your Stay" CTA — minimalistic, mobile-first.
   Appears once the hero is scrolled past; stays out of the way
   otherwise. Desktop gets a smaller pill in the bottom corner.
   --------------------------------------------------------- */
.floating-cta {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: var(--sp-3);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--ivory);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 12px 30px -10px rgba(62,38,32,0.55);
}
.floating-cta svg { width: 17px; height: 17px; }
.floating-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cta:hover { background: var(--coffee-900); }

@media (min-width: 761px) {
  .floating-cta {
    left: auto;
    right: var(--sp-3);
    bottom: var(--sp-3);
    transform: translateY(140%);
  }
  .floating-cta.is-visible { transform: translateY(0); }
}

/* ---------------------------------------------------------
   Google rating badge — real rating/review count sourced from
   the hotel's Google Business Profile, linking out to the
   review list. Reused on the homepage and Reviews page.
   --------------------------------------------------------- */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(253,251,247,0.3);
  background: rgba(253,251,247,0.06);
  color: inherit;
  font-size: .82rem;
}
.google-rating-badge .stars { display: inline-flex; gap: 1px; }
.google-rating-badge .stars svg { width: 14px; height: 14px; color: var(--star-gold); }
.google-rating-badge strong { font-weight: 700; }
.google-rating-badge .g-count { opacity: .82; }
.google-rating-badge:hover { border-color: rgba(253,251,247,0.55); }
.on-cream .google-rating-badge { border-color: var(--line); background: var(--ivory); color: var(--coffee-700); }
/* Star gold at full saturation is 2.18:1 on ivory/cream — fails WCAG AA
   non-text contrast (3:1). Only fires if a badge/stars-row ever lands on
   a light section; on-brown usage elsewhere is unaffected. */
.on-cream .google-rating-badge .stars svg,
.on-cream .stars-row svg { color: var(--star-gold-onlight); }

/* ---------------------------------------------------------
   Star rating row used on individual testimonial cards.
   --------------------------------------------------------- */
.stars-row { display: inline-flex; gap: 2px; margin-bottom: .5rem; }
.stars-row svg { width: 15px; height: 15px; color: var(--star-gold); }