/* ============================================================================
   AN CASTÁN HOUSE — design system
   Heritage Irish country estate · deep greens + warm cream + brass
   Modern sans throughout (Schibsted Grotesk display / Hanken Grotesk text)
   ============================================================================ */

:root {
  /* greens */
  --green-950: #16271d;
  --green-900: #1b3a2b;
  --green-800: #21442f;
  --green-700: #2c5640;
  --green-600: #3a6a50;
  /* brass / gold accent */
  --brass: #b08a4e;
  --brass-deep: #97703a;
  --brass-soft: #c8a877;
  /* warm neutrals */
  --cream: #f4eee1;
  --paper: #faf6ec;
  --paper-2: #fbf9f2;
  --stone: #e4dcc9;
  --stone-line: #d8cdb5;
  --taupe: #c9bba3;
  /* ink */
  --ink: #2a2620;
  --ink-soft: #5b5346;
  --ink-mute: #857b6a;
  --on-green: #f1ead9;
  --on-green-mute: #b9c4b6;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);

  --ff-display: "Schibsted Grotesk", system-ui, sans-serif;
  --ff-text: "Hanken Grotesk", system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(27,58,43,.05), 0 18px 40px -28px rgba(27,58,43,.45);
  --shadow-pop: 0 30px 80px -32px rgba(22,39,29,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-text);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; margin: 0; line-height: 1.04; letter-spacing: -.02em; }

/* ---- type helpers --------------------------------------------------------- */
.eyebrow {
  font-family: var(--ff-text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0;
}
.eyebrow.on-dark { color: var(--brass-soft); }
.lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.62; color: var(--ink-soft); }
.measure { max-width: 62ch; }
.serifless-num { font-family: var(--ff-display); font-weight: 600; letter-spacing: -.02em; }

/* ---- layout --------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.rule { height: 1px; background: var(--stone-line); border: 0; margin: 0; }
.brass-rule { width: 56px; height: 2px; background: var(--brass); border: 0; margin: 0; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  --bg: var(--green-900); --fg: var(--on-green); --bd: var(--green-900);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--ff-text); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 2px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--brass { --bg: var(--brass); --fg: #20180c; --bd: var(--brass); }
.btn--brass:hover { --bg: var(--brass-soft); }
.btn--ghost { --bg: transparent; --fg: var(--green-900); --bd: var(--green-900); }
.btn--ghost:hover { --bg: var(--green-900); --fg: var(--on-green); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(241,234,217,.5); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--green-900); --bd: var(--paper); }
.btn--sm { padding: 11px 18px; font-size: 13.5px; }

/* ---- chips / facts -------------------------------------------------------- */
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--ff-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; }
.fact span { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- site header ---------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.site-head.scrolled { padding-block: 10px; border-bottom-color: var(--stone-line); }
.site-head.on-hero {
  background: linear-gradient(180deg, rgba(22,39,29,.66) 0%, rgba(22,39,29,.30) 56%, rgba(22,39,29,0) 100%);
  backdrop-filter: none; color: var(--paper);
}
.site-head.on-hero .nav-link { color: var(--paper); text-shadow: 0 1px 10px rgba(22,39,29,.55); }
.site-head.on-hero .wordmark, .site-head.on-hero .wordmark b, .site-head.on-hero .wordmark small { color: var(--paper); }
.site-head.on-hero .wordmark b, .site-head.on-hero .wordmark small { text-shadow: 0 1px 10px rgba(22,39,29,.55); }
.site-head.on-hero .nav-toggle { color: var(--paper); }
.site-head.on-hero.scrolled {
  background: color-mix(in srgb, var(--green-950) 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(241,234,217,.16);
}

.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--green-900); }
.wordmark .mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; color: var(--brass-deep);
  flex: none; transform: translateY(3px);
}
.wordmark b { font-family: var(--ff-display); font-weight: 600; font-size: 19px; letter-spacing: .0em; }
.wordmark small { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-links { display: flex; gap: clamp(16px, 2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-link {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px;
  letter-spacing: .01em; padding: 6px 0; position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--brass); transition: right .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--brass-deep); }

.nav-toggle { display: none; }

/* ---- footer --------------------------------------------------------------- */
.site-foot { background: var(--green-950); color: var(--on-green); }
.site-foot a { color: var(--on-green); text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: 72px 40px; }
.site-foot .eyebrow { color: var(--brass-soft); margin-bottom: 18px; }
.foot-link { display: block; padding: 6px 0; color: var(--on-green-mute) !important; transition: color .25s; }
.foot-link:hover { color: var(--paper) !important; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(241,234,217,.14); padding-block: 26px 40px; font-size: 13px; color: var(--on-green-mute); }

/* ---- sticky booking bar (mobile/scroll) ----------------------------------- */
.book-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 12px; justify-content: center; align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--green-950) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(241,234,217,.14);
  transform: translateY(120%); transition: transform .5s var(--ease);
}
.book-dock.show { transform: translateY(0); }
.book-dock .dock-name { color: var(--on-green); font-family: var(--ff-display); font-weight: 600; margin-right: auto; }
.book-dock .dock-name small { display: block; font-family: var(--ff-text); font-weight: 500; font-size: 12px; color: var(--on-green-mute); letter-spacing: .04em; }

