/* ===============================
   Winterberry Paper & Gifting CSS 
================================== */

/* ===========
   Root Styles
============== */
:root{
  --max: 1120px;
  --pad: clamp(16px, 3vw, 28px);
  --gap: clamp(14px, 2.2vw, 22px);
  --border: rgba(0,0,0,.12);
  --ink: #1F2625;

  --muted: rgba(0,0,0,.65);
  --soft: rgba(0,0,0,.04);
  --radius: 16px;

  /* Brand palette */
  --sand: #E5E3DC;
  --coral: #D4967D;
  --forest: #4C5D5B;
  --berry: #5C1D38;
  --sunrise-solid: rgba(212,150,125,0.95); /* clay */

 /* Sunrise Divider */
  --sunrise-divider: linear-gradient(
    to right,
    transparent 0%,
    rgba(212,150,125,0.9) 20%,
    rgba(212,150,125,1) 50%,
    rgba(212,150,125,0.9) 80%,
    transparent 100%
  );
  
 /* Color accents */
  --sunrise: linear-gradient(90deg,
    rgba(212,150,125,0.0),
    rgba(212,150,125,0.65),
    rgba(229,227,220,0.0)
  );
  --sunrise-strong: linear-gradient(90deg,
    rgba(212,150,125,0.0),
    rgba(212,150,125,0.85),
    rgba(92,29,56,0.18),
    rgba(229,227,220,0.0)
  );
 
 /* Sizing */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  
  --focus: rgba(212,150,125,0.55);
  --focus-2: rgba(92,29,56,0.28);
  
   /* UI */
  --shadow-soft: 0 2px 10px rgba(0,0,0,0.05);

  /* UI */
  --card: rgba(251,250,247,0.88);

  /* Font Controls */
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-display: "Marcellus", serif;
  --font-script: "Bloom", "Simply", cursive;

}

/* ============
   Reset + Base
=============== */
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
}

a{ 
  color:inherit; text-decoration:none;
}

img{ 
  max-width:100%; display:block; }

.container{
  width:min(var(--max), calc(100% - (var(--pad) * 2)));
  margin:0 auto;
}

.container--offset-left{
  padding-left: calc(var(--pad) * 1.5);
}

/* ==========
   Typography
============= */
body{ color: var(--ink); }

/* headings inherit whatever the section says */
h1,h2,h3{
  margin:0 0 .8rem;
  font-family: var(--font-display);
  letter-spacing: 0.2px;
  color: inherit;
  line-height: 1.12;
}

h1{ font-size: clamp(34px, 4.6vw, 56px); }
h2{ font-size: clamp(26px, 3.2vw, 40px); }
h3{ font-size: clamp(18px, 2.2vw, 24px); }  
      
.script{
  font-family: var(--font-script);
  color: var(--berry);
}
p{
  margin: 0 0 1rem;
  color: inherit;
  line-height: 1.65;
}

ul,ol{
  margin: 0 0 1rem;
  color: inherit;
  padding-left: 1.1rem;
}

li{
  margin: 0.25rem 0;
}


/* ========
   Dividers
========== */
.pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(31,38,37,.86);
  background:
    radial-gradient(closest-side at 20% 20%, rgba(212,150,125,0.18), transparent 68%),
    rgba(251,250,247,.78);
  border: 1px solid rgba(76,93,91,.14);
}

.divider-sunrise{
  display: block;
  width: min(800px, 92%);
  height: 3px;

  margin: 10px auto;         /* tight! */
  border-radius: var(--radius-pill);
  border: 0;

  background: var(--sunrise-divider);
  opacity: .95;

}

/* ===========
   Thin Header
============== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
}

.header-links{
  display:flex;
  gap:14px;
  font-size:14px;
  color:var(--muted);
}

/* ==========
   Brand-Logo
=============*/
.brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
}

.brand-logo{
  width: 200px;
  height: auto;
  display: block;
}

.brand-text{
  display: flex;
  align-items: center;
}
.brand-tag{
  font-size: 12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(76,93,91,.9);
  white-space: nowrap;   /* prevents awkward wrapping */
}

