/*
Theme Name: Villa Hamilton
Theme URI: https://villa-direjct-stay.lovable.app
Author: The Villa Hamilton
Author URI: https://villa-direjct-stay.lovable.app
Description: A warm, cozy guesthouse theme for The Villa Hamilton. Cream + stone + soft brown palette, Cormorant Garamond headings, Inter body. Honest, welcoming, not overdone.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villa-hamilton
Tags: blog, hotel, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Warm cream / walnut / brass palette — matches Villa Hamilton design system */
  --vh-bg:        #f7f3ea;
  --vh-card:      #fbf8f1;
  --vh-fg:        #34291e;
  --vh-muted:     #6f5f4d;
  --vh-border:    #d9cebb;
  --vh-primary:   #5a4632;
  --vh-primary-fg:#f7f3ea;
  --vh-accent:    #b58a3a;     /* brass */
  --vh-stone:     #4e4332;

  --vh-radius:    8px;
  --vh-shadow-soft: 0 4px 20px -8px rgba(60, 45, 30, 0.18);
  --vh-shadow-warm: 0 8px 30px -10px rgba(90, 70, 50, 0.25);

  --vh-font-serif: "Cormorant Garamond", Georgia, serif;
  --vh-font-sans:  "Inter", system-ui, -apple-system, sans-serif;

  --vh-container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--vh-bg);
  color: var(--vh-fg);
  font-family: var(--vh-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vh-primary); text-decoration: none; }
a:hover { color: var(--vh-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--vh-font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--vh-fg);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--vh-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--vh-bg);
  border-bottom: 1px solid var(--vh-border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.site-brand-wrap { flex-shrink: 0; }
.site-brand__logo img { max-height: 48px; width: auto; }
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.site-header__book,
.site-header__my-booking {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.primary-nav__list,
.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.primary-nav__list a,
.primary-nav ul a {
  font-size: 0.9rem;
  color: var(--vh-stone);
  font-weight: 500;
  white-space: nowrap;
}
.primary-nav__list a:hover,
.primary-nav ul a:hover { color: var(--vh-accent); }
.site-brand {
  font-family: var(--vh-font-serif);
  font-size: 1.5rem;
  color: var(--vh-fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-brand small {
  display: block; font-family: var(--vh-font-sans); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--vh-muted);
  font-weight: 500;
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--vh-border);
  padding: 0.5rem 0.75rem; border-radius: var(--vh-radius);
  font-size: 1.1rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--vh-radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--vh-primary);
  color: var(--vh-primary-fg);
}
.btn-primary:hover { background: var(--vh-stone); color: var(--vh-primary-fg); }
.btn-outline {
  background: transparent;
  color: var(--vh-fg);
  border-color: var(--vh-border);
}
.btn-outline:hover { border-color: var(--vh-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,10,0.15) 0%, rgba(30,20,10,0.75) 100%);
}
.hero__content {
  position: relative; padding: 4rem 0;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero p  { color: rgba(255,255,255,0.9); max-width: 560px; font-size: 1.1rem; }
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__cta .btn-outline {
  background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4);
}
.hero__eyebrow {
  color: var(--vh-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* ---------- Vik Booking layout ---------- */
.page-vik-full .entry,
.entry--vik {
  max-width: none;
  padding: 2.5rem 0 4rem;
}
.entry__header--vik {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.entry__lead {
  color: var(--vh-muted);
  font-size: 1.05rem;
  margin: 0;
}
.entry__content--vik {
  max-width: var(--vh-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.vik-home-search-panel {
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  padding: 2rem;
  box-shadow: var(--vh-shadow-soft);
}
.vik-fallback-cta {
  text-align: center;
  margin-top: 2rem;
}
/* Soften Vik output inside theme wrapper */
.vik-booking-wrap .vbo-searchform,
.vik-booking-wrap .vbsearch,
.vik-booking-wrap .vikbooking {
  font-family: var(--vh-font-sans);
}
.section--search { padding-top: 3rem; padding-bottom: 3rem; }

/* ---------- Split feature (stay / dine) ---------- */
.split-feature {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split-feature__card {
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  overflow: hidden;
  box-shadow: var(--vh-shadow-soft);
  display: flex;
  flex-direction: column;
}
.split-feature__img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.split-feature__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.split-feature__body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- CTA band ---------- */
.section--cta-band {
  background: var(--vh-stone);
  color: var(--vh-primary-fg);
  padding: 3.5rem 0;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0.5rem 0 0; opacity: 0.9; }
.section--cta-band .btn-primary {
  background: var(--vh-accent);
  color: var(--vh-fg);
}
.section--cta-band .btn-primary:hover {
  background: #c99a45;
  color: var(--vh-fg);
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--vh-card); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head .eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--vh-accent); margin-bottom: 0.75rem;
}

/* ---------- Cards / Rooms ---------- */
.room-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.room-card {
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  overflow: hidden;
  box-shadow: var(--vh-shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--vh-shadow-warm); }
.room-card__img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
}
.room-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.room-card__meta { color: var(--vh-muted); font-size: 0.9rem; }
.room-card__price {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--vh-font-serif); font-size: 1.5rem; color: var(--vh-fg);
}
.room-card__price small { font-family: var(--vh-font-sans); font-size: 0.8rem; color: var(--vh-muted); }

/* ---------- Amenities ---------- */
.amenities {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.amenity {
  background: var(--vh-card); border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem;
}
.amenity__icon { font-size: 1.5rem; }
.amenity {
  justify-content: center;
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  aspect-ratio: 1/1; object-fit: cover; border-radius: var(--vh-radius);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--vh-stone);
  color: rgba(247,243,234,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: rgba(247,243,234,0.85); }
.site-footer a:hover { color: var(--vh-accent); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem; font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: rgba(247,243,234,0.6);
}

/* ---------- Posts / single ---------- */
.entry { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.entry h1 { margin-bottom: 0.5rem; }
.entry__meta { color: var(--vh-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.entry img { border-radius: var(--vh-radius); margin: 1.5rem 0; }
.entry blockquote {
  border-left: 3px solid var(--vh-accent);
  padding: 0.5rem 1.25rem; margin: 1.5rem 0;
  font-family: var(--vh-font-serif); font-style: italic; font-size: 1.2rem;
  color: var(--vh-stone);
}

/* ---------- Forms (comments etc) ---------- */
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  background: var(--vh-card);
  font-family: inherit; font-size: 1rem;
  color: var(--vh-fg);
}
input:focus, textarea:focus { outline: 2px solid var(--vh-accent); outline-offset: 1px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-header { position: relative; }
  .site-header__actions { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--vh-card);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--vh-shadow-soft);
    flex: none;
    z-index: 60;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list,
  .primary-nav ul { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: 65vh; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; text-align: center; }
}
@media (min-width: 901px) {
  .primary-nav { display: flex !important; }
  .nav-toggle { display: none !important; }
}

/* WP core required classes */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--vh-muted); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.sticky, .bypostauthor { display: block; }