/* ---- reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- generic image frame -------------------------------------------------- */
.imgframe { position: relative; overflow: hidden; background: var(--stone); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; }
.kicker-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: color-mix(in srgb, var(--green-950) 82%, transparent);
  color: var(--on-green); padding: 7px 13px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ---- mobile nav ----------------------------------------------------------- */
.nav-toggle {
  width: 42px; height: 42px; border: 1px solid currentColor; background: transparent;
  border-radius: 2px; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; color: inherit; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; }
.mobile-drawer {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--green-950) 96%, transparent);
  backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gutter); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer a { color: var(--on-green); text-decoration: none; font-family: var(--ff-display); font-size: 34px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid rgba(241,234,217,.12); }
.mobile-drawer .drawer-book { margin-top: 26px; display: flex; gap: 12px; }
.mobile-drawer .drawer-book a { font-family: var(--ff-text); font-size: 15px; border: 0; }

/* ---- gallery shots -------------------------------------------------------- */
.gallery { display: grid; gap: 14px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.shot {
  position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer;
  background: var(--stone); aspect-ratio: 4 / 5; border-radius: 2px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.shot::after {
  content: "View"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--paper); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  background: color-mix(in srgb, var(--green-950) 30%, transparent); opacity: 0; transition: opacity .4s var(--ease);
}
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { opacity: 1; }
.shot.tall { aspect-ratio: 3 / 4; }
.shot.wide { aspect-ratio: 3 / 2; }
.shot.span2 { grid-column: span 2; aspect-ratio: auto; }
.shot.row2 { grid-row: span 2; aspect-ratio: auto; }

/* ---- lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
  background: color-mix(in srgb, var(--green-950) 93%, transparent); backdrop-filter: blur(8px);
}
.lightbox.open { display: grid; }
.lb-stage { margin: 0; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-stage img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 2px; box-shadow: var(--shadow-pop);
  opacity: 0; transition: opacity .4s var(--ease); }
.lb-stage img.ready { opacity: 1; }
.lb-stage figcaption { color: var(--on-green-mute); font-size: 13px; letter-spacing: .08em; }
.lb-close, .lb-nav {
  position: fixed; background: transparent; border: 1px solid rgba(241,234,217,.4); color: var(--paper);
  cursor: pointer; border-radius: 50%; transition: background .25s, border-color .25s; z-index: 2;
}
.lb-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 30px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close:hover, .lb-nav:hover { background: var(--brass); border-color: var(--brass); color: #20180c; }

/* ---- feature blocks / cards ----------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow-card); }
.feature-media .stack2 { position: absolute; width: 44%; aspect-ratio: 3/4; right: -7%; bottom: -10%; border: 6px solid var(--paper); box-shadow: var(--shadow-card); }
.feature h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 4px; }
.feature .feat-no { font-family: var(--ff-display); font-size: 14px; letter-spacing: .04em; color: var(--brass-deep); font-weight: 600; }

/* ---- panel (green homey field, à la Direction B) -------------------------- */
.panel-green { background: var(--green-900); color: var(--on-green); }
.panel-green h2, .panel-green h3 { color: var(--paper); }
.panel-green .lede { color: var(--on-green-mute); }
.panel-deep { background: var(--green-950); color: var(--on-green); }
.panel-deep h2, .panel-deep h3 { color: var(--paper); }
.accent-brass { color: var(--brass-soft); }

/* ---- amenity list --------------------------------------------------------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 40px; list-style: none; margin: 0; padding: 0; }
.amenities li { display: flex; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--stone-line); font-size: 16px; }
.panel-green .amenities li, .panel-deep .amenities li { border-top-color: rgba(241,234,217,.16); }
.amenities li::before { content: ""; width: 5px; height: 5px; background: var(--brass); border-radius: 50%; flex: none; transform: translateY(7px); }

/* ---- guide cards (explore) ------------------------------------------------ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.guide-card { background: var(--paper-2); border: 1px solid var(--stone-line); border-radius: 3px; padding: 26px 26px 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--taupe); }
.guide-card h4 { font-size: 17px; margin-bottom: 2px; }
.guide-card .gc-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.guide-card p { font-size: 14.5px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.55; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--stone-line); }
.guide-list li:first-child { border-top: 0; }
.guide-list .gl-name { font-weight: 600; font-family: var(--ff-display); }
.guide-list .gl-note { color: var(--ink-mute); font-size: 14px; text-align: right; }

/* ---- distance / location -------------------------------------------------- */
.dist-list { list-style: none; margin: 0; padding: 0; }
.dist-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(241,234,217,.16); }
.dist-list li:first-child { border-top: 0; }
.dist-list .d-name { font-family: var(--ff-display); font-weight: 600; font-size: 18px; color: var(--paper); }
.dist-list .d-name small { display: block; font-family: var(--ff-text); font-weight: 500; font-size: 13px; color: var(--on-green-mute); letter-spacing: 0; }
.dist-list .d-time { font-family: var(--ff-display); font-weight: 600; color: var(--brass-soft); white-space: nowrap; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: 3px; filter: grayscale(.3) sepia(.12) saturate(.9); }