/* ===========
   Hero Images
============== */
.hero-img-abenaki{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-abenaki.jpg");
}
.hero-img-carnations{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-carnations.jpg");
}
.hero-img-daisy{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-daisy.png");
}
.hero-img-layered{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-layered.jpg");
}
.hero-img-feast{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-moveable-feast.jpg");
}
.hero-img-simple-florals{
  --hero-bg: url("https://assets.winterberrygifting.com/images/hero-images/background-simple-florals.png");
}
/* =================
   Hero Image Styles
==================== */
.hero{
  /* defaults */
  --hero-bg-position: center;
  --hero-bg-size: cover;
  --hero-bg-repeat: no-repeat;
  
  /* optional overlay layer (set per hero type) */
  --hero-overlay: none;

  background-image: var(--hero-overlay), var(--hero-bg);
  background-position: 0 0, var(--hero-bg-position);
  background-size: auto, var(--hero-bg-size);
  background-repeat: no-repeat, var(--hero-bg-repeat);
}
/* ==================
   Hero layering
================== */
.hero-grid{ position: relative; } /* ensure this exists somewhere */

.hero-wash{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  border-radius: 15px;   /* ← add this */

  background: radial-gradient(      /* 1st # represents starting point */
    circle at 70% 40%,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0) 60%
  );
}

.hero-copy,
.hero-card{
  position: relative;
  z-index: 1;
}
.hero-copy .lead{
  margin-left: 0;
  margin-right: 0;
}
.hero-copy .lead,
.hero-copy .subnav{
  max-width: 60ch;
}

/* used on limitedboxes.html */
.hero--limited .hero-wash{
  background:
    radial-gradient(
      circle at 28% 38%,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.40) 40%,
      rgba(255,255,255,0.18) 65%,
      rgba(255,255,255,0) 82%
    );
}


/* ========
   HERO NAV 
=========== */
.hero-nav{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown wrapper */
.nav-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Make the button look like a link */
.nav-dropbtn{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Menu */
.nav-menu{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 240px;
  padding: 8px;

  border-radius: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);

  box-shadow:
    0 14px 30px rgba(0,0,0,.10),
    0 4px 10px rgba(0,0,0,.06);

  z-index: 2000;
}

/* Invisible hover bridge to prevent a gap between button and menu */
.nav-dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  height: 12px;
  width: 100%;
}

/* Links */
.nav-menu a{
  pointer-events: auto;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.nav-menu a:hover{
  background: rgba(0,0,0,.04);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu{
  display: block;
}

/*==============================
  Targeted for limitedboxes.html
================================ */
.hero--limited .hero-copy{
  text-align: left;
}

.hero--limited .hero-copy .lead,
.hero--limited .hero-copy .section-note{
  margin-left: 0;
  margin-right: 0;
}
 

/* =====================
   3 Hero Layout Options
======================== */
/* ==========================
   Hero Type 1: Left Gradient
============================= */
.hero--left{
  min-height: clamp(200px, 58vh, 400px);
  border-bottom: 1px solid var(--border);

  --hero-overlay: linear-gradient(
    90deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.75) 34%,
    rgba(255,255,255,0) 70%
  );
}

.hero--left .container{
  padding: clamp(28px, 6vw, 64px) var(--site-margin, 20px);
  display: flex;
  justify-content: flex-start;
}

.hero--left .hero-inner{
  margin-left: 0;
  margin-right: auto;
  max-width: 720px;
}
/* =====================================
   Hero Type 2: Centered Translucent Card
======================================== */
.hero--centered{
  padding: clamp(48px, 8vw, 96px) 0;
  display: grid;
  place-items: center;
}
 /* Add Left Padding to Hero Title */
.hero--centered .hero-copy{
  padding-left: 2.5rem;
}
.hero--centered .hero-inner{
  width: 90%;
  text-align: center;
}

@media (max-width: 640px){
  .hero--centered .hero-inner{ width: 94%; }
}
/* ===============================
   Hero Type 3: Full-width Band
================================== */
.hero--band{
  padding: clamp(48px, 8vw, 96px) 0;
}

.hero--band .hero-inner{
  width: 100%;
}
/* =======================
   END Hero Layout Options
========================== */  

/* ==========================
   Media + Two Cards Layout
   (reusable section pattern)
============================= */

/* Outer layout: 1/3 media, 2/3 content */
.media-two-cards{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: stretch; /* makes media column match height of content column */
}

/* Left column: center media vertically + horizontally */
.media-two-cards__media{
  display: grid;
  place-items: center;
}

/* Optional: constrain media size so it doesn’t bully the cards */
.media-two-cards__media .panel{
  width: min(320px, 100%);
}

/* If you want the media area itself to be square, use this modifier */
.media-two-cards__media--square .panel{
  aspect-ratio: 1 / 1;
}

/* Make media image fill the panel cleanly */
.media-two-cards__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column */
.media-two-cards__content{
  width: 100%;
}

/* The “two cards” row inside the right column */
.media-two-cards__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: clamp(16px, 2.6vw, 28px);
  margin-top: 15px; /* feel free to remove if you prefer utilities */
}

