/* ============================================================
   Morawel — Poppit Sands holiday cottage
   Palette: sand, sea, slate ink, a touch of sunset coral
   ============================================================ */

:root {
  --sand-50: #faf6ee;
  --sand-100: #f3ecdd;
  --sand-200: #e8dcc4;
  --ink: #1f3138;
  --ink-soft: #4a5d63;
  --sea-700: #20515e;
  --sea-600: #2c6a79;
  --sea-500: #3d8091;
  --sea-100: #e3edf0;
  --coral-500: #d97b4f;
  --coral-600: #c2623a;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgba(31, 49, 56, 0.08), 0 12px 32px rgba(31, 49, 56, 0.1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand-50);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--sea-700); text-decoration-color: var(--sea-500); text-underline-offset: 3px; }
a:hover { color: var(--sea-500); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tint { background: var(--sand-100); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-600);
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--coral-500); color: #fff; }
.btn--coral:hover { background: var(--coral-600); color: #fff; }
.btn--sea { background: var(--sea-700); color: #fff; }
.btn--sea:hover { background: var(--sea-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--sea-700); border-color: var(--sea-500); }
.btn--outline:hover { background: var(--sea-100); color: var(--sea-700); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--sand-200); }

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--sea-600); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--sea-600); }
.nav .btn { padding: 9px 20px; font-size: 0.9rem; }

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

.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,49,56,0.25) 0%, rgba(31,49,56,0.05) 35%, rgba(31,49,56,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 88px;
}
.hero-content .wrap { max-width: 1120px; }

.hero .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(250,246,238,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(3.2rem, 9vw, 6rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(31,49,56,0.35);
}
.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(31,49,56,0.4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Intro / cottage ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 20px; }
.intro-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.intro-copy p.lead { font-size: 1.15rem; color: var(--ink); }

.intro-figure { position: relative; }
.intro-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.intro-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--sand-200);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sand-200);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 72px;
}
.fact {
  background: var(--sand-50);
  padding: 28px 20px;
  text-align: center;
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--sea-700);
  margin-bottom: 4px;
}
.fact span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Amenities ---------- */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.amenity {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.amenity:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.amenity svg { width: 30px; height: 30px; stroke: var(--sea-600); margin-bottom: 14px; }
.amenity h3 { font-size: 1.02rem; margin-bottom: 6px; }
.amenity p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  margin: 0;
}
.gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 12px;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(31,49,56,0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

.g-wide { grid-column: span 7; }
.g-med { grid-column: span 5; }
.g-tall { grid-column: span 4; grid-row: span 2; }
.g-small { grid-column: span 4; }
.g-skinny { grid-column: span 8; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31,49,56,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-caption { color: #fff; margin-top: 16px; font-size: 0.95rem; }
.lightbox .lb-close {
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }

/* ---------- Beach ---------- */

.beach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.beach-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.beach-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 20px; }
.beach-copy p { color: var(--ink-soft); margin-bottom: 16px; }

.beach-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.beach-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--sea-700);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.beach-links a:hover { background: var(--sea-100); border-color: var(--sea-500); }

/* ---------- Getting here ---------- */

.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.directions ol {
  list-style: none;
  counter-reset: step;
  margin-top: 8px;
}
.directions ol li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  color: var(--ink-soft);
}
.directions ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sea-700);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.directions ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px; top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--sand-200);
}
.directions ol li strong { color: var(--ink); }

.map-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.map-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.map-card p { color: var(--ink-soft); margin-bottom: 20px; font-size: 0.98rem; }

/* ---------- Booking ---------- */

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.price-card {
  background: var(--sea-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: sticky;
  top: 96px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
  margin: 18px 0 6px;
}
.price-card .price small { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.85); }
.price-card p { color: rgba(255,255,255,0.85); font-size: 0.98rem; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 18px 0 24px; }
.price-card ul li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f2c79a;
  font-weight: 700;
}
.price-card .direct {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
}
.price-card a { color: #f2c79a; text-decoration-color: rgba(242,199,154,0.6); }
.price-card a:hover { color: #fff; }

/* Form */

.booking-form {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.booking-form h3 { font-size: 1.45rem; margin-bottom: 8px; }
.booking-form > p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 26px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field label .req { color: var(--coral-500); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--sand-200);
  border-radius: 10px;
  background: var(--sand-50);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sea-500);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }

.hp-field { position: absolute; left: -5000px; top: -5000px; height: 1px; width: 1px; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-status.ok { display: block; background: #e8f3e6; color: #2d5c35; border: 1px solid #c3e0bf; }
.form-status.err { display: block; background: #fdece8; color: #a03d22; border: 1px solid #f2c8bc; }
.form-status.info { display: block; background: var(--sea-100); color: var(--sea-700); border: 1px solid #c3d9e0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.contact-card svg { width: 28px; height: 28px; stroke: var(--sea-600); margin-bottom: 12px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--ink-soft); }
.contact-card a { display: block; text-decoration: none; }
.contact-card a:hover { color: var(--sea-600); }

/* ---------- Welsh ---------- */

.welsh {
  background: var(--sand-100);
  border-block: 1px solid var(--sand-200);
}
.welsh .wrap { max-width: 760px; text-align: center; }
.welsh h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.welsh .sub { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea-600); font-weight: 600; margin-bottom: 22px; }
.welsh p { color: var(--ink-soft); margin-bottom: 14px; }
.welsh p.welsh-body { font-size: 1.05rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 36px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer a { color: rgba(255,255,255,0.75); text-decoration-color: rgba(255,255,255,0.35); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid figure img { transition: none; }
}

/* Visually hidden (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Area page ---------- */

.page-hero {
  padding: 190px 0 72px;
  background:
    linear-gradient(180deg, rgba(31,49,56,0.55), rgba(31,49,56,0.45)),
    url("../img/beach-wide.webp") center 40% / cover no-repeat,
    url("../img/beach-wide.jpg") center 40% / cover no-repeat;
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 14px;
}
.page-hero p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

.area-section { margin-bottom: 64px; }
.area-section h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand-200);
}
.area-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 22px;
}
.area-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.area-card p { font-size: 0.92rem; color: var(--ink-soft); }
.area-card .phone { display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--sea-700); text-decoration: none; }
.area-card .phone:hover { color: var(--sea-500); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .intro-grid, .beach-grid, .booking-grid, .directions { grid-template-columns: 1fr; gap: 40px; }
  .price-card { position: static; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .area-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
  .g-wide, .g-med, .g-tall, .g-small, .g-skinny { grid-column: span 6; grid-row: span 1; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--sand-100); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .amenities-grid, .area-cards, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
  .g-wide, .g-med, .g-tall, .g-small, .g-skinny { grid-column: span 6; }
  .hero-content { padding-bottom: 64px; }
  .booking-form, .price-card, .map-card { padding: 28px 22px; }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .page-hero { padding: 160px 0 56px; }
}
