/*
Theme Name: Ski Funday
Theme URI: https://skifunday.co.uk/
Author: Ski Funday
Author URI: https://skifunday.co.uk/
Description: A custom WordPress theme for Ski Funday - featuring blog posts, ski kit guides, and ski resort guides with Gutenberg support, affiliate marketing integration, and custom content components.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skifunday
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-editor-styles
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Variables)
   2. CSS Reset & Base
   3. Typography
   4. Layout & Grid
   5. Header & Navigation
   6. Hero Section
   7. Cards & Post Loops
   8. Single Post & Page
   9. Sidebar & Widgets
   10. Footer
   11. --- GUTENBERG CUSTOM COMPONENTS ---
   12. Breakout Boxes
   13. Pull Quotes
   14. Columns
   15. CTA Buttons
   16. Affiliate Product Blocks
   17. Ski Kit Guide Components
   18. Resort Guide Components
   19. --- RESPONSIVE ---
   20. Tablet Breakpoint
   21. Mobile Breakpoint
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary:       #1a3a5c;   /* Deep navy – sky/mountain */
  --color-primary-dark:  #0f2338;
  --color-primary-light: #2a5080;
  --color-secondary:     #e8401c;   /* Warm red – ski jacket energy */
  --color-secondary-dark:#c0341a;
  --color-accent:        #f0a500;   /* Golden yellow – sunshine on snow */
  --color-accent-light:  #ffd166;
  --color-snow:          #f5f8fc;   /* Off-white background */
  --color-white:         #ffffff;
  --color-text:          #222831;
  --color-text-light:    #555f6e;
  --color-border:        #d5dde8;
  --color-success:       #2e7d32;
  --color-info:          #0277bd;
  --color-warning:       #f57c00;
  --color-tip:           #1a5276;

  /* Typography */
  --font-heading:  'Montserrat', 'Trebuchet MS', sans-serif;
  --font-body:     'Open Sans', 'Segoe UI', sans-serif;
  --font-mono:     'Courier New', monospace;

  /* Font sizes (fluid) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:       1200px;
  --container-narrow:    760px;
  --container-wide:      1400px;
  --sidebar-width:       320px;
  --content-width:       calc(100% - var(--sidebar-width) - var(--space-8));

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.18);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}


/* ==========================================================================
   2. CSS RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); margin-top: 0; }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: 0.06em; }

p {
  margin-bottom: var(--space-5);
  max-width: 72ch;
}

.entry-content p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--color-accent);
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-8);
  background: var(--color-snow);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-top: var(--space-3);
  color: var(--color-text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-snow);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

pre {
  background: var(--color-primary-dark);
  color: #e0e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: var(--text-sm);
}

strong { font-weight: 700; }
em { font-style: italic; }

.text-center { text-align: center; }
.text-large  { font-size: var(--text-lg); line-height: 1.8; }
.text-small  { font-size: var(--text-sm); }
.text-muted  { color: var(--color-text-light); }

/* Entry content spacing */
.entry-content > * + * { margin-top: var(--space-5); }
.entry-content h2,
.entry-content h3 { margin-top: var(--space-12); }
.entry-content ul,
.entry-content ol { margin-bottom: var(--space-5); }


/* ==========================================================================
   4. LAYOUT & GRID
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.site-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  align-items: start;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6);
}

.site-layout--fullwidth {
  display: block;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6);
}

.site-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--container-narrow);
}

main { min-height: 60vh; }

.section-pad {
  padding-block: var(--space-16);
}

.section-pad--sm {
  padding-block: var(--space-8);
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

/* ----- Standard header (all pages except front page) ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* ----- Front-page hero header ----- */

.site-header--hero {
  position: relative;          /* not sticky – scrolls with page */
  z-index: 10;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary); /* fallback if no image is set */
  /* background-image, background-size, background-position are applied
     as a direct inline style by header.php so they reliably take effect */
  background-repeat: no-repeat;
}

/* Gradient overlay – ensures nav and hero text are always legible */
.site-header__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 26, 44, 0.75) 0%,    /* darkest at top where nav lives */
    rgba(15, 35, 56, 0.55) 50%,
    rgba(15, 35, 56, 0.70) 100%   /* slightly darker again at bottom */
  );
  pointer-events: none;
}

