/*
Theme Name: Santa's Grotto Ireland 2026
Theme URI: https://santasgrotto.ie/
Author: Santa's Grotto Ireland
Description: A fully editable WordPress block theme styled to match the SantaBooker booking journey.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: santas-grotto-ireland
*/

:root {
  --sgi-red: #c6152b;
  --sgi-red-dark: #7e0d1d;
  --sgi-green: #103c2d;
  --sgi-green-dark: #08261d;
  --sgi-gold: #d6ad5c;
  --sgi-gold-light: #f1dcae;
  --sgi-ink: #17231f;
  --sgi-muted: #66736e;
  --sgi-line: rgba(29, 61, 50, .13);
  --sgi-cream: #fffaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: #f6f4ef; }
a { text-underline-offset: .2em; }

.sgi-site-shell { min-height: 100vh; }
.sgi-site-shell > .wp-block-cover__image-background { position: fixed; }
.sgi-site-shell > .wp-block-cover__inner-container { color: var(--sgi-ink); }

.sgi-header,
.sgi-footer {
  position: relative;
  z-index: 20;
}

.sgi-header {
  background: linear-gradient(112deg, #650a18 0%, #aa1026 46%, #7c0b1d 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 40px rgba(51, 4, 14, .18);
}
.sgi-footer {
  background: linear-gradient(135deg, var(--sgi-green-dark), #103d2e 58%, #17392e) !important;
  border-top: 1px solid rgba(214,173,92,.38);
  box-shadow: 0 -14px 40px rgba(8,38,29,.16);
}
.sgi-header .alignwide { min-height: 68px; }
.sgi-header figure { margin: 0; }
.sgi-header img { filter: drop-shadow(0 5px 11px rgba(0,0,0,.22)); }
.sgi-nav { gap: 1.65rem; }
.sgi-nav .wp-block-navigation-item__content { font-size: .88rem; letter-spacing: .035em; }
.sgi-header .sgi-button .wp-block-button__link {
  background: #fff;
  border-color: rgba(255,255,255,.9);
  color: var(--sgi-red-dark) !important;
  box-shadow: 0 10px 28px rgba(39,0,9,.2);
}

.sgi-snow {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 80;
}

.sgi-snowflake {
  animation: sgi-snowfall linear infinite;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 2px 3px rgba(48,71,64,.24));
  text-shadow: 0 0 2px rgba(74,102,95,.42), 0 0 7px rgba(255,255,255,.92);
  position: absolute;
  top: -2rem;
  user-select: none;
  will-change: transform;
}

@keyframes sgi-snowfall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50% { transform: translate3d(var(--sgi-drift), 48vh, 0) rotate(180deg); }
  100% { transform: translate3d(calc(var(--sgi-drift) * -.45), 108vh, 0) rotate(360deg); }
}

.sgi-card {
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,252,245,.91));
  border: 1px solid var(--sgi-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(33, 55, 47, .10), inset 0 1px 0 #fff;
  backdrop-filter: blur(11px);
}

.sgi-hero {
  overflow: hidden;
  position: relative;
}

.sgi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 10%, rgba(214,173,92,.18), transparent 24%),
              radial-gradient(circle at 7% 86%, rgba(126,13,29,.10), transparent 32%);
  pointer-events: none;
}

.sgi-hero > .wp-block-columns {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,249,238,.79));
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 36px;
  box-shadow: 0 38px 100px rgba(34,61,51,.15), inset 0 0 0 1px rgba(214,173,92,.18);
  overflow: hidden;
  padding: clamp(2.1rem, 5vw, 5.4rem);
  position: relative;
}

.sgi-hero > .wp-block-columns::after {
  background: linear-gradient(90deg, var(--sgi-gold), transparent);
  content: "";
  height: 3px;
  left: 7%;
  position: absolute;
  right: 7%;
  top: 0;
}

.sgi-hero h1 {
  color: var(--sgi-green-dark);
  font-size: clamp(3.25rem, 6.2vw, 6.4rem) !important;
  letter-spacing: -.045em;
  line-height: .94;
  max-width: 12ch;
}

.sgi-hero .wp-block-column:last-child figure {
  background: radial-gradient(circle, rgba(255,255,255,.98), rgba(241,220,174,.28) 57%, transparent 72%);
  border-radius: 50%;
  filter: drop-shadow(0 28px 35px rgba(67,43,14,.17));
  padding: clamp(.75rem, 2vw, 1.6rem);
}

.sgi-hero-photo {
  margin-inline: auto;
  max-width: 100%;
  width: 600px;
}
.sgi-hero-photo img {
  border: 2px solid rgba(214,173,92,.72);
  box-shadow: 0 28px 70px rgba(16,60,45,.18), 0 0 0 9px rgba(214,173,92,.08);
}

