/* Hillview Cottages */

:root {
  --cream: #f6f1e8;
  --white: #fffdf9;
  --ink: #2b2a26;
  --muted: #55524b;
  --line: #d9cfbe;
  --accent: #d1853f;
  --accent-dark: #a65a24;
  --sage: #4b5749;
  --font: "Poppins", Arial, sans-serif;
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 1rem/1 var(--font);
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #8a4a1c; color: #fff; }
.btn--outline { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 0.75rem 1.2rem; font-size: 0.9rem; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__list a, .has-sub > button { color: var(--ink); text-decoration: none; font: 400 0.95rem var(--font); }
.nav__list a:hover, .nav__list a[aria-current="page"], .has-sub > button[data-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.has-sub { position: relative; }
.has-sub > button { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35em; }
.has-sub > button svg { width: 10px; }
.has-sub .sub {
  display: none; position: absolute; top: 100%; left: -1rem; padding: 0.75rem 0 0;
  list-style: none; margin: 0; min-width: 190px;
}
.has-sub .sub::before { content: ""; position: absolute; inset: 0.75rem 0 0; background: var(--white); border: 1px solid var(--line); z-index: -1; }
.has-sub .sub a { display: block; padding: 0.5rem 1rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a, .has-sub > button { display: block; width: 100%; text-align: left; padding: 0.9rem 0; font-size: 1.1rem; }
  .has-sub .sub { position: static; padding: 0 0 0.5rem 1rem; }
  .has-sub .sub::before { display: none; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav .btn { text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero {
  position: relative; min-height: min(85vh, 780px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 5rem var(--gutter) 8rem; overflow: hidden;
}
.hero--short { min-height: min(60vh, 520px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: -1; }
.hero { isolation: isolate; }
.hero h1 { color: #fff; margin-bottom: 0.25em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; font-style: italic; margin: 0 auto 1.8rem; max-width: 620px; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 5rem; font-size: 0.75rem; font-style: italic; font-weight: 300 !important; margin: 0 !important; }

/* Wave divider, as on the original site */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(45px, 6vw, 90px); }
.wave .fill { fill: var(--cream); }
.wave .stroke { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--white { background: var(--white); }
.section h2 + .intro { margin-top: -0.2em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.two-col--flip > :first-child { order: 2; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col--flip > :first-child { order: 0; }
}

/* Cottage list */
.cottages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cottages--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .cottages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cottages, .cottages--two { grid-template-columns: 1fr; } }
.cottage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.1rem; }
.cottage h3 { margin-bottom: 0.4rem; }
.cottage h3 a { color: var(--ink); text-decoration: none; }
.cottage h3 a:hover { color: var(--accent-dark); }
.cottage p { color: var(--muted); }
.more { font-weight: 500; }

/* Cottage detail */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail .features { background: var(--white); border-top: 3px solid var(--accent); padding: 1.5rem 1.75rem 1.75rem; }
.detail .features h3 { font-size: 1.1rem; }
.detail .features ul { margin: 0 0 1.5rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos a { display: block; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .photos { grid-template-columns: repeat(2, 1fr); } }

.gallery { columns: 3 260px; column-gap: 8px; }
.gallery a { display: block; margin-bottom: 8px; break-inside: avoid; cursor: zoom-in; }

.filters { text-align: center; margin-bottom: 2rem; }
.filters button {
  font: 400 0.95rem var(--font); background: none; border: 0; padding: 0.3rem 0.6rem; cursor: pointer; color: var(--muted);
}
.filters button[aria-pressed="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(15, 15, 12, 0.92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; color: #fff; border: 0; cursor: pointer; width: 48px; height: 48px; padding: 10px; }
.lightbox button svg { width: 100%; height: 100%; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; margin-top: -24px; }
.lightbox__next { right: 0.75rem; top: 50%; margin-top: -24px; }
.lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #ccc; font-size: 0.85rem; }
@media (max-width: 600px) { .lightbox__inner { padding: 4rem 0.5rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 0.5rem; margin: 0; } }

/* Booking strip */
.book-strip { background: var(--sage); color: #fff; padding: 3.5rem 0; text-align: center; }
.book-strip h2 { color: #fff; margin-bottom: 0.3em; }
.book-strip p { margin-bottom: 1.5rem; }
.book-strip a:not(.btn) { color: #fff; }

/* Weddings feature */
.feature { position: relative; isolation: isolate; color: #fff; padding: clamp(5rem, 11vw, 8rem) 0; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: -1; }
.feature h2 { color: #fff; }
.feature .container > div { max-width: 540px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.details { margin: 0 0 2rem; }
.details dt { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.details dd { margin: 0 0 1rem; font-size: 1.05rem; }
.details a { color: var(--ink); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; }

.form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
input, select, textarea { width: 100%; font: 300 1rem var(--font); color: var(--ink); padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
textarea { min-height: 140px; resize: vertical; }
.small { font-size: 0.85rem; color: var(--muted); }

/* Booking widget */
.booking { background: var(--white); padding: clamp(0.75rem, 3vw, 1.5rem); min-height: 420px; }
.mobile-note { display: none; text-align: center; font-size: 0.9rem; }
@media (max-width: 768px) { .mobile-note { display: block; } }

/* Footer */
.site-footer { background: #343d33; color: #e3dfd6; padding: 3.5rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-logo { height: 60px; width: auto; filter: invert(1); margin-bottom: 1rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85rem; color: #b8b3a8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 page */
.notfound { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.notfound__text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 620px; margin-left: auto; width: 100%; align-self: center; }
.notfound__code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 600; line-height: 1; color: var(--accent); margin: 0 0 0.5rem; }
.notfound h1 { text-transform: none; text-wrap: balance; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound code { font-family: inherit; font-weight: 500; background: var(--white); border: 1px solid var(--line); padding: 0.05em 0.4em; border-radius: 3px; word-break: break-all; }
.notfound__guess { font-size: 1.1rem; background: var(--white); border-left: 3px solid var(--accent); padding: 0.8rem 1rem; }
.notfound__guess a { font-weight: 500; }
.notfound__links { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.notfound__links li { margin: 0; border-bottom: 1px solid var(--line); }
.notfound__links a { display: block; padding: 0.9rem 2rem 0.9rem 0; color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.notfound__links a::after { content: "\2192"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); color: var(--accent-dark); transition: right 0.15s; }
.notfound__links a:hover { color: var(--accent-dark); }
.notfound__links a:hover::after { right: 0; }
.notfound__links span { display: block; font-weight: 300; font-size: 0.9rem; color: var(--muted); }
.notfound__photo { position: relative; min-height: 320px; }
.notfound__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .notfound { grid-template-columns: 1fr; min-height: 0; }
  .notfound__photo { order: -1; height: 38vh; min-height: 220px; }
  .notfound__text { margin: 0 auto; }
}
