/* ===========================================================
   Penrose Camp Site — tokens
   Grounded in what this place actually is: a field on the
   Cornish coastal footpath, not a farmyard. Palette pulled
   from sea and evening sky rather than barn paint. The
   "signature" is a small waymarker disc, the kind you'd
   actually see on this stretch of coast path.
   =========================================================== */

:root{
  --bg:        #f8f9f6;
  --bg-alt:    #eaeee7;
  --ink:       #17242b;
  --ink-soft:  #4b5a5f;
  --sea:       #1c6478;
  --sea-deep:  #113e4a;
  --sand:      #c9a86a;
  --line:      #d8ddd4;
  --white:     #ffffff;

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --wrap: 1120px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2{ font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

p{ margin: 0 0 1em; color: var(--ink-soft); }

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

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

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header / nav ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav{
  display: flex;
  gap: 30px;
}

.site-nav a{
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover{
  color: var(--sea);
  border-bottom-color: var(--sea);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* ---------- hero ---------- */

.hero{
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,25,30,0.82) 0%, rgba(11,25,30,0.28) 55%, rgba(11,25,30,0) 100%);
}

.hero-content{
  position: relative;
  padding-bottom: 56px;
  color: var(--white);
}

.eyebrow{
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe0e2;
  margin: 0 0 12px;
}

.hero h1{
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 26px;
}

.hero-row{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* coastal-path waymarker disc — the kind of small painted
   trail marker you'd actually see posted along this footpath */
.waymark{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sea);
  color: var(--sea-deep);
  flex-shrink: 0;
}

.waymark-top,
.waymark-bottom{
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.waymark-mid{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}

/* ---------- buttons ---------- */

.btn{
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary{
  background: var(--sea);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--sea-deep);
  transform: translateY(-2px);
}

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{
  border-color: var(--sea);
  color: var(--sea);
  transform: translateY(-2px);
}

/* ---------- generic section ---------- */

.section{ padding: 68px 0; }
.section-alt{ background: var(--bg-alt); }
#gallery{ overflow-x: hidden; }

.divider{
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- snapshot cards ----------
   Honest treatment for real, modest-resolution photos:
   shown at close to their true size in a clean bordered
   card rather than stretched into a generic photo grid. */

.snap{
  background: var(--white);
  padding: 6px 6px 6px;
  box-shadow: 0 8px 18px rgba(17,34,40,0.12);
  border-radius: 3px;
  transform: rotate(var(--rot, 0deg));
}

.snap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.about-image .snap{ max-width: 420px; margin: 0 auto; transform: none; }

/* thrown-onto-the-table entrance: each card starts off toward
   the bottom-left, tumbling as it comes in, and settles flat */
.reveal{
  opacity: 0;
  transform:
    translate(var(--tx, -160px), var(--ty, 160px))
    rotate(var(--spin, -520deg))
    scale(0.82);
  transition:
    transform 0.85s cubic-bezier(.18,.82,.32,1.05),
    opacity 0.35s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.gallery-grid .snap:nth-child(1){ transition-delay: 0s, 0s; }
.gallery-grid .snap:nth-child(2){ transition-delay: 0.12s, 0.12s; }
.gallery-grid .snap:nth-child(3){ transition-delay: 0.24s, 0.24s; }
.gallery-grid .snap:nth-child(4){ transition-delay: 0.36s, 0.36s; }

/* ---------- about ---------- */

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

.booking-box{
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-left: 3px solid var(--sea);
  border-radius: 0 3px 3px 0;
}

.booking-label{
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 8px;
  font-weight: 700;
}

.booking-box p{ margin: 0 0 4px; }
.booking-box a{ color: var(--ink); font-weight: 600; text-decoration: none; }
.booking-box a:hover{ color: var(--sea); }

/* ---------- facilities ---------- */

.facilities-wrap{ text-align: center; }

.facilities-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.facility{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.facility-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--sea);
}

.facility-icon svg{ width: 34px; height: 34px; }

.facility p{
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
  max-width: 20ch;
}

.pricing{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
}

.price-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--sea);
  color: var(--white);
  padding: 20px 26px;
  border-radius: 4px;
  min-width: 150px;
}

.price-num{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}

.price-label{
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: #cfe4e6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-note{
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 8px !important;
}

/* ---------- gallery ---------- */

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 20px;
  padding-top: 6px;
}

.gallery-grid .snap img{ height: 190px; }

/* ---------- location ---------- */

.location-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.map-embed{
  position: relative;
  padding-bottom: 66%;
  height: 0;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.map-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- contact ---------- */

.contact-wrap{ text-align: center; max-width: 620px; }

.contact-links{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------- footer ---------- */

.site-footer{
  background: var(--sea-deep);
  color: #cfe0e2;
  padding: 28px 0;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-inner p{ margin: 0; color: #cfe0e2; }
.footer-inner a{ color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer-inner a:hover{ border-color: var(--white); }

/* ---------- responsive ---------- */

@media (max-width: 860px){
  .about-grid,
  .location-grid{
    grid-template-columns: 1fr;
  }
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .nav-toggle{ display: flex; }

  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open{ display: flex; }
  .site-nav a{
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }

  .hero-row{ gap: 16px; }
  .waymark{ width: 62px; height: 62px; }
  .waymark-mid{ font-size: 1rem; }

  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid .snap img{ height: 140px; }

  .contact-links{ flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .site-nav a{ transition: none; }
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