.sgi-kicker { color: var(--sgi-red-dark) !important; letter-spacing: .18em; text-transform: uppercase; }
.sgi-price { font-variant-numeric: tabular-nums; }
.sgi-icon-badge {
  align-items: center;
  background: #fde9e8;
  border-radius: 10px;
  color: #c7372f;
  display: inline-flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.sgi-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.sgi-photo:hover img { transform: scale(1.025); }

.sgi-button .wp-block-button__link {
  background: linear-gradient(135deg, #d41b32, #940d20);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 13px 32px rgba(126,13,29,.25), inset 0 1px 0 rgba(255,255,255,.24);
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sgi-button .wp-block-button__link:hover {
  box-shadow: 0 12px 28px rgba(183,28,28,.30);
  transform: translateY(-2px);
}

.sgi-faq details {
  background: rgba(255,253,248,.94);
  border: 1px solid var(--sgi-line);
  border-radius: 16px;
  box-shadow: 0 11px 38px rgba(33,55,47,.06);
  margin-bottom: 14px;
  padding: 0 24px;
}
.sgi-faq summary { color: var(--sgi-green); font-weight: 800; padding: 21px 0; }
.sgi-faq details > :not(summary) { margin-top: 0; }

.sgi-nav .wp-block-navigation-item__content { text-decoration: none; }
.sgi-nav .wp-block-navigation-item__content:hover { opacity: .78; }

main > .wp-block-group:not(.sgi-hero):not(.sgi-card) > h2,
main > .wp-block-group:not(.sgi-hero):not(.sgi-card) > .wp-block-heading {
  color: var(--sgi-green-dark);
  font-size: clamp(2.35rem, 4.5vw, 4.6rem);
  letter-spacing: -.035em;
}

#experience .sgi-card { border-top: 3px solid var(--sgi-gold); }
#experience .sgi-card p:first-child { filter: saturate(.88); font-size: 2.15rem !important; }
#prices .sgi-card h2 { color: var(--sgi-green); }
#prices .sgi-card { transition: transform .25s ease, box-shadow .25s ease; }
#prices .sgi-card:hover { box-shadow: 0 32px 80px rgba(33,55,47,.14); transform: translateY(-5px); }

.sgi-editorial {
  background: linear-gradient(135deg, rgba(11,49,37,.98), rgba(19,70,52,.95));
  border: 1px solid rgba(214,173,92,.35);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(8,38,29,.24);
  color: #fff;
  overflow: hidden;
}
.sgi-editorial h2, .sgi-editorial h3 { color: var(--sgi-gold-light) !important; }
.sgi-editorial figure { margin: 0; }
.sgi-editorial img { filter: drop-shadow(0 26px 28px rgba(0,0,0,.3)); }
.sgi-editorial-photo {
  margin-inline: auto !important;
  max-width: 100%;
  width: 520px;
}
.sgi-editorial-photo img {
  border: 1px solid rgba(214,173,92,.48);
  box-shadow: 0 24px 58px rgba(0,0,0,.28), 0 0 0 8px rgba(214,173,92,.07);
}
.sgi-stat { border-left: 1px solid rgba(214,173,92,.4); padding-left: 1.25rem; }

.sgi-legal-hero {
  background: linear-gradient(130deg, var(--sgi-green-dark), #124b37 70%, #1d5a43);
  border-bottom: 1px solid rgba(214,173,92,.42);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.sgi-legal-hero::after {
  background: radial-gradient(circle, rgba(214,173,92,.2), transparent 65%);
  content: "";
  height: 420px;
  position: absolute;
  right: -100px;
  top: -210px;
  width: 420px;
}
.sgi-legal-hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.045em; }
.sgi-legal-kicker { color: var(--sgi-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.sgi-legal-layout { align-items: flex-start !important; }
.sgi-legal-aside { position: sticky; top: 2rem; }
.sgi-legal-aside .sgi-card { background: rgba(255,250,240,.9); }
.sgi-legal-content {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(29,61,50,.11);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(33,55,47,.11);
}
.sgi-legal-content > h2 {
  border-top: 1px solid rgba(29,61,50,.11);
  color: var(--sgi-green-dark);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.sgi-legal-content > h2:first-of-type { border-top: 0; margin-top: 1rem; padding-top: 0; }
.sgi-legal-content h3 { color: var(--sgi-red-dark); font-size: 1.25rem; margin-top: 2rem; }
.sgi-legal-content p, .sgi-legal-content li { color: #3f4b47; }
.sgi-legal-content a { color: var(--sgi-red-dark); font-weight: 700; }
.sgi-legal-content strong { color: var(--sgi-ink); }

.sgi-footer h3 { color: var(--sgi-gold-light) !important; letter-spacing: -.02em; }
.sgi-footer p, .sgi-footer a { color: rgba(255,255,255,.78) !important; }
.sgi-footer .wp-block-separator { opacity: .24; }

@media (max-width: 781px) {
  .sgi-site-shell > .wp-block-cover__image-background { position: absolute; }
  .sgi-header .wp-block-navigation { justify-content: flex-end; }
  .sgi-hero { text-align: center; }
  .sgi-hero .wp-block-buttons { justify-content: center; }
  .sgi-hide-mobile { display: none !important; }
  .sgi-hero h1 { margin-left: auto; margin-right: auto; }
  .sgi-hero-photo { width: min(520px, 88vw); }
  .sgi-editorial-photo { width: min(460px, 82vw); }
  .sgi-legal-aside { position: static; }
  .sgi-legal-content { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .sgi-snow { display: none; }
}