/* Responsive: stack */
@media (max-width: 900px){
  .media-two-cards{
    grid-template-columns: 1fr;
  }

  .media-two-cards__cards{
    grid-template-columns: 1fr;
  }
}

/* ============================
   END Media + Two Cards Layout
=============================== */

/* ==============
   Section Styles
================= */
.section{
  padding: clamp(24px, 4vw, 72px) 0;
}

.section--tight{
  padding-block: clamp(20px, 4vw, 40px);
}

.section :where(p, ul, ol):last-child,
.card :where(p, ul, ol):last-child{
  margin-bottom: 0;
}

.sand-section{
  background-color:var(--sand);
  color: var(--forest);
}
.coral-section{
  background-color:var(--coral);
  color: white;
}
.forest-section{
  background-color:var(--forest);
  color: white;
}
.berry-section{
    background-color:var(--berry);
  color: white;
}

.centered-block{        /* Simple Centered Block */
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.product--centered{      /* Simple Centered Block */
    max-width: 60ch;
    margin-inline: auto;
    text-align: center;
}

/* Centered Block Stacking Alignment */
.stack{
  display: grid;
  gap: 16px;
}

.cta-stack{
  display: grid;
  gap: 12px;
  justify-items: center; /* centers buttons/fineprint as a group */
}

.btn.block{
  display: block;
  width: min(420px, 100%); /* nice max width, still responsive */
  text-align: center;
}
/* END Centered Block Stacking Alignment */


.product--centered .list{
  display: inline-block;       /* shrink to content width */
  text-align: left;            /* readable list */
  padding-left: 0;             /* remove browser default */
  margin: 14px auto 0;         /* centers the list block */
  list-style: disc;
  padding-left: 1.1rem;        /* you’re already doing none inline */
}

.product--centered .hero-actions{      /* Center Button Row */
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================
   END Section Styles
===================== */  


/* ==================
   Global Card Styles
===================== */

/* Base card "surface" for all card-ish components */
:where(.card, .hero-card, .newsletter-card, .small-card, .realtor-card, .tile, .styled-tile, .newsletter-card-inner){
  --card-bg: var(--card);
  --card-border: 1px solid rgba(76,93,91,0.14);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-soft);

  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* If you want default padding on these */
:where(.card, .hero-card, .newsletter-card, .small-card, .realtor-card, .tile, .styled-tile){
  padding: var(--card-padding, 1.5rem);
}

/* Padding size modifiers */
.card--xs{ --card-padding: 0.75rem; }
.card--sm{ --card-padding: 1rem; }
.card--md{ --card-padding: 1.5rem; }
.card--lg{ --card-padding: 2rem; }

/* Common overrides */
.tile{ --card-bg: #fff; }                 /* tiles are opaque by default */
.styled-tile{ --card-bg: #fff; }          /* keep your styled tiles white */
.newsletter-card-inner{ --card-bg: var(--panel, #fff); }
.card--xs{ --card-padding: 0.75rem; }
.card--sm{ --card-padding: 1rem; }
.card--md{ --card-padding: 1.5rem; }
.card--lg{ --card-padding: 2rem; }

/* Card width utilities */
.card--narrow{
  max-width: 40ch;
}

.card--medium{
  max-width: 60ch;
}

.card--wide{
  max-width: 72ch;
}

/* Center constrained cards by default */
.card--narrow,
.card--medium,
.card--wide{
  margin-left: auto;
  margin-right: auto;
}

/* ======================
   END Global Card Styles
========================= */  


/* ================
   Hero Card Styles
=================== */ 
.hero-card{
  --card-padding: 0;   /* overrides the global :where(...) padding */
  border-radius: calc(var(--radius-lg) + 4px);
}

/* Make the card content a full-height flex column */
.hero-card-inner{
  padding: var(--hero-card-padding, 20px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-card-inner::before{
  content:"";
  display:block;
  height: 2px;
  background: var(--sunrise-strong);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  opacity:.95;
}

/* Buttons: keep your flex layout, but push to bottom */
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: auto;     /* <-- this pins the actions to the bottom */
}

/* ====================
   END Hero Card Styles
======================= */

/* ============================
   Translucent Container Styles
=============================== */
.container-translucent{
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255, 0.6);
  box-shadow: var(--shadow-soft);
}

.container-translucent-gradient{
  /* This is a container style, not the hero itself */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.75) 34%,
    rgba(255,255,255,0) 70%
  );
}

.band-translucent{
  width: 100%;
  border-radius: 0;
  padding: clamp(18px, 3vw, 28px) 0;
  background: rgba(255, 255, 255, 0.8);
}
/* ================================
   END Translucent Container Styles
=================================== */  

/* ================
   Soft Card Styles
=================== */ 

/* Soft card group */
.soft-card{
  display: grid;
  gap: 16px;
}

/* Soft card variant */
.soft-card.soft-card-style > *{
  padding: 10px;
  border-radius: 15px;
  box-shadow: none;
}

/* Card title */
.soft-card-title {
  font-weight: 700;
}

/* Card body text */
.soft-card p {
  margin: 8px 0 0;
}

/* Background variants */
.soft-card--sage {
  background: rgba(76, 93, 91, 0.08);
}

.soft-card--clay {
  background: rgba(212, 150, 125, 0.14);
}

.soft-card--wine {
  background: rgba(92, 29, 56, 0.08);
}
/* ====================
   END Soft Card Styles
======================= */   

/* ===================
   Card Feature Styles (quietcareframework.html)
====================== */   
.card--feature{
  --card-bg: var(--sand);
  --card-radius: 0.9rem;
  --card-padding: 1.5rem;

  padding: var(--card-padding);
}
/* =======================
   END Card Feature Styles (quietcareframework.html)
========================== */   

/* ===================
   4-Grid Layout (quietcareframework.html)
   4 tiles per mode + OPTIONAL auto-alternating (toggle via HTML class)
====================== */

/* spacing between each 4-tile mode group */
.mode-blocks{
  display: grid;
  gap: 10px;                 /* tight between items */
  padding: 16px 0;           /* keep a little outer breathing room */
}

/* ===== Grid version + OPTIONAL auto flip ===== */
@supports (display: grid){

  .grid--quad{
    display: grid;
    gap: 16px;
    padding: clamp(14px, 2vw, 20px);
    border-radius: 18px;
/*    border: 1px solid rgba(0,0,0,.08);  */
    /* Optional translucent wrapper:
    background: rgba(255,255,255,.45);
    */
  }

  /* Mobile: readable stack */
  .grid--quad{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "hero"
      "big1"
      "med1"
      "med2";
  }

  @media (min-width: 750px){
    /* Default (NOT flipped) layout */
    .grid--quad{
      grid-template-columns: repeat(5, 1fr);
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "hero hero hero med1 med1"
        "hero hero hero med2 med2"
        "big1 big1 big1 big1 big1";
      align-items: stretch;
    }

    /* Flip only when enabled in HTML:
       <section class="mode-blocks mode-blocks--alternate"> */
    .mode-blocks.mode-blocks--alternate > .grid--quad:nth-child(even){
      grid-template-areas:
        "med1 med1 hero hero hero"
        "med2 med2 hero hero hero"
        "big1 big1 big1 big1 big1";
    }
  }

  @media (min-width: 1400px){
    /* Default (NOT flipped) wide layout */
    .grid--quad{
      grid-template-columns: repeat(6, 1fr);
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "hero hero hero hero med1 med1"
        "hero hero hero hero med2 med2"
        "big1 big1 big1 big1 big1 big1";
    }

    /* Flip only when enabled in HTML */
    .mode-blocks.mode-blocks--alternate > .grid--quad:nth-child(even){
      grid-template-areas:
        "med1 med1 hero hero hero hero"
        "med2 med2 hero hero hero hero"
        "big1 big1 big1 big1 big1 big1";
    }
  }

  /* Map the 4 items by order (requires .item on each direct child) */
  .grid--quad > .item:nth-child(1){ grid-area: hero; }
  .grid--quad > .item:nth-child(2){ grid-area: big1; }
  .grid--quad > .item:nth-child(3){ grid-area: med1; }
  .grid--quad > .item:nth-child(4){ grid-area: med2; }
}

/* ========================================================================= 
   Shared “card shell” styling for mode-head + card--feature (Opaque Square)
============================================================================ */
.mode-head,
.card--feature{
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
}

/* mode-head: clean internal spacing */
.mode-head{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-head .kicker,
.mode-head h2,
.mode-head .subhead{
  margin: 0;
}

.mode-head .kicker{
  letter-spacing: .10em;
  font-size: 20px;
  opacity: .8;
}

.mode-head .subhead{
  max-width: 62ch;
  line-height: 1.5;
}

/* Optional big block styling */
.mode-big .callout{
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
}

.mode-big h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.mode-big p{
  margin: 0;
  opacity: .9;
}

/* Card title */
.card-title{
  margin: 0 0 10px;
  font-size: 28px;
}

/* Checklist */
.checklist{
  margin: 0;
  padding-left: 18px;
}
.checklist li{
  margin: 8px 0;
}

/* ===================
   END 4-Grid Layout
====================== */


 /* =================
   Additional Styles
===================== */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-size: 16px;
  font-family: var(--font-script);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--berry);
}
.kicker::before{
  content:"";
  width: 34px;
  height: 2px;
  background: var(--sunrise);
  border-radius: var(--radius-pill);
}
.lead{
  font-size:16px;
  line-height:1.65;
  color:var(--muted);
  max-width:60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom:20px;
}
   
/* =====================
   END Additional Styles
======================== */

/* =============
   Button Styles
================ */
.btn-row{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:14px;
}
.btn.primary{
  background:#4C5D5B; /* Forest */
  color:#fff;
  border-color:#111;
}
.btn.secondary{
  background:#D4967D; /* Coral */
  color:#fff;
}
.btn.tertiary{
  background:#5C1D38; /* Berry */
  color:#fff;
}
.btn.quaternary{
  background:#E5E3DC; /* Sand */
  color:#4C5D5B;
}

/* =================
   END Button Styles
==================== */

/* ==========================
   Alternating Section Styles
============================= */
.alternating-section{
  background-color:var(--sand);
}

.alternating-section > .container + .container{
  margin-top: clamp(10px, 6vw, 44px);
}
/* Alternating section layout */
.alternating-section .alt{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3.4vw, 38px);
  align-items: center;
}

/* Reverse only swaps the order on desktop */
.alternating-section .alt.reverse{
  direction: ltr; /* just being explicit */
}

/* ✅ Key fix: don't let the panel stretch wide */
.alternating-section .alt > .panel{
  width: 100%;
  max-width: 520px;     /* tune: 460–560 is a nice range */
  justify-self: center; /* stops the "full-column" stretch */
}

/* Alternating layout: cap media column so panels don't stretch */
.alt{
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: var(--gap);
  align-items: center;
}

/* Reverse layout swaps which side is the capped media column */
.alt.reverse{
  grid-template-columns: 1fr minmax(280px, 520px);
}

.alt h2{
  font-size: clamp(22px, 2.6vw, 30px);
  margin:0 0 10px;
}
.alt p{
  color:var(--muted);
  line-height:1.6;
  max-width:56ch;
  margin-bottom:14px;
}
@media (max-width: 900px){
  .alternating-section .alt{
    grid-template-columns: 1fr;
  }

  /* ✅ On mobile, ALWAYS show image/panel first for reverse rows */
  .alternating-section .alt.reverse > .panel{
    order: -1;
  }
}

/* ==============================
   END Alternating Section Styles
================================= */

/* ============
   Panel Styles
=============== */
.panel{
  border:6px solid var(--border);
  border-radius:var(--radius);
  background-color:#fff;
  overflow:hidden;
}
.panel .media{
  aspect-ratio:16/10;
  background:var(--soft);
  overflow:hidden;
}
.panel .media{
  aspect-ratio:16/10;
  background:var(--soft);
  background-color:#fff;
  overflow:hidden;
}
.panel .media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;   /* fills the frame without distortion */
}
@media (max-width: 700px){
  .panel .media{
    aspect-ratio: 4 / 3; /* or 1 / 1 if you want squares */
  }
}
.panel .media--w325{
  width: 325px;
  max-width: 100%;
  margin-inline: auto; /* centers the frame */
}
.media--contain img{
  object-fit: contain;
  background: #fff;
}

/* Square media variant */
.panel .media-square{
  aspect-ratio: 1 / 1;
  max-width: 360px;          /* keeps it visually subordinate */
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.panel .media-square img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: make 325px frames feel card-like, not banner-like */
@media (min-width: 901px){
  .alternating-section .panel .media--w325{
    aspect-ratio: 1 / 1;   /* was inheriting 16/10 */
  }
}
/* ================
   END Panel Styles
=================== */

/* =================
   Lt Txt - Rt Image
==================== */
.txt-img{
  padding: clamp(18px, 3vw, 28px) 0;
  display: grid;
  grid-template-columns: 1fr; /* explicit */
  place-items: center;
}

.txt-img-inner{
  width: min(1100px, calc(100% - (var(--pad) * 2)));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 3.4vw, 38px);
  align-items: center;
}

/* Anything after the hero row should span full width */
.txt-img > :not(.txt-img-inner){
  width: 100%;
  justify-self: stretch;
  grid-column: 1 / -1;
}

.txt-img-image{
  width: 300px;                 /* controls size */
  aspect-ratio: 1 / 1;          /* optional: makes it a square frame */
  border-radius: calc(var(--radius-lg) + 6px);
  border: 6px solid rgba(76,93,91,0.14);
  background-color: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;             /* ✅ clips image to rounded corners */
  justify-self: end;            /* right-align within grid column */
}

/* ✅ make the image behave inside the frame */
.txt-img-image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* fills the square nicely */
}

