/*
Theme Name: Bournemouth Hotel Guide MTC
Theme URI: https://bournemouth-hotel-guide.co.uk/
Author: Marketing the Change
Author URI: https://marketingthechange.com/
Description: Editorial FSE theme for Bournemouth Hotel Guide. Cliff Ink, Chalk, Sand, Seafront turquoise, Sunset Coral palette. Manrope + Fraunces + Inter + JetBrains Mono. Custom post types for hotel, neighbourhood and attraction. Neighbourhood-first UK travel editorial architecture.
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: bournemouth-hotel-guide-mtc
Tags: full-site-editing, block-patterns, editorial, travel, hotels, bournemouth
*/

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

:root {
  --bhg-cliff-ink: #1B2530;
  --bhg-deep-sea: #2A3947;
  --bhg-chalk: #F6F3EC;
  --bhg-sand: #EDE3D0;
  --bhg-seafront: #3AA6A0;
  --bhg-sunset-coral: #E27A5A;
  --bhg-ink: #161B22;
  --bhg-snow: #F8F9FA;
  --bhg-mist: #7C8590;
  --bhg-rope: #39424E;
  --bhg-sea-foam: #2E8A85;
  --bhg-rowan: #B54530;
}

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

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

/* Seafront Glow, sea-view cards + seafront roundup hero */
.img-seafront-glow { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-image.is-style-seafront-glow img,
.img-seafront-glow img { filter: contrast(1.05) saturate(1.05); }
.wp-block-image.is-style-seafront-glow::after,
.img-seafront-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(58,166,160,0.18) 0%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Sand Frame, editorial inline images on Sand sections */
.wp-block-image.is-style-sand-frame,
.img-sand-frame {
  padding: 12px;
  background: var(--bhg-sand);
  border: 1px solid #DDCFB4;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(22,27,34,0.06);
  display: inline-block;
}
.wp-block-image.is-style-sand-frame img,
.img-sand-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Pills */
.bhg-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;
}
.bhg-pill--seafront { background: var(--bhg-seafront); color: var(--bhg-ink); }
.bhg-pill--coral    { background: var(--bhg-sunset-coral); color: var(--bhg-snow); }
.bhg-pill--foam     { background: var(--bhg-sea-foam); color: var(--bhg-snow); }
.bhg-pill--rope     { background: var(--bhg-rope); color: var(--bhg-snow); }
.bhg-pill--outline  { background: var(--bhg-chalk); color: var(--bhg-ink); border: 1px solid var(--bhg-mist); }
.bhg-pill--rowan    { background: var(--bhg-rowan); color: var(--bhg-snow); }

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

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

/* Beach dog-hour / Air Festival / seasonal notice */
.bhg-notice {
  background: var(--bhg-sand);
  color: var(--bhg-ink);
  border-left: 4px solid var(--bhg-seafront);
  padding: 16px 20px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bhg-notice strong { color: var(--bhg-sea-foam); }

.bhg-warning {
  background: var(--bhg-rowan);
  color: var(--bhg-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 */
.bhg-disclosure {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--bhg-mist);
  padding: 8px 12px;
  background: var(--bhg-chalk);
  border-left: 3px solid var(--bhg-seafront);
  margin: 16px 0 8px;
  line-height: 1.5;
}
.bhg-disclosure a { color: var(--bhg-rope); text-decoration: underline; }

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

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

/* Sea-view rating (5 stylised waves) */
.bhg-sea-rating {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.bhg-sea-rating .wave {
  display: inline-block;
  width: 16px;
  height: 8px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--bhg-mist);
  opacity: 0.4;
}
.bhg-sea-rating .wave.filled {
  background: var(--bhg-seafront);
  opacity: 1;
}
.bhg-sea-rating .label {
  margin-left: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--bhg-mist);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Walk / drive time chip */
.bhg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bhg-chalk);
  border: 1px solid var(--bhg-mist);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--bhg-ink);
}

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

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

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