/* Coast and Castle Cottages — holding page
   Palette: deep sea-blue with gold accents. Typography is easy to keep if copy is swapped. */

:root {
  --sea-deep: #16323d;
  --sea: #214652;
  --sea-mid: #3c6b78;
  --sea-mist: #8aaeb6;
  --foam: #d7e4e6;
  --sand: #e8d9c0;
  --sand-light: #f4ece0;
  --stone: #8a8176;
  --stone-dark: #5c564e;
  --ink: #1c2a30;
  --cream: #faf6f0;
  --paper: #fffdf9;
  --gold: #c9a24a;
  --gold-light: #f2d57a;
  --gold-ink: #8a6a22; /* AA on cream/paper, for small text on light grounds */
  --gold-hover: #e0c36a;
  --focus: #f2d57a;
  --error: #8b3a3a;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.75rem;
  --shadow: 0 16px 40px rgba(22, 50, 61, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

picture {
  display: contents;
}

a {
  color: var(--sea);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--sea-deep);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  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 {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--paper);
  color: var(--sea-deep);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 50, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.15rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sand-light);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--gold-light);
}

.wordmark .mark {
  flex: none;
  width: 2.35rem;
  height: auto;
}

.wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--foam);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(201, 162, 74, 0.7);
  border-radius: 999px;
  color: var(--gold-light);
}

.nav a.nav-cta {
  color: var(--gold-light);
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--sea-deep);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--sea-deep);
  color: var(--cream);
  padding: clamp(2.75rem, 8vw, 5.75rem) 0 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 42%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(22, 50, 61, 0.58) 0%,
      rgba(22, 50, 61, 0.7) 42%,
      rgba(22, 50, 61, 0.78) 72%,
      rgba(22, 50, 61, 0.62) 100%),
    linear-gradient(90deg,
      rgba(22, 50, 61, 0.28) 0%,
      rgba(22, 50, 61, 0.08) 55%,
      rgba(22, 50, 61, 0.2) 100%);
}

.hero-inner,
.horizon {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
}

.hero-emblem {
  width: clamp(8.25rem, 22vw, 13.25rem);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(22, 50, 61, 0.35));
}

.hero-wordmark {
  width: min(36rem, 94%);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(22, 50, 61, 0.4));
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow-dark {
  color: var(--gold-ink);
}

.hero-lead {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.35;
  color: var(--gold-light);
}

.hero-body {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--foam);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.horizon {
  line-height: 0;
  color: var(--cream);
}

.horizon svg {
  width: 100%;
  height: clamp(2.5rem, 6vw, 5rem);
}

.horizon path {
  fill: currentColor;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--sea-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--sea-deep);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(242, 213, 122, 0.45);
}

.btn-ghost:hover {
  background: rgba(242, 213, 122, 0.12);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: var(--gold-hover);
  color: var(--sea-deep);
  border-color: var(--gold-hover);
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--sea-deep);
}

.section-intro {
  margin: 0;
  color: var(--stone-dark);
}

/* Services — editorial list, not generic icon cards */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: service;
}

.services li {
  counter-increment: service;
  background: var(--paper);
  border: 1px solid rgba(22, 50, 61, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.services h3 {
  margin: 0 0 0.45rem;
  padding-left: 3rem;
  position: relative;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sea-deep);
}

.services h3::before {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}

.services p {
  margin: 0;
  padding-left: 3rem;
  color: var(--stone-dark);
}

/* Photo band */

.places {
  background: var(--paper);
  border-top: 1px solid rgba(22, 50, 61, 0.06);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.places .section-head {
  margin-bottom: 2rem;
}

.photo-band {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.15rem;
}

.photo-band figure {
  margin: 0;
}

.photo-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.45rem;
  background: var(--foam);
}

.photo-band figcaption {
  margin: 0.65rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sea-deep);
  text-align: center;
}

/* Enquiry */

.enquire {
  background:
    linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
  border-top: 1px solid rgba(22, 50, 61, 0.06);
}

.enquire-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.enquire-copy h2 {
  margin-bottom: 0.65rem;
}

.coming-soon-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(201, 162, 74, 0.55);
  border-radius: 999px;
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enquire-copy p {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: var(--stone-dark);
}

.enquiry-form {
  background: var(--paper);
  border: 1px solid rgba(22, 50, 61, 0.08);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sea-deep);
}

.req {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d4cdc2;
  border-radius: 0.45rem;
  background: #fffcf8;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--sea-mist);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.28);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9288;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--stone);
  text-align: center;
}

/* Footer */

.site-footer {
  background: var(--sea-deep);
  color: var(--foam);
  padding: 2rem 0 2.25rem;
}

.footer-inner {
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.footer-brand,
.footer-link,
.footer-copy,
.footer-credits {
  margin: 0;
}

.footer-brand .wordmark-text {
  color: var(--gold-light);
  font-size: 1.15rem;
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--sea-mist);
}

.footer-credits {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--sea-mist);
}

.footer-credits .credit-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--foam);
}

.footer-credits .credit-note {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sea-mist);
}

.footer-credits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

/* Thanks page */

.thanks {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(201, 162, 74, 0.12), transparent 60%),
    var(--cream);
}

.thanks-card {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(22, 50, 61, 0.08);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sea-deep);
}

.thanks-card p {
  margin: 0 0 1rem;
  color: var(--stone-dark);
}

.thanks-card .btn {
  margin-top: 0.75rem;
}

/* Desktop */

@media (min-width: 640px) {
  .photo-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .enquiry-form {
    padding: 1.85rem 1.75rem 1.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: baseline;
    column-gap: 1.5rem;
  }

  .footer-copy,
  .footer-credits {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .services li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .header-inner {
    min-height: 4.5rem;
  }

  .services {
    grid-template-columns: repeat(6, 1fr);
  }

  .services li {
    grid-column: span 2;
    padding: 1.6rem 1.5rem 1.7rem 1.6rem;
  }

  .services li:nth-child(4),
  .services li:nth-child(5) {
    grid-column: span 3;
  }

  .enquire-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .photo-band {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 419px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .wordmark-text {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