.txt-img-cta{
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers button + fineprint */
  gap: 8px;
  text-align: center;
}

.txt-img-cta .fineprint{
  font-size: 12px;
  opacity: 0.8;
}


/* =========================
   Featured Grid (Home Page)
============================ */
.section-title{
  margin-bottom:22px;
}
.section-title h2{ margin:0; }
.section-title p{ color:var(--muted); }

.grid, .card-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:var(--gap);
}
@media(max-width:980px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .grid{ grid-template-columns:1fr; } }

.card .thumb{
  aspect-ratio:4/3;
  background:var(--soft);
}

.card .body{
  padding:14px 16px;
}
.card h3{ margin:6px 0 6px; font-size:16px; }
.card p{ font-size:14px; color:var(--muted); line-height:1.45; }

.chip{
  display:inline-block;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:5px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
}

@media (max-width: 640px){
  /* Force a static thumb image for the Substack card on mobile */
  #featuredGrid .card[data-slot="blog"] .thumb{
    position: relative;
    background: url("https://assets.winterberrygifting.com/images/me/me-drinking-tea.jpeg")
      center / cover no-repeat;
  }

  /* Hide whatever <img> JS injected */
  #featuredGrid .card[data-slot="blog"] .thumb img{
    display: none !important;
  }
}

