:root {
  --navy: #08123f;
  --navy-deep: #07004d;
  --ink: #0e150e;
  --cream: #fcfbf8;
  --sand: #d7cdba;
  --terracotta: #c96a4a;
  --terracotta-hover: #d55437;
  --white: #ffffff;
  --muted: #5c5a56;
  --header-h: 100px;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  letter-spacing: 0;
  color: #000;
  margin: 0 0 20px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
}

.container {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 18, 63, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.3em;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-desktop a span {
  position: relative;
  padding: 0 8px;
}

.nav-desktop a span::after,
.nav-desktop .is-active a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background-image: linear-gradient(to right, currentColor 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: 0;
}

.nav-desktop .is-active a span::after,
.nav-desktop a:hover span::after {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(2) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(3) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(4) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 63, 0.96);
  text-align: center;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 18px 12px;
  color: var(--cream);
  font-size: 15px;
  letter-spacing: 0.3em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  line-height: 1.08;
  letter-spacing: 0.3em;
  font-weight: 600;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn-filled {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 22px 56px;
  color: var(--white);
  background: #c96a4a;
}

.btn-filled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.37, 0.08, 0.02, 0.93);
  z-index: -1;
}

.btn-filled:hover::after {
  transform: scaleX(1);
}

.btn-dark {
  color: var(--white);
}

.btn-text {
  padding: 8px 0;
  color: var(--ink);
}

.btn-text svg {
  width: 23px;
  height: auto;
}

/* Hero */
.hero {
  position: relative;
  padding: 200px 0 0;
  color: var(--white);
  background-color: #08123ff2;
  background-image: url("../images/porthleven-harbour.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #08123f;
  opacity: 0.94;
}

.hero-inner,
.gallery {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(900px, calc(100% - 80px));
  margin: 0 auto;
  text-align: center;
  padding: 0 4%;
}

.hero-title {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.325;
  color: var(--white);
  margin: 0 0 24px;
}

.hero-title a {
  color: var(--white);
}

.hero-text {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--white);
}

/* Gallery */
.gallery {
  margin-top: 120px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: gallery-marquee 100s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-slide {
  margin: 0;
  flex: 0 0 450px;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-slide img {
  width: 450px;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
}

@keyframes gallery-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Highlights */
.highlights {
  padding: 72px 0;
  background: var(--white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.highlight {
  text-align: center;
  padding: 0 12%;
}

.highlight img {
  margin: 0 auto 18px;
  height: 96px;
  width: auto;
}

.highlight .icon-star {
  height: 120px;
}

.highlight h2 {
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.highlight p {
  color: var(--ink);
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--white);
}

.split-walks {
  grid-template-columns: 43% 57%;
}

.split-media {
  min-height: 495px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 80px;
}

.split-copy h2 {
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.325;
}

.split-copy h2 a:hover {
  color: var(--navy);
}

.split-copy p {
  margin: 25px 0 32px;
}

/* Features */
.features {
  padding: 64px 0 60px;
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
}

.features-heading,
.features h3,
.features p {
  color: var(--white);
}

.features-heading {
  font-size: 30px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 28px;
}

.feature h3 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Testimonials */
.testimonials {
  background: #efe9dc;
  padding: 96px 0 80px;
  text-align: center;
}

.testimonials h2 {
  font-size: clamp(35px, 4vw, 47px);
  margin-bottom: 42px;
}

.reviews {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 64px;
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.45s ease;
}

.review-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 44px 36px;
  background: var(--white);
  border: 1px solid rgba(14, 21, 14, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(8, 18, 63, 0.06);
  text-align: left;
}

.review-quote {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: #000;
  margin: 0 0 28px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.review-meta strong {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 400;
}

.review-meta span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-stars {
  margin-left: auto;
  color: #e0a106;
  letter-spacing: 0.12em;
}

.review-stars em {
  margin-left: 8px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(14, 21, 14, 0.12);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.review-nav:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.review-nav--prev {
  left: 0;
}

.review-nav--next {
  right: 0;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.review-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 21, 14, 0.2);
  cursor: pointer;
}

.review-dots button.is-active {
  background: var(--terracotta);
}

/* Find us */
.find-us {
  background: var(--cream);
  padding: 40px 0 80px;
}

.find-us h2 {
  font-size: clamp(35px, 4vw, 47px);
  text-align: center;
  margin-bottom: 42px;
}

.find-us h2 em {
  font-style: italic;
}

.find-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.find-copy .btn-text {
  margin-bottom: 28px;
}

.find-map {
  overflow: hidden;
  border-radius: 16px;
}

.find-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.find-copy h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.find-copy address {
  font-style: normal;
  margin: 0 0 1em;
}

.find-illustration img {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 72px 24px 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 32px;
}

.footer-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 13px;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 14px;
  color: var(--white);
}

.footer-copy a:hover {
  color: var(--sand);
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 48px, 100%);
  }

  .hero {
    padding-top: 120px;
  }

  .gallery {
    margin-top: 80px;
  }

  .split,
  .split-walks {
    grid-template-columns: 1fr;
  }

  .split-copy {
    padding: 48px 24px 60px;
  }

  .split-media {
    min-height: 430px;
  }

  .features-grid,
  .highlights-grid,
  .find-grid {
    grid-template-columns: 1fr;
  }

  .find-illustration {
    display: none;
  }

  .highlight {
    padding: 24px 8px 0;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    height: 46px;
  }

  .hero-inner {
    width: calc(100% - 48px);
    padding: 0;
  }

  .gallery-slide,
  .gallery-slide img {
    width: 300px;
    height: 200px;
  }

  .gallery-slide {
    flex-basis: 300px;
  }

  .btn-filled {
    padding: 18px 36px;
  }

  .testimonials {
    padding: 56px 0 48px;
  }

  .reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 0;
  }

  .review-card {
    min-height: 0;
    padding: 28px 24px 24px;
  }

  .review-nav {
    position: static;
    transform: none;
    margin-top: 20px;
  }

  .reviews-viewport {
    grid-column: 1 / -1;
  }

  .review-nav--prev {
    grid-column: 1;
    grid-row: 2;
  }

  .review-nav--next {
    grid-column: 2;
    grid-row: 2;
  }

  .review-dots {
    grid-column: 1 / -1;
  }

  .review-stars {
    margin-left: 0;
    width: 100%;
  }

  .find-map iframe {
    height: 280px;
  }
}
