/*
Theme Name: HotelsInIceland MTC
Theme URI: https://hotelsiniceland.com/
Author: Marketing the Change
Author URI: https://marketingthechange.com/
Description: Editorial FSE theme for HotelsInIceland. Basalt + Glacier + Paper + Aurora + Ember palette. Manrope + Fraunces + Inter + JetBrains Mono. Custom post types for hotel, region, town. Region-first information architecture with Icelandic diacritics rendered throughout.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotelsiniceland-mtc
Tags: full-site-editing, block-patterns, editorial, travel, hotels, iceland
*/

/* Minimal supplemental styles. Bulk of styling flows from theme.json. */

:root {
  --hii-basalt: #1A1D23;
  --hii-slate: #2A2E36;
  --hii-glacier: #F5F7F8;
  --hii-paper: #EFEAE0;
  --hii-aurora: #5DBC8E;
  --hii-ember: #D97852;
  --hii-ink: #12141A;
  --hii-snow: #F8F9FA;
  --hii-fog: #7B818C;
  --hii-mist: #3A3F48;
  --hii-moss: #4A9E6E;
  --hii-rowan: #B54530;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--hii-aurora);
  color: var(--hii-ink);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* Basalt Wash — hero + full-bleed sections + hotel review heroes */
.wp-block-cover.is-style-basalt-wash::after,
.img-basalt-wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,29,35,0.35) 0%, rgba(26,29,35,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Aurora Glow — radial green wash for aurora hotel cards + roundup heros */
.img-aurora-glow { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-image.is-style-aurora-glow img,
.img-aurora-glow img { filter: contrast(1.05) saturate(1.05); }
.wp-block-image.is-style-aurora-glow::after,
.img-aurora-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(93,188,142,0.18) 0%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Paper Frame — inline editorial images on Paper sections */
.wp-block-image.is-style-paper-frame,
.img-paper-frame {
  padding: 12px;
  background: var(--hii-paper);
  border: 1px solid #E0D8C6;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(18,20,26,0.06);
  display: inline-block;
}
.wp-block-image.is-style-paper-frame img,
.img-paper-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Pills */
.hii-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.hii-pill--aurora  { background: var(--hii-aurora); color: var(--hii-ink); }
.hii-pill--ember   { background: var(--hii-ember); color: var(--hii-snow); }
.hii-pill--moss    { background: var(--hii-moss); color: var(--hii-snow); }
.hii-pill--mist    { background: var(--hii-mist); color: var(--hii-snow); }
.hii-pill--fog     { background: var(--hii-glacier); color: var(--hii-ink); border: 1px solid var(--hii-fog); }
.hii-pill--rowan   { background: var(--hii-rowan); color: var(--hii-snow); }

/* Monospace numeric */
.hii-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
}

/* Trust strip */
.hii-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--hii-basalt);
  color: var(--hii-snow);
}
.hii-trust-strip .stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  color: var(--hii-aurora);
  display: block;
  line-height: 1;
}
.hii-trust-strip .stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  margin-top: 8px;
  display: block;
}
@media (max-width: 782px) {
  .hii-trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Aurora plan advisory (seasonal / weather cue) */
.hii-aurora-alert {
  background: var(--hii-paper);
  color: var(--hii-ink);
  border-left: 4px solid var(--hii-aurora);
  padding: 16px 20px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hii-aurora-alert strong { color: var(--hii-moss); }

/* Seasonal closure banner */
.hii-closure-alert {
  background: var(--hii-rowan);
  color: var(--hii-snow);
  padding: 12px 20px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* Affiliate disclosure band (mandatory above every Booking.com widget) */
.hii-disclosure {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--hii-fog);
  padding: 8px 12px;
  background: var(--hii-glacier);
  border-left: 3px solid var(--hii-aurora);
  margin: 16px 0 8px;
  line-height: 1.5;
}
.hii-disclosure a { color: var(--hii-mist); text-decoration: underline; }

/* Editorial eyebrow */
.hii-eyebrow {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--hii-aurora);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Hotel card */
.hii-hotel-card {
  background: var(--hii-snow);
  border: 1px solid #E4E7EA;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 150ms ease-out, border-color 150ms ease-out;
}
.hii-hotel-card:hover {
  transform: translateY(-4px);
  border-color: var(--hii-aurora);
}
.hii-hotel-card .card-body { padding: 24px; }

/* Aurora rating arcs (5-arc stylised) */
.hii-aurora-rating {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.hii-aurora-rating .arc {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: var(--hii-fog);
  opacity: 0.4;
}
.hii-aurora-rating .arc.filled {
  background: var(--hii-aurora);
  opacity: 1;
}
.hii-aurora-rating .label {
  margin-left: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--hii-fog);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Since-2013 badge (the domain heritage) */
.hii-since-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--hii-aurora);
  color: var(--hii-aurora);
  border-radius: 999px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
}

/* Sticky header shadow when scrolled */
.hii-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms ease-out;
}
.hii-sticky-header.scrolled { box-shadow: 0 2px 12px rgba(26,29,35,0.15); }

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
