/* ============================================================
   FLUIDHOME.CO.UK — Production Stylesheet
   Premium but approachable · North Devon coastal escape
   ============================================================ */

/* ---- FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-dark: #111820;
  --sand: #f5f0e8;
  --sand-light: #faf8f4;
  --cream: #fffef9;
  --coastal: #5a8fa8;
  --coastal-light: #7ab3cc;
  --coastal-pale: #e8f2f7;
  --gold: #c4a265;
  --gold-light: #d4b87a;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-on-dark: #e8e4de;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- PAGE TRANSITIONS ---- */
.page-enter { animation: pageIn 0.4s ease forwards; }
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(255, 254, 249, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Logo */
.nav__logo {
  text-decoration: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  transition: filter 0.3s, opacity 0.3s;
}
.nav--transparent .nav__logo-img {
  filter: brightness(0) invert(1);
}
.nav--solid .nav__logo-img {
  filter: none;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}
.nav--transparent .nav__link { color: rgba(255,255,255,0.9); }
.nav--transparent .nav__link:hover { color: #fff; }
.nav--solid .nav__link { color: var(--text-light); }
.nav--solid .nav__link:hover { color: var(--navy); }

/* CTA Button */
.nav__cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.nav--transparent .nav__cta {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.nav--transparent .nav__cta:hover { background: rgba(255,255,255,0.22); }
.nav--solid .nav__cta {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
}
.nav--solid .nav__cta:hover { background: var(--navy-light); }

/* Mobile Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transition: background 0.3s;
}
.nav--transparent .nav__toggle-bar { background: #fff; }
.nav--solid .nav__toggle-bar { background: var(--navy); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  .nav__links--open { display: flex; }
  .nav__links .nav__link { color: var(--text) !important; font-size: 15px; }
  .nav__links .nav__cta {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
    text-align: center;
    width: 100%;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 25, 36, 0.78) 0%,
    rgba(18, 25, 36, 0.35) 35%,
    rgba(18, 25, 36, 0.08) 65%,
    transparent 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(60px, 10vw, 100px);
  max-width: 720px;
}
.hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}
.hero__cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 162, 101, 0.35);
}
.hero__cta-arrow { font-size: 18px; transition: transform 0.3s; }
.hero__cta:hover .hero__cta-arrow { transform: translateX(3px); }

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

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--navy);
  padding: 18px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.trust-strip__stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.trust-strip__divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.12);
}
@media (max-width: 640px) {
  .trust-strip { gap: 14px; padding: 16px 20px; }
  .trust-strip__divider { display: none; }
  .trust-strip__item { font-size: 12px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-padding);
}
.section--sand { background: var(--sand-light); }
.section--dark { background: var(--navy); color: var(--text-on-dark); }
.section--coastal { background: var(--coastal-pale); }

.section__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--coastal);
  margin-bottom: 14px;
}
.section--dark .section__tag { color: var(--gold); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 14px;
}
.section--dark .section__title { color: #fff; }

.section__subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--text-light);
  max-width: 600px;
  font-weight: 300;
}
.section--dark .section__subtitle { color: rgba(232,228,222,0.65); }

.section__header {
  max-width: 700px;
  margin: 0 auto;
}
.section__header--left { margin: 0; }

/* ============================================================
   EXPERIENCE CARDS
   ============================================================ */
.experiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .experiences { grid-template-columns: 1fr; max-width: 440px; } }

.exp-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}
.exp-card__img-wrap { overflow: hidden; }
.exp-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}
.exp-card__img--portrait {
  object-position: center 20%;
}
.exp-card:hover .exp-card__img { transform: scale(1.04); }
.exp-card__body { padding: 28px; }
.exp-card__icon { font-size: 24px; margin-bottom: 12px; }
.exp-card__title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.exp-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 300;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
}
.gallery__item { overflow: hidden; cursor: pointer; }
.gallery__item:hover .gallery__img { transform: scale(1.05); }
.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}
.gallery__img--portrait {
  object-position: center 30%;
}
.gallery__item--feature {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery__item--feature .gallery__img { min-height: 420px; }
.gallery__item--side .gallery__img { height: 210px; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--feature { grid-column: 1 / -1; grid-row: auto; }
  .gallery__item--feature .gallery__img { min-height: 240px; }
  .gallery__item--side .gallery__img { height: 180px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox--open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; max-width: 520px; } }

.review-card {
  background: var(--navy-light);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.review-card__stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.review-card__text {
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  color: rgba(232,228,222,0.88);
  margin-bottom: 20px;
  font-weight: 300;
  flex: 1;
}
.review-card__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ============================================================
   DETAILS GRID
   ============================================================ */
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) { .details { grid-template-columns: repeat(2, 1fr); } }

.detail {
  text-align: center;
  padding: 30px 16px;
  border-bottom: 1px solid rgba(90,143,168,0.12);
}
.detail__icon { font-size: 28px; margin-bottom: 12px; }
.detail__title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 4px;
}
.detail__sub {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
}

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
@media (max-width: 768px) {
  .location { grid-template-columns: 1fr; gap: 28px; }
}
.location__map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  border: none;
  background: var(--sand);
}
.distance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.distance-item__name { font-size: 15px; color: var(--navy); }
.distance-item__time {
  font-size: 12px;
  font-weight: 500;
  color: var(--coastal);
  background: var(--coastal-pale);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   WHY NORTH DEVON
   ============================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose__link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coastal);
  text-decoration: none;
  border-bottom: 2px solid var(--coastal);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.prose__link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px);
  text-align: center;
}
.cta-banner__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner__sub {
  font-size: 16px;
  color: rgba(232,228,222,0.65);
  margin-bottom: 36px;
  font-weight: 300;
}

/* Shared button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 162, 101, 0.35);
}
.btn__arrow { font-size: 18px; transition: transform 0.3s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  padding: 48px clamp(20px, 5vw, 60px) 28px;
  color: rgba(232,228,222,0.45);
  font-size: 13px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 28px;
}
.footer__brand {
  margin-bottom: 6px;
}
.footer__logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  text-decoration: none;
  color: rgba(232,228,222,0.45);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

/* ============================================================
   THINGS TO DO PAGE
   ============================================================ */
.ttd-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ttd-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 55%;
}
.ttd-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,25,36,0.82) 0%, rgba(18,25,36,0.25) 55%, transparent 100%);
}
.ttd-hero__content {
  position: relative; z-index: 2;
  padding: clamp(32px, 6vw, 64px);
}
.ttd-hero__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  color: #fff;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.ttd-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* Content area */
.ttd-content {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
  max-width: 920px;
  margin: 0 auto;
}
.ttd-category { margin-bottom: 56px; }
.ttd-category__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ttd-category__icon { font-size: 28px; }
.ttd-category__intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 640px;
}
.ttd-items { display: flex; flex-direction: column; gap: 12px; }
.ttd-item {
  background: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.3s, transform 0.2s;
}
.ttd-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.ttd-item__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}
.ttd-item__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-light);
  font-weight: 300;
}
.ttd-item__dist {
  font-size: 12px;
  font-weight: 500;
  color: var(--coastal);
  background: var(--coastal-pale);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.ttd-cta {
  background: var(--sand);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.ttd-cta__title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
}