/* The nav bar strip at the very top of the hero */
.site-header__bar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero content block (title + subtitle + buttons) */
.site-header--hero .hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6) var(--space-20);
  max-width: 760px;
  margin-inline: auto;
  width: 100%;
}

/* ----- Shared inner layout ----- */

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

/* Logo / branding – fixed width so nav can take the remaining space */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.site-title span {
  color: var(--color-accent);
}

.site-description {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----- Primary Navigation ----- */
/*
 * The nav grows to fill all available space between the logo and the
 * search box, spreading its links evenly across that width.
 */

.primary-nav {
  flex: 1;                /* take up all remaining horizontal space */
  display: flex;
  align-items: center;
  justify-content: center; /* centre the links within that space */
}

.primary-nav__list,
.primary-nav ul:first-child {  /* target both custom menu and fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.primary-nav__list > li,
.primary-nav ul:first-child > li {
  margin: 0;
  position: relative;
}

.primary-nav__list > li > a,
.primary-nav ul:first-child > li > a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > .current-menu-item > a,
.primary-nav ul:first-child > li > a:hover,
.primary-nav ul:first-child > .current-menu-item > a {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

/* ----- Dropdown sub-menus ----- */

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: var(--space-2) 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 200;
}

.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.primary-nav .sub-menu li { position: static; margin: 0; }

.primary-nav .sub-menu a {
  display: block;
  color: var(--color-text);
  text-transform: none;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: 0;
  letter-spacing: 0;
  background: none;
  white-space: nowrap;
}

.primary-nav .sub-menu a:hover {
  background: var(--color-snow);
  color: var(--color-primary);
}

/* ----- Mobile toggle ----- */

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--color-white);
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
}

/* ----- Header search ----- */

.header-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header-search input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  color: var(--color-white);
  font-size: var(--text-sm);
  width: 160px;
  transition: all var(--transition-base);
}

.header-search input::placeholder { color: rgba(255,255,255,0.5); }

.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  width: 210px;
}


/* ==========================================================================
   6. HERO CONTENT (inside .site-header--hero)
   ========================================================================== */

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
  color: var(--color-white);
  margin: 0 0 var(--space-5);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-8);
  max-width: 56ch;
  margin-inline: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--color-snow);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span + span::before { content: ' › '; margin-inline: var(--space-2); }


/* ==========================================================================
   7. CARDS & POST LOOPS
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.posts-grid--2col {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__thumbnail img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
  line-height: 1.35;
}

.card__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.card__title a:hover { color: var(--color-secondary); }

.card__excerpt {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-5);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: auto;
}

.card__meta svg { flex-shrink: 0; }

/* Category badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  text-decoration: none;
}

.badge--blog     { background: #e8f4fd; color: #0277bd; }
.badge--kit      { background: #fef3e2; color: #e65100; }
.badge--resort   { background: #e8f5e9; color: #2e7d32; }

/* Featured post */
.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  min-height: 360px;
}

.post-featured .card__thumbnail {
  aspect-ratio: auto;
  height: 100%;
}

.post-featured .card__body {
  padding: var(--space-10);
}

.post-featured .card__title {
  font-size: var(--text-3xl);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-12) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.pagination a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }


/* ==========================================================================
   8. SINGLE POST & PAGE
   ========================================================================== */

.post-header {
  padding: var(--space-12) var(--space-6) var(--space-8);
  background: var(--color-snow);
  border-bottom: 1px solid var(--color-border);
}

.post-header__inner {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.post-header__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin: 0 0 var(--space-5);
  color: var(--color-primary);
}

.post-header__intro {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.75;
  max-width: 65ch;
}

.post-thumbnail {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-md);
}

/* Table of contents */
.toc {
  background: var(--color-snow);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.toc__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
}

.toc ol, .toc ul { margin-bottom: 0; }
.toc li { font-size: var(--text-sm); }
.toc a { color: var(--color-primary); }
.toc a:hover { color: var(--color-secondary); }

/* Post author box */
.author-box {
  display: flex;
  gap: var(--space-5);
  background: var(--color-snow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-12) 0;
}

.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.author-box__bio { font-size: var(--text-sm); color: var(--color-text-light); }