/* ---- itinerary timeline --------------------------------------------------- */
.itin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.itin-col h3 { font-size: 26px; margin-bottom: 4px; }
.timeline { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--stone-line); }
.panel-deep .timeline::before, .panel-green .timeline::before { background: rgba(241,234,217,.2); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass); }
.timeline .t-time { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.panel-deep .timeline .t-time { color: var(--brass-soft); }
.timeline .t-title { font-family: var(--ff-display); font-weight: 600; font-size: 18px; margin: 3px 0 2px; }
.timeline p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.panel-deep .timeline p, .panel-green .timeline p { color: var(--on-green-mute); }

/* ---- pull quote ----------------------------------------------------------- */
.pullquote { font-family: var(--ff-display); font-weight: 500; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -.015em; max-width: 20ch; }

/* ---- section heading cluster --------------------------------------------- */
.head-cluster { max-width: 64ch; }
.head-cluster h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 16px; }
.head-cluster .lede { margin-top: 22px; }

@media (max-width: 980px) {
  .amenities { grid-template-columns: 1fr 1fr; }
  .feature, .itin { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .stack2 { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .gallery--3, .gallery--4 { grid-template-columns: 1fr 1fr; }
  .shot.span2, .shot.row2 { grid-column: auto; grid-row: auto; }
  .amenities { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
}
@media (max-width: 520px) {
  .gallery--3, .gallery--4 { grid-template-columns: 1fr; }
}