/* =============================
   END Featured Grid (Home Page)
================================ */

/* =============
   GRIDS & TILES 
================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
  margin-top: 3rem;
}
.hero-grid{
  position: relative; /* needed for hero-wash */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
/* Mobile centering for grid-2 + centered-block */
@media (max-width: 640px){
  .grid-2{
    grid-template-columns: 1fr; /* make sure it actually stacks */
  }

  .grid-2.centered-block{
    justify-items: center;      /* centers each card */
  }

  .grid-2.centered-block > *{
    width: 100%;
    max-width: 60ch;            /* constrain card width */
  }
}



.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.6vw, 28px);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Tile surface */
.tile{
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile:nth-child(2) {
  transform: translateY(-4px);
}

/* Top content spacing */
.tile-top {
  margin-bottom: 1.5rem;
}

/* Eyebrow */
.tile-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}

/* Heading — quieter */
.tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;   /* down from 1.4rem */
  font-weight: 500;     /* avoids headline dominance */
  letter-spacing: 0.01em;
}

/* Description */
.tile-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 0;
}
.styled-tile{
  padding: 2rem;
  --card-radius: 0.75rem;
}

.styled-tile h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.styled-tile p {
  margin-bottom: 0;
  line-height: 1.65;
}

.two-tile-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 640px){
  .two-tile-grid{
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;          /* optional: keep aligned with container */
    gap: 16px;          /* optional: slightly tighter on mobile */
  }
}
/* ========== 
   Checklists
============= */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.6;
}