/* Affiliate disclosure */
.affiliate-disclosure {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: #6b5600;
  margin-bottom: var(--space-8);
}

.affiliate-disclosure strong { font-weight: 700; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-12) 0;
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-8);
}

.post-nav-link {
  padding: var(--space-5);
  background: var(--color-snow);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.post-nav-link:hover { background: var(--color-primary); }
.post-nav-link:hover .post-nav-link__label,
.post-nav-link:hover .post-nav-link__title { color: var(--color-white); }

.post-nav-link--next { text-align: right; }

.post-nav-link__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.post-nav-link__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
}


/* ==========================================================================
   9. SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar {
  position: sticky;
  top: calc(70px + var(--space-6));
}

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-primary);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.widget ul a:hover { color: var(--color-secondary); }

/* Sidebar search */
.widget .search-form {
  display: flex;
  gap: var(--space-2);
}

.widget .search-form input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.widget .search-form button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}

.sidebar-cta h3 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-top: 0;
}

.sidebar-cta p {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-bottom: var(--space-5);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .site-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  display: block;
  text-decoration: none;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.75;
  max-width: 30ch;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: var(--space-3); }

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--color-accent); }


/* ==========================================================================
   7b. CATEGORY TILES (front-page section below the hero)
   ========================================================================== */

.category-tiles-section {
  background: var(--color-snow);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-10);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Tile inherits .card styles + these additions */
.sf-category-tile {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sf-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.sf-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Icon area */
.sf-tile__icon {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
}

.sf-tile__icon--emoji {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}

.sf-tile__icon--image {
  display: block;
}

.sf-tile__icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

/* Heading & description already use card classes, just override margins */
.sf-tile__heading {
  font-size: var(--text-xl) !important;
}

.sf-tile__desc {
  flex: 1;
}

.sf-tile__btn {
  align-self: flex-start;
  display: inline-flex;
}

@media (max-width: 600px) {
  .category-tiles {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   11. GUTENBERG CUSTOM COMPONENTS - MASTER SECTION
   ========================================================================== */

/* All custom Gutenberg blocks/classes share these base traits */
[class*="sf-breakout"],
[class*="sf-pullquote"],
[class*="sf-columns"],
[class*="sf-cta"],
[class*="sf-product"],
[class*="sf-tip"] {
  margin-block: var(--space-10);
}


/* ==========================================================================
   12. BREAKOUT BOXES
   Usage: Add CSS class to a Gutenberg Group block
   ========================================================================== */

/* Base breakout */
.sf-breakout {
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  border-left: 5px solid transparent;
  margin-block: var(--space-8);
}

.sf-breakout > *:first-child { margin-top: 0; }
.sf-breakout > *:last-child  { margin-bottom: 0; }

.sf-breakout__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  display: block;
}

.sf-breakout__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-3);
}

/* --- Variants --- */

/* TIP – blue, info */
.sf-breakout--tip {
  background: #e8f4fd;
  border-left-color: var(--color-info);
}
.sf-breakout--tip .sf-breakout__title { color: var(--color-info); }

/* WARNING – amber */
.sf-breakout--warning {
  background: #fff8e1;
  border-left-color: var(--color-warning);
}
.sf-breakout--warning .sf-breakout__title { color: var(--color-warning); }

/* SNOW PRO – purple/navy, expert advice */
.sf-breakout--pro {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-left-color: var(--color-accent);
  color: rgba(255,255,255,0.9);
}
.sf-breakout--pro .sf-breakout__title { color: var(--color-accent); }
.sf-breakout--pro p { color: rgba(255,255,255,0.85); }

/* GEAR – warm orange, kit focus */
.sf-breakout--gear {
  background: #fff3e0;
  border-left-color: var(--color-secondary);
}
.sf-breakout--gear .sf-breakout__title { color: var(--color-secondary); }

/* RESORT FACT – green */
.sf-breakout--resort {
  background: #e8f5e9;
  border-left-color: var(--color-success);
}
.sf-breakout--resort .sf-breakout__title { color: var(--color-success); }

