@layer theme, base, revamp-tokens, components, utilities;
@layer revamp-tokens {


:root {
  --bg: #f5f1ea;
  --surface: #e8e0d2;
  --text: #1a1f1c;
  --muted: #8a7e6c;
  --primary: #2a3a2c;
  --accent: #b87333;
  --on-primary: #f5f1ea;
  --on-accent: #1a1f1c;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(26, 31, 28, 0.06), 0 1px 3px rgba(26, 31, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 31, 28, 0.08), 0 2px 4px rgba(26, 31, 28, 0.04);
  --shadow-lg: 0 20px 40px rgba(26, 31, 28, 0.12), 0 8px 16px rgba(26, 31, 28, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-py: clamp(40px, 5vw, 64px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--bg);
}

.btn-on-dark:hover {
  background: transparent;
  color: var(--bg);
}

.card-surface {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.card-surface:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-card {
  background: #fbf8f2;
  border: 1px solid rgba(42, 58, 44, 0.18);
  box-shadow: 0 10px 24px rgba(26, 31, 28, 0.08);
}

.faq-card[open],
.faq-card:hover {
  border-color: rgba(184, 115, 51, 0.55);
  box-shadow: 0 16px 32px rgba(26, 31, 28, 0.12);
}

.faq-card summary {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
}

.faq-card summary span:first-child {
  max-width: calc(100% - 2rem);
}

.faq-card summary span:last-child {
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
}

.icon-badge i {
  width: 22px;
  height: 22px;
}

.section-shell {
  padding-block: var(--section-py);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display-heading em {
  font-style: italic;
  color: var(--accent);
}

#things-to-do-cta .display-heading,
#things-to-do-cta .display-heading em,
#things-to-do-cta .body-text {
  color: #ffffff;
}

#things-to-do-cta .body-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.body-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.muted-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.divider-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  display: block;
}
}

/* Hash-link navigation glides instead of teleporting, and the target
       section clears the sticky header. In the base layer so an explicit
       scroll-mt-* utility on an element still wins. */
    @layer base {
      @media (prefers-reduced-motion: no-preference) {
        html { scroll-behavior: smooth; }
      }
      [id] { scroll-margin-top: 6rem; }
    }

@media (max-width: 1023.98px) {
  header details.lg\:hidden {
    position: static;
  }

  header details.lg\:hidden > summary {
    position: relative;
    z-index: 61;
  }

  header details.lg\:hidden > summary::-webkit-details-marker {
    display: none;
  }

  header details.lg\:hidden > div {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 72vw !important;
    min-width: min(320px, 80vw);
    max-width: 80vw;
    height: 100dvh;
    margin-top: 0 !important;
    padding: 6rem 1.5rem 2rem !important;
    border-width: 0 1px 0 0 !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    z-index: 60;
  }

  header details.lg\:hidden[open] > div {
    animation: mobile-menu-slide-in 0.28s ease-out forwards;
  }
}

@keyframes mobile-menu-slide-in {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}


#home {
  background-image: url(../images/cabin/kerry-s-gate-cabin-at-twilight.jpg);
  background-position: center;
  background-size: cover;
  animation: hero-background-gallery 10s infinite;
}

#home > .absolute.inset-0 > img {
  opacity: 0;
}

#home > .absolute.inset-0 > .absolute.inset-0 {
  background: linear-gradient(
    90deg,
    rgba(10, 14, 11, 0.82) 0%,
    rgba(10, 14, 11, 0.62) 46%,
    rgba(10, 14, 11, 0.38) 100%
  ) !important;
}

#home .eyebrow,
#home .display-heading,
#home .display-heading em,
#home p,
#home a:not(.btn-on-dark) {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

#home .divider-line {
  background: #fff;
}

@keyframes hero-background-gallery {
  0%, 18% {
    background-image: url(../images/cabin/kerry-s-gate-cabin-at-twilight.jpg);
  }

  20%, 38% {
    background-image: url(../images/gallery/kerry-s-gate-cabin-in-the-herefordshire-countryside.jpg);
  }

  40%, 58% {
    background-image: url(../images/gallery/outdoor-copper-bath.jpg);
  }

  60%, 78% {
    background-image: url(../images/things-to-do/the-cabin-at-dusk.jpg);
  }

  80%, 100% {
    background-image: url(../images/things-to-do/open-countryside-surrounding-kerry-s-gate-cabin.jpg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #home {
    animation: none;
  }
}

#reserve .eyebrow,
#reserve .display-heading,
#reserve .display-heading em,
#reserve p {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

#reserve .divider-line {
  background: #fff;
}