/* ==============================
   About section w/profile pic
============================== */

.about-me{
  padding: clamp(48px, 8vw, 96px) var(--pad);
  display: grid;
  place-items: center;
}
.about-me.section--tight{
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(20px, 4vw, 40px);
}
.about-me-inner{
  width: min(1100px, calc(100% - (var(--pad) * 2)));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 3.4vw, 38px);
  align-items: center;
}
.about-me-image{
  width: 300px;
  aspect-ratio: 3 / 4;

  border-radius: calc(var(--radius-lg) + 6px);
  border: 6px solid rgba(76,93,91,0.14);
  box-shadow: var(--shadow-soft);

  justify-self: center; /* fixes left drift */
  overflow:hidden; /* important */
}
.about-me-image img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* behaves like background-size: cover */
  display: block;
}


/* ==============
   Drift Carousel
================= */

.drift-carousel{
  overflow:hidden;
  width: 80%;
  max-width: 1100px;
  margin: clamp(24px, 4vw, 40px) auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76,93,91,0.12);
  background: rgba(251,250,247,.62);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.carousel-track{
  display:flex;
  gap: 14px;
  padding: 14px;
  animation: drift 28s linear infinite;
}
.carousel-item{
  min-width: 240px;
  border-radius: var(--radius-md);
  background: rgba(251,250,247,.72);
  border: 1px solid rgba(76,93,91,0.12);
  padding: 14px;
}
@keyframes drift{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-40%); }
}
/* =========================
   END Drift Carousel Styles
============================ */