/* SAFETY – red */
.sf-breakout--safety {
  background: #fce4ec;
  border-left-color: #c62828;
}
.sf-breakout--safety .sf-breakout__title { color: #c62828; }

/* QUICK FACTS – highlighted summary box */
.sf-breakout--facts {
  background: var(--color-snow);
  border: 2px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
}
.sf-breakout--facts .sf-breakout__title { color: var(--color-primary); }

/* Breakout full-width (bleeds edge to edge on mobile) */
.sf-breakout--fullwidth {
  margin-inline: calc(var(--space-6) * -1);
  border-radius: 0;
  border-left: none;
  border-top: 5px solid var(--color-primary);
}


/* ==========================================================================
   13. PULL QUOTES
   Usage: Add class to Gutenberg Quote or Paragraph block
   ========================================================================== */

.sf-pullquote {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
  text-align: center;
  padding: var(--space-10) var(--space-12);
  margin-block: var(--space-12);
  border: none;
  background: none;
  font-style: normal;
}

.sf-pullquote::before,
.sf-pullquote::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  width: 60px;
  margin-inline: auto;
}

.sf-pullquote::before { margin-bottom: var(--space-6); }
.sf-pullquote::after  { margin-top:    var(--space-6); }

.sf-pullquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: var(--space-4);
  font-style: italic;
}

/* Pullquote float variants */
.sf-pullquote--left {
  float: left;
  width: 42%;
  margin: var(--space-4) var(--space-8) var(--space-8) 0;
  text-align: left;
  font-size: var(--text-xl);
  padding: var(--space-6) var(--space-8) var(--space-6) 0;
}

.sf-pullquote--left::before,
.sf-pullquote--left::after { margin-inline: 0; }

.sf-pullquote--right {
  float: right;
  width: 42%;
  margin: var(--space-4) 0 var(--space-8) var(--space-8);
  text-align: right;
  font-size: var(--text-xl);
  padding: var(--space-6) 0 var(--space-6) var(--space-8);
}

.sf-pullquote--right::before,
.sf-pullquote--right::after { margin-left: auto; margin-right: 0; }

/* Accent pullquote – navy background */
.sf-pullquote--accent {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
}

.sf-pullquote--accent::before,
.sf-pullquote--accent::after { background: var(--color-accent); }
.sf-pullquote--accent cite { color: rgba(255,255,255,0.65); }

/* Clear after floated pullquotes */
.sf-pullquote--left + *,
.sf-pullquote--right + * { overflow: auto; }


/* ==========================================================================
   14. COLUMNS
   Usage: Custom classes for Gutenberg Columns or Group blocks
   ========================================================================== */

/* Two-column comparison layout */
.sf-columns-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-block: var(--space-8);
}

.sf-columns-compare__col {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
}

.sf-columns-compare__col--pro {
  background: #e8f5e9;
  border-color: var(--color-success);
}

.sf-columns-compare__col--con {
  background: #fce4ec;
  border-color: #e57373;
}

.sf-columns-compare__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-4);
}

.sf-columns-compare__col--pro .sf-columns-compare__heading { color: var(--color-success); }
.sf-columns-compare__col--con .sf-columns-compare__heading { color: #c62828; }

.sf-columns-compare__col ul { padding-left: var(--space-5); margin: 0; }
.sf-columns-compare__col li { font-size: var(--text-sm); }

/* Three-column stat blocks */
.sf-columns-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-block: var(--space-8);
}

.sf-stat {
  text-align: center;
  background: var(--color-snow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sf-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.sf-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Two-column text + image layout */
.sf-columns-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-block: var(--space-8);
}

.sf-columns-media--reverse { direction: rtl; }
.sf-columns-media--reverse > * { direction: ltr; }

.sf-columns-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

/* Kit listing columns */
.sf-columns-kit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-block: var(--space-8);
}


/* ==========================================================================
   15. CTA BUTTONS
   Usage: Add class to Gutenberg Button block
   ========================================================================== */

/* Base button */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.25;
}

.sf-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Primary */
.sf-btn--primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.sf-btn--primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 64, 28, 0.35);
}

/* Secondary */
.sf-btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.sf-btn--secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Outline */
.sf-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.sf-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Ghost – on dark bg */
.sf-btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.sf-btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