@media (max-width: 1023.98px) {
  header details.lg\:hidden > div::before {
    content: url(../images/brand/kerry-s-gate-cabin.png);
    display: block;
    width: min(190px, 82%);
    height: 70px;
    margin-bottom: 1.25rem;
    background-image: url(../images/brand/kerry-s-gate-cabin.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 0 0 auto;
  }
}


.things-to-do-hero .eyebrow,
.things-to-do-hero .display-heading,
.things-to-do-hero .display-heading em,
.things-to-do-hero .body-text {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

#things-to-do-hero .eyebrow,
#things-to-do-hero .display-heading,
#things-to-do-hero .display-heading em,
#things-to-do-hero .body-text {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

@media (max-width: 1023.98px) {
  header details.lg\:hidden > div {
    padding-top: 6rem !important;
    background-color: var(--bg) !important;
    background-image: url(../images/brand/kerry-s-gate-cabin.png) !important;
    background-position: 1.5rem 1.5rem !important;
    background-repeat: no-repeat !important;
    background-size: 190px auto !important;
  }

  header details.lg\:hidden > div::before {
    content: none !important;
    display: none !important;
  }
}

.gallery-page-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: clamp(105px, 28vw, 150px);
  grid-auto-flow: dense;
  gap: 0.5rem !important;
}

.gallery-page-grid > div {
  grid-column: auto !important;
  aspect-ratio: auto !important;
  min-height: 0;
}

.gallery-page-grid > div:nth-child(1) {
  grid-column: span 2 !important;
  grid-row: span 2;
}

.gallery-page-grid > div:nth-child(2),
.gallery-page-grid > div:nth-child(3) {
  grid-column: span 1 !important;
  grid-row: span 2;
}

.gallery-page-grid > div:nth-child(4),
.gallery-page-grid > div:nth-child(5),
.gallery-page-grid > div:nth-child(8),
.gallery-page-grid > div:nth-child(11) {
  grid-column: span 2 !important;
  grid-row: span 1;
}

@media (min-width: 768px) {
  .gallery-page-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-auto-rows: clamp(95px, 8.5vw, 130px);
    gap: 0.625rem !important;
  }

  .gallery-page-grid > div:nth-child(6n+1) {
    grid-column: span 4 !important;
    grid-row: span 3;
  }

  .gallery-page-grid > div:nth-child(6n+2) {
    grid-column: span 2 !important;
    grid-row: span 4;
  }

  .gallery-page-grid > div:nth-child(6n+3) {
    grid-column: span 2 !important;
    grid-row: span 2;
  }

  .gallery-page-grid > div:nth-child(6n+4) {
    grid-column: span 4 !important;
    grid-row: span 2;
  }

  .gallery-page-grid > div:nth-child(6n+5) {
    grid-column: span 2 !important;
    grid-row: span 2;
  }

  .gallery-page-grid > div:nth-child(6n+6) {
    grid-column: span 2 !important;
    grid-row: span 3;
  }
}

@media (max-width: 1023.98px) {
  header details.lg\:hidden > div {
    padding-top: 7.25rem !important;
  }
}

input,
textarea,
select {
  background-color: #fffaf1 !important;
  border: 1px solid rgba(42, 58, 44, 0.38) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.18);
  outline: none;
}

textarea {
  resize: vertical;
}

#activities .eyebrow,
#activities .display-heading,
#activities .display-heading em,
#activities p {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

#activities .divider-line {
  background: #fff;
}

#home {
  animation: none !important;
}

#home > .absolute.inset-0 {
  z-index: 0;
}

#home > .absolute.inset-0 > img:not(.hero-fade-slide) {
  opacity: 0 !important;
}

#home > .absolute.inset-0 > .absolute.inset-0 {
  z-index: 2;
}

.hero-fade-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-crossfade 10s infinite ease-in-out;
  transform: scale(1.03);
}

.hero-fade-slide:nth-of-type(2) { animation-delay: 0s; }
.hero-fade-slide:nth-of-type(3) { animation-delay: 2s; }
.hero-fade-slide:nth-of-type(4) { animation-delay: 4s; }
.hero-fade-slide:nth-of-type(5) { animation-delay: 6s; }
.hero-fade-slide:nth-of-type(6) { animation-delay: 8s; }

@keyframes hero-crossfade {
  0%, 100% { opacity: 0; }
  8%, 22% { opacity: 1; }
  30% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-slide { animation: none; }
  .hero-fade-slide:first-of-type { opacity: 1; }
}