/* =========================
   Newsletter Section Styles
============================ */
.newsletter-section{
  background-color:#E5E3DC;
  padding: clamp(24px, 6vw, 48px) 0;
}

.newsletter{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  padding:28px;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:var(--gap);
}
@media(max-width:800px){ .newsletter{ grid-template-columns:1fr; } }
.newsletter input{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  width:100%;
}
.newsletter button{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid #111;
  background:#111;
  color:#fff;
}

/* =============
   Footer Styles
================ */

/* Footer wrapper */
.site-footer{
  color: var(--muted);
  font-size: 14px;
}

/* Footer layout: overall vertical stacking */
.site-footer .footer-inner{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Row: About + Columns */
.footer-top{
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: flex-start;
  justify-content: space-between;
}

/* About block */
.about{
  flex: 1 1 520px;
  min-width: 280px;
}

.about-copy{ max-width: 520px; }

.about .quote{
  margin: 0.75rem 0 0;
  line-height: 1.65;
}

/* Link Columns Nav */
.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--gap) * 1.25);
  max-width: 680px;
  margin: 0;                 /* 👈 important when beside About */
  padding-inline: 0;         /* optional */
}

.footer-cols h4{
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text, inherit);
  opacity: 0.9;
}

/* ✅ The rule you need for non-run-on links */
.footer-cols .footer-col a{
  display: block;
  margin-top: 0.45rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.footer-cols .footer-col a:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bottom Row */
.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
}

/* Footer Responsive */
@media (max-width: 900px){
  .footer-top{
    flex-direction: column;
    gap: 1.75rem;
  }

  .about-copy{ max-width: 100%; }

  .footer-cols{
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;              /* keep aligned with About */
  }
}

@media (max-width: 860px){
  .footer-grid{
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .footer-grid .microcopy{
    text-align: left;
    justify-self: start;
  }
}

/* =================
   Footer Responsive
==================== */

/* Stack About + Columns */
@media (max-width: 900px){
  .footer-top{
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-top .about{
    flex: none;
    width: 100%;
  }

  .footer-cols{
    max-width: 100%;
    width: 100%;
    margin: 0;
    justify-items: start;
  }
}

/* Stack copyright row */
@media (max-width: 860px){
  .footer-grid{
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
}

/* =================
   END Footer Styles
==================== */

/* ==========
   Responsive
============= */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .about-me-inner{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }

  .mobile-panel{ display:block; }
}

@media (max-width: 560px){
  .btn{ width:100%; }
  .hero-actions{ gap: 10px; }
  input, textarea, select{ border-radius: 14px; }
}

/* ==============
   Reduced motion
================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .carousel-track{ animation: none; }
  .btn{ transition: none; }
}