/* Amazon affiliate button */
.sf-btn--amazon {
  background: #ff9900;
  color: #111;
  border-color: #ff9900;
}
.sf-btn--amazon:hover {
  background: #e68a00;
  border-color: #e68a00;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.sf-btn--amazon::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23111'%3E%3Cpath d='M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.591-7.305z'/%3E%3C/svg%3E");
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
  margin-right: 4px;
}

/* Large/small size mods */
.sf-btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

.sf-btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

/* Full-width button */
.sf-btn--block {
  display: flex;
  width: 100%;
}

/* Button group */
.sf-btn-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-block: var(--space-6);
}

/* CTA section block */
.sf-cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--color-white);
  margin-block: var(--space-12);
  position: relative;
  overflow: hidden;
}

.sf-cta-block::before {
  content: '⛷';
  position: absolute;
  font-size: 10rem;
  opacity: 0.05;
  right: -2rem;
  top: -2rem;
  line-height: 1;
}

.sf-cta-block h2,
.sf-cta-block h3 {
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.sf-cta-block p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.sf-cta-block .sf-btn-group { justify-content: center; }

/* Inline CTA banner */
.sf-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  background: var(--color-snow);
  border: 2px solid var(--color-border);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-8);
  flex-wrap: wrap;
}

.sf-cta-banner__text { flex: 1; min-width: 200px; }
.sf-cta-banner__text p { margin: 0; font-size: var(--text-sm); }
.sf-cta-banner__text strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }


/* ==========================================================================
   16. AFFILIATE PRODUCT BLOCKS
   ========================================================================== */

/* Single product card */
.sf-product {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-8);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.sf-product:hover { box-shadow: var(--shadow-md); }

.sf-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-snow);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 160px;
}

.sf-product__image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: var(--space-3);
}

.sf-product__badge {
  margin-bottom: var(--space-3);
}

.sf-product__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}

.sf-product__price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.sf-product__price .sf-product__price-was {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: var(--space-2);
}

.sf-product__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.sf-product__stars { color: #ffa000; font-size: var(--text-lg); letter-spacing: -2px; }
.sf-product__rating-count { font-size: var(--text-xs); color: var(--color-text-light); }

.sf-product__description {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.sf-product__features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-5);
}

.sf-product__features li {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
  margin: 0;
}

.sf-product__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.sf-product__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.sf-product__affiliate-note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-3);
  font-style: italic;
}

/* Product grid – multiple products */
.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-block: var(--space-8);
}

.sf-product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sf-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sf-product-card__image {
  aspect-ratio: 4/3;
  background: var(--color-snow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.sf-product-card__image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.sf-product-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sf-product-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.sf-product-card__price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.sf-product-card__body .sf-btn { margin-top: auto; }

/* Comparison table */
.sf-product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-block: var(--space-8);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sf-product-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: var(--space-4) var(--space-5);
}

.sf-product-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.sf-product-table tr:last-child td { border-bottom: none; }
.sf-product-table tr:nth-child(even) td { background: var(--color-snow); }

.sf-product-table .winner { background: #e8f5e9 !important; }
.sf-product-table .check { color: var(--color-success); font-weight: 700; }
.sf-product-table .cross  { color: #e53935; }


/* ==========================================================================
   17. SKI KIT GUIDE COMPONENTS
   ========================================================================== */

/* Kit checklist */
.sf-kit-checklist {
  background: var(--color-snow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-8);
}

.sf-kit-checklist__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sf-kit-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-2) var(--space-6);
}

.sf-kit-checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.sf-kit-checklist li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--color-primary);
  border-radius: 3px;
}

.sf-kit-checklist li.checked::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Budget guide */
.sf-budget-guide {
  margin-block: var(--space-8);
}

.sf-budget-tier {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  background: var(--color-white);
}

.sf-budget-tier__level {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-snow);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.sf-budget-tier--beginner .sf-budget-tier__level { background: #e8f5e9; }
.sf-budget-tier--mid      .sf-budget-tier__level { background: #fff8e1; }
.sf-budget-tier--pro      .sf-budget-tier__level { background: #e3f2fd; }

.sf-budget-tier__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.sf-budget-tier__price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
}

.sf-budget-tier__title {
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.sf-budget-tier__description { font-size: var(--text-sm); color: var(--color-text-light); }


/* ==========================================================================
   18. RESORT GUIDE COMPONENTS
   ========================================================================== */

/* Resort stats bar */
.sf-resort-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-4);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-block: var(--space-8);
  color: var(--color-white);
}

.sf-resort-stat {
  text-align: center;
  padding: var(--space-4);
  border-right: 1px solid rgba(255,255,255,0.15);
}

.sf-resort-stat:last-child { border-right: none; }

.sf-resort-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.sf-resort-stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* Run difficulty indicator */
.sf-difficulty-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.sf-difficulty-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.sf-difficulty-pill--green  { background: #4caf50; color: white; }
.sf-difficulty-pill--blue   { background: #2196f3; color: white; }
.sf-difficulty-pill--red    { background: #f44336; color: white; }
.sf-difficulty-pill--black  { background: #212121; color: white; }

/* Resort quick facts */
.sf-resort-quickfacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: var(--space-8);
}

.sf-resort-quickfacts__item {
  background: var(--color-white);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sf-resort-quickfacts__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.sf-resort-quickfacts__value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

/* Image gallery strip for resort */
.sf-resort-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px;
  gap: var(--space-3);
  margin-block: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sf-resort-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   19. RESPONSIVE – TABLET (max 960px)
   ========================================================================== */

@media (max-width: 960px) {

  .site-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-5);
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .posts-grid--2col {
    grid-template-columns: 1fr;
  }

  .post-featured {
    grid-template-columns: 1fr;
  }

  .sf-columns-compare,
  .sf-columns-media {
    grid-template-columns: 1fr;
  }

  .sf-columns-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .sf-product {
    grid-template-columns: 140px 1fr;
  }

  .sf-resort-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }

  .sf-resort-gallery img:first-child {
    grid-column: 1 / -1;
  }

  .sf-pullquote--left,
  .sf-pullquote--right {
    float: none;
    width: 100%;
    text-align: center;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}


/* ==========================================================================
   20. RESPONSIVE – MOBILE (max 600px)
   ========================================================================== */

@media (max-width: 600px) {

  :root {
    --space-6:  1.25rem;
  }

  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--color-primary-dark);
    z-index: 99;
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open .primary-nav__list,
  .primary-nav.is-open ul:first-child {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .primary-nav.is-open .primary-nav__list > li > a,
  .primary-nav.is-open ul:first-child > li > a {
    border-radius: 0;
    padding: var(--space-3) var(--space-6);
  }
  .nav-toggle { display: flex; }

  /* Standard and hero headers need relative positioning for mobile dropdown */
  .site-header { position: relative; }
  .site-header__bar { position: relative; }

  .site-header--hero { min-height: 420px; }
  .site-header--hero .hero__content { padding: var(--space-10) var(--space-5) var(--space-16); }

  .hero__actions { flex-direction: column; }
  .hero__actions .sf-btn { width: 100%; }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .sf-product {
    grid-template-columns: 1fr;
  }

  .sf-product__image {
    height: 200px;
  }

  .sf-product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-columns-stats {
    grid-template-columns: 1fr 1fr;
  }

  .sf-resort-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-resort-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .sf-resort-quickfacts {
    grid-template-columns: 1fr;
  }

  .sf-resort-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sf-resort-gallery img:first-child { grid-column: auto; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .sf-kit-checklist ul {
    grid-template-columns: 1fr;
  }

  .sf-budget-tier {
    grid-template-columns: 1fr;
  }

  .sf-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .header-search { display: none; }

  .sf-pullquote {
    padding: var(--space-8) var(--space-5);
    font-size: var(--text-xl);
  }

  .sf-breakout {
    padding: var(--space-5) var(--space-5);
  }
}


/* ==========================================================================
   GUTENBERG EDITOR COMPATIBILITY
   ========================================================================== */

.wp-block-group { margin-block: var(--space-5); }
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-separator { border-color: var(--color-border); }
.wp-block-quote { composes: sf-pullquote; }

/* Gutenberg columns override */
.wp-block-columns { gap: var(--space-6); }

/* Gutenberg cover override */
.wp-block-cover { border-radius: var(--radius-xl); overflow: hidden; }

/* Make sure custom classes stack with Gutenberg wrappers */
.wp-block-group.sf-breakout,
.wp-block-group.sf-cta-block {
  padding: var(--space-6) var(--space-8);
}
