/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: A custom child theme for Astra.
 Author: Lee (Ezecurtains)
 Author URI: https://www.ezecurtains.co.uk/
 Template: astra
 Version: 1.0.0
*/

/* =========================================================
   EZECURTAINS — CSS TABLE OF CONTENTS
   (Use Ctrl+F and search the token in [brackets] to jump)
   Last updated: 06 Oct 2025
========================================================= *
  01) Page-Specific: Terms & Policies (page-id-4994)   [FIND: ========== 1)]
  02) Global Behaviours & Utilities                    [FIND: ========== 2)]
  03) Buttons & Links (Tokens + Variants)              [FIND: ========== 3)]
  04) CTA Buttons (legacy classes)                     [FIND: ========== 4)]
  05) Menus & Header                                   [FIND: ========== 5)]
  06) Breadcrumbs (Astra + Rank Math + Spectra)        [FIND: ========== 6)]
  07) Choice Buttons (under images / bay shape)        [FIND: ========== 7)]
  08) Video Embeds & Transcript                        [FIND: ========== 8)]
  09) Grids & Cards (images/products/menus)            [FIND: ========== 9)]
  10) Carousels & Testimonials                         [FIND: ========== 10)]
  11) Tables & Comparisons                              [FIND: ========== 11)]
  12) FAQ (simple JS-driven)                            [FIND: ========== 12)]
  13) Misc UI                                           [FIND: ========== 13)]
  14) Spectra “Steps” mobile fixes                      [FIND: ========== 14)]
/* ======================================================= */


/* =========================================================
   Ezecurtains Child Theme — style.css
   Last tidied: 06 Oct 2025
   Notes: Comment-only cleanup + de-dupe (no visual changes)
========================================================= */
/* TEMP FIX / DIAGNOSTIC — Best Curtain Tracks Hub Page (ID 384) */
/* --- GLOBAL FIX --- Force light background + dark text on mobile only --- */




.ez-subhead {
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.25em;
  margin-bottom: 1.2em;
  font-weight: 400;
}



/* ========== 1) Page-Specific: Terms & Policies (page-id-4994) ======= */

/* Sticky jump menu (use actual page ID) */
.page-id-4994 h2 + ul {
  position: sticky;
  top: 80px; /* adjust for header height */
  z-index: 5;
}

/* Page container spacing */
.page-id-4994 .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
  line-height: 1.7;
}

/* Headings */
.page-id-4994 h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.page-id-4994 h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #333;
}
.page-id-4994 h3 {
  margin-top: 1.5rem;
  color: #444;
  font-size: 1.15rem;
}

/* Quick Links menu */
.page-id-4994 ul {
  list-style: none;
  padding-left: 0;
}
.page-id-4994 ul li { margin-bottom: 0.5rem; }
.page-id-4994 ul li a {
  color: #0056b3;
  text-decoration: none;
  border-bottom: 1px dashed #ccc;
  transition: all 0.2s ease;
}
.page-id-4994 ul li a:hover {
  color: #222;
  border-color: #666;
}

/* Jump menu box styling */
.page-id-4994 h2 + ul {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}

/* Section dividers */
.page-id-4994 hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Last updated note */
.page-id-4994 p em {
  display: block;
  margin-top: 2rem;
  text-align: right;
  color: #777;
  font-size: 0.9rem;
}

/* Responsive tweaks for this page */
@media (max-width: 768px) {
  .page-id-4994 .entry-content { padding: 1.5rem 1rem; }
  .page-id-4994 h1 { font-size: 1.7rem; }
  .page-id-4994 h2 { font-size: 1.2rem; }
}


/* ========== 2) Global Behaviours & Utilities ======================== */

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Mobile/desktop visibility helpers */
.mobile-only { display: none; }
.desktop-only { display: block; }
@media (max-width: 767px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

/* Page title off (Astra pages) */
.page .entry-title { display: none; }

/* Reduce top gap on page-builder templates */
.page .content-area,
.ast-page-builder-template .site-content,
.page .ast-plain-container .site-content { padding-top: 0 !important; margin-top: 0 !important; }

/* First-child spacing clamp */
.page .entry-content > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }

/* Headings colour override */
h1, h4 { color: #000000 !important; }

/* Body + inherited fonts */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  background-color: #fff;
}
h2, h3, h4, p, .wp-block-button__link { font-family: inherit; }

/* Quick paragraph tighten utility */
.your-custom-class p { margin-bottom: 0.1em; }

/* Simple show/hide arrow-fade hint (hidden on desktop) */
.scroll-hint { font-size: 0.9rem; color: #555; margin-bottom: 0.5rem; }
@media (min-width: 769px) {
  .table-fade-overlay, .scroll-hint { display: none; }
}

/* Number badge (single, final version) */
.number-box {
  display: inline-block;
  background-color: #f4b400;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
  text-align: center;
  width: 26px;
  height: 26px;
  line-height: 26px;
  margin-right: 5px;
}

/* Inline icon helpers */
.inline-icon-32, .inline-icon-48, .inline-icon-64 {
  display: inline; position: relative;
}
.inline-icon-32 { width: 32px; top: -12px; }
.inline-icon-48 { width: 48px; top: -16px; }
.inline-icon-64 { width: 64px; top: -20px; }


/* ========== 3) Buttons & Links (Tokens + Variants) ================== */

:root{
  --btn-radius: 12px;
  --btn-shadow: 0 4px 6px rgba(0,0,0,.20);
  --btn-font: 600;
  --btn-py: 12px;
  --btn-px: 18px;
  --btn-gap: 8px;

  --c-primary: #F5C518;
  --c-primary-text: #111;
  --c-primary-hover: #e2b714;

  --c-secondary: #111;
  --c-secondary-text: #fff;
  --c-secondary-hover: #000;

  --c-ghost-border: #D5D7DE;
  --c-ghost-hover: #F5F6F8;

  --c-link: #0B66C3;
  --c-link-hover: #084f96;

  --focus: #1a73e8;
  
  --usp-gradient-start:#eaf3ff;
--usp-gradient-end:#efe8ff;


  /* Product badge colours */
  --badge-bg: #d11b3b;
  --badge-fg: #fff;
}

/* Base Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  box-shadow: var(--btn-shadow);
  transition: transform .1s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity:.55; pointer-events:none; }

/* Focus */
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: calc(var(--btn-radius) + 2px);
}

/* Variants */
.btn--primary { background: var(--c-primary); color: var(--c-primary-text); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--secondary { background: var(--c-secondary); color: var(--c-secondary-text); }
.btn--secondary:hover { background: var(--c-secondary-hover); }
.btn--ghost { background: #fff; color: #111; border-color: var(--c-ghost-border); box-shadow: none; }
.btn--ghost:hover { background: var(--c-ghost-hover); }

/* Sizes */
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--md { padding: 12px 18px; font-size: 16px; }
.btn--lg { padding: 14px 22px; font-size: 18px; }

/* Mobile full-width helper */
@media (max-width: 768px){ .btn--block { display:flex; width:100%; } }

/* Icons inside buttons */
.btn__icon { display:inline-flex; }
.btn__icon svg, .btn__icon img { width:1.1em; height:1.1em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){ .btn, .link-inline { transition: none !important; } }

/* Inline links */
.link-inline { color: var(--c-link); text-underline-offset: 2px; text-decoration-thickness: 1.5px; font-weight: 500; }
.link-inline:hover { color: var(--c-link-hover); text-decoration: underline; }

/* Arrow link */
.link-arrow { display:inline-flex; align-items:center; gap:6px; }
.link-arrow .arrow { transition: transform .15s ease; }
.link-arrow:hover .arrow { transform: translateX(2px); }

/* Button groups */
.btn-group { display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width:768px){ .btn-group .btn { flex:1 1 auto; } }


/* ========== 4) CTA Buttons (legacy classes) ========================= */

.cta-button {
  background-color: #F5C518 !important; color: black !important;
  border: none; border-radius: 12px;
  padding: 10px 20px; font-size: 16px;
  cursor: pointer; display: inline-block; text-align: center; text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin: 0 auto;
}
.cta-button:hover { background-color: #807C7C !important; color: #fff !important; transform: translateY(-2px); }
.cta-button:active { background-color: #F5C518 !important; transform: translateY(0); }
.cta-button:focus, .cta-button:visited { background-color: #F5C518 !important; color: black !important; outline: none !important; box-shadow: none !important; text-decoration: none !important; }
.cta-button.secondary { background-color: transparent !important; color: #333 !important; border: 2px solid #F5C518; box-shadow: none; }
.cta-button.secondary:hover { background-color: #F5C518 !important; color: black !important; }

.button-container { text-align: center; padding: 10px 0; }
.button-container.fade-out { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .cta-button { padding: 14px 24px; font-size: 18px; }
}
@media (min-width: 769px) {
  .cta-button { padding: 10px 20px; font-size: 16px; }
}


/* ========== 5) Menus & Header ====================================== */

.main-header-menu a {
  padding: 0 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Phone number: desktop/tablet only */
.top-header-phone {
  color: white !important; font-weight: bold; font-size: 1.3em !important;
  text-decoration: none; display: inline-block; line-height: 1.2; margin-left: 10px;
}
.top-header-phone:hover { text-decoration: underline; }
.show-desktop { display: inline-block !important; }
@media (max-width: 767px) { .show-desktop { display: none !important; } }
.ast-primary-header-bar .ast-builder-layout-element .show-desktop {
  align-self: center !important; margin-top: -15px;
}

/* Nav link sizing */
.ast-main-header-nav .menu-item > a {
  font-size: 15px; padding-left: 5px; padding-right: 5px;
}


/* ========== 6) Breadcrumbs (Astra + Rank Math + Spectra) ============ */

/* ========== Breadcrumbs (wrapper-based) ========== */
:root { --ezc-container-width: 1200px; }

.ezc-bc-wrap {
  box-sizing: border-box;
  max-width: var(--ezc-container-width);
  margin: 0 auto;
  padding: 0 1rem;       /* match page gutter */
  text-align: left;
}

/* Tighten seam below crumbs */
.ezc-bc-wrap + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Tidy breadcrumb text */
.ezc-bc-wrap nav.rank-math-breadcrumb,
.ezc-bc-wrap nav.rank-math-breadcrumb p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3;
  font-size: 0.95rem;    /* optional */
  color: #555;           /* optional */
}

/* Links + separators */
.ezc-bc-wrap nav.rank-math-breadcrumb a { color: #0056b3; text-decoration: none; }
.ezc-bc-wrap nav.rank-math-breadcrumb a:hover { text-decoration: underline; }
.ezc-bc-wrap nav.rank-math-breadcrumb .separator { margin: 0 .4em; color: #999; }


/* ========== 7) Choice Buttons (under images / bay shape) ============ */

.ez-choice { text-align: center; margin-top: 0.5em; }
.ez-choice-btn {
  display: inline-block; padding: 0.6em 1.2em; margin: 0.5em 0;
  font-size: 1rem; font-weight: 500; color: #333;
  background-color: #f8f8f8; border: 2px solid #ddd; border-radius: 6px;
  text-decoration: none; text-align: center; transition: all 0.2s ease-in-out;
}
.ez-choice-btn:hover, .ez-choice-btn:focus { background-color: #eaeaea; border-color: #bbb; color: #000; }

/* Mobile full width for choice buttons */
@media (max-width: 768px) {
  .ez-choice { text-align: left; }
  .ez-choice-btn { display: block; width: 100%; margin: 0.5em 0; max-width: none; }
}


/* ========== 8) Video Embeds & Transcript ============================ */

/* YouTube responsive wrapper */
.youtube-video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  max-width: 80%; margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.youtube-video iframe {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: 0;
}
.youtube-video:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); opacity: 0.95; }

@media (min-width: 1025px) { .youtube-video { max-width: 90%; } }
@media (min-width: 768px) and (max-width: 1024px) { .youtube-video { max-width: 95%; } }

/* Video highlights: show micro list on mobile */
.video-highlights--micro { display: none; }
.video-highlights--full  { display: block; }
@media (max-width: 768px) {
  .video-highlights--micro { display: block; }
  .video-highlights--full  { display: none; }
}
.vh-heading { margin-top: 1rem; margin-bottom: .5rem; }

/* Transcript (custom toggle component — dark/light) */
.ezc-transcript { border: 1px solid; border-radius: 6px; margin-top: 1rem; }
.ezc-transcript--dark { background:#000; color:#fff; border-color:#444; }
.ezc-transcript--light { background:#fff; color:#000; border-color:#ccc; }
.ezc-transcript__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; font-weight: 700; font-size: 1rem;
  padding: .75rem 1rem; background: transparent; border: 0; cursor: pointer; color: inherit;
}
.ezc-transcript__panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .6s ease .1s; }
.ezc-transcript__inner { padding: 0 1rem 1rem; }
.ezc-transcript.is-open .ezc-transcript__panel { max-height: 2000px; opacity: 1; }
.ezc-transcript--dark .ezc-transcript__inner h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .5rem; color: #ffd700 !important; }
.ezc-transcript--light .ezc-transcript__inner h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .5rem; color: #c19a3f !important; }
.ezc-transcript__inner p { margin: .4rem 0; line-height: 1.6; }
.ezc-transcript__toggle::after { content: '+'; font-weight: 700; }
.ezc-transcript.is-open .ezc-transcript__toggle::after { content: '–'; }
@media (prefers-reduced-motion: reduce) { .ezc-transcript__panel { transition: none; } }

/* Native <details> transcript variant (dark & light) */
details.transcript,
details.transcript-white {
  border: 1px solid; border-radius: 6px; padding: 1rem; margin: 1.5rem 0;
}
details.transcript summary {
  font-weight: bold; cursor: pointer; list-style: none; position: relative;
  padding-left: 1.5rem; margin-bottom: 0.5rem;
}
details.transcript summary::-webkit-details-marker,
details.transcript summary::marker { display: none; }
details.transcript summary::before {
  content: "▶"; position: absolute; left: 0; transition: transform 0.3s ease;
}
details.transcript[open] summary::before { transform: rotate(90deg); }
details.transcript p,
details.transcript-white p { margin: 0.5rem 0; line-height: 1.6; }
details.transcript[open] > div,
details.transcript-white[open] > div { animation: fadeInSlideDown 0.4s ease; }
details.transcript, details.transcript * { color: #ffffff !important; border-color: #ffffff; }
details.transcript-white, details.transcript-white * { color: #000000 !important; border-color: #000000; }

@keyframes fadeInSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ========== 9) Grids & Cards (images/products/menus) ================ */

/* Image grid cards */
.image-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; }
.image-card {
  flex: 1 1 calc(33% - 20px); max-width: 450px; min-width: 220px;
  background-color: #fff; padding: 12px; border-radius: 12px; text-align: center; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 8px; }
.image-card:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.caption { margin: 0; font-size: 1rem; color: #333; flex-grow: 1; }

@media (max-width: 1100px) { .image-card { flex: 1 1 calc(45% - 20px); } }
@media (max-width: 600px)  { .image-card { flex: 1 1 100%; } }

/* ==== 3-step cards – layout fix ==== */
.image-grid {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: grid;
  gap: 24px;
}

/* Desktop: 3 cards in a row */
@media (min-width: 1025px) {
  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === 3-step image cards – unified layout === */

.image-grid {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 20px 20px 30px;
  display: grid;
  gap: 24px;
}

/* Base card styling */
.image-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 28px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  float: none;
  width: 100%;
  max-width: none;      /* <-- important: let card fill the column */
}

.image-card img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.caption {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* Desktop: 3 cards in a row */
@media (min-width: 1025px) {
  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet + mobile: single column, full width */
@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}




/* Product grid */
.product-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 2rem;
}

/* Product card */
.product-card {
  position: relative; overflow: hidden;
  flex: 1 1 calc(50% - 20px); max-width: 480px;
  background-color: #f9f9f9;
  padding: 16px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.product-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.product-card .card-img { display:block; width:100%; height:auto; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card--featured { box-shadow: 0 12px 28px rgba(0,0,0,.08); border: 2px solid rgba(209,27,59,.2); }

/* Product badge */
.badge{
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: .4ch;
  padding: 4px 10px; font-size: 12.5px; font-weight: 700; line-height: 1;
  color: var(--badge-fg); background: var(--badge-bg);
  border-radius: 999px; letter-spacing: .2px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.35);
}

/* Buttons inside cards */
.button {
  display: inline-block; background: #005a9e; color: #fff; padding: 8px 14px;
  border-radius: 6px; text-decoration: none; margin-right: 10px; font-size: 0.9rem;
}
.button.secondary { background: #777; }

/* Mobile: stack product cards + make buttons full width */
@media (max-width: 768px) {
  .product-card { flex: 1 1 100%; }
  .product-card .button { display: block; width: 100%; margin-bottom: 10px; }
  .product-card .button:last-child { margin-bottom: 0; }
}

/* Group headings */
.group-heading {
  font-size: 1.8rem; margin-bottom: 1rem; padding: 0.5rem 1rem;
  border-radius: 8px; color: #111; background-color: #eaeaea;
}

/* Group colour coding (borders) */
.product-card.corded     { border: 3px solid #2b9ddf; background-color: #fff; }
.product-card.handdrawn  { border: 3px solid #f0b400; background-color: #fff; }
.product-card.wave       { border: 3px solid #33b38d; background-color: #fff; }
.product-card.double     { border: 3px solid #e66aa0; background-color: #fff; }

/* Page & section menus (button groups) */
.page-menu, .section-menu {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.page-menu { margin: 2rem 0; }
.section-menu { margin: 1.5rem 0 2rem; }

.menu-button {
  color: #fff; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-size: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; display: inline-block;
}
.page-menu .menu-button {
  background-color: #005a9e;
  color: #fff; /* keep text white */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-menu .menu-button:hover {
  transform: translateY(-2px);
}

.page-menu .menu-button:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.18);
}

.page-menu .menu-button {
  transition: all 0.2s ease;
}


/* hover state */
.page-menu .menu-button:hover { 
  background-color: #003e70; 
  color: #fff; /* force text to stay white on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
}

.menu-button:hover { opacity: 0.9; }

/* Colour-coded menu buttons */
.menu-button.corded    { background-color: #2b9ddf; }
.menu-button.handdrawn { background-color: #f0b400; }
.menu-button.wave      { background-color: #33b38d; }
.menu-button.double    { background-color: #e66aa0; }
.menu-button.advice    { background-color: #7e57c2; } /* purple */

/* Mini-series nav component */
.mini-series-nav { margin:2rem 0; padding:1rem 1rem; border:1px solid #e5e5e5; border-radius:12px; background:#fafafa; }
.mini-series-nav .mini-series-list {
  list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:.6rem;
}
.mini-series-nav .mini-series-list > li { margin:0; padding:0; border:0; }
.mini-series-nav .mini-series-link {
  display:flex; align-items:center; gap:.6rem; width:100%; padding:.9rem 1rem;
  background:#fff; border:1px solid #eee; border-radius:10px; text-decoration:none;
  color:#0a56b3; line-height:1.35; box-sizing:border-box;
}
.mini-series-nav .current .mini-series-link {
  color:#0a2a66; font-weight:600; background:#f0f7ff; border-color:#cfe3ff;
}
.mini-series-nav .mini-series-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; min-width:28px; border-radius:50%;
  background:#0056b3; color:#fff; font-weight:700; font-size:.9rem; flex:0 0 28px;
}
.mini-series-nav .mini-series-text { flex:1 1 auto; }
.mini-series-nav .mini-series-link:hover { background:#f4f8ff; border-color:#d7e7ff; text-decoration:underline; }
.mini-series-nav .mini-series-link:focus { outline:3px solid #a8d1ff; outline-offset:2px; }
@media (max-width:768px){
  .mini-series-nav{ padding:1rem .75rem; }
  .mini-series-nav .mini-series-link{ padding:1rem; font-size:1.05rem; }
}

/* Simple grid template (3x7) */
.grid-container {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(7, auto); gap: 10px;
}
.grid-container > div { border: 1px solid #ccc; padding: 10px; text-align: left; }
.header { font-weight: bold; background-color: #f2f2f2; }

/* Hero bits */
.hero-section h2.subtitle {
  font-size: 1.15rem; font-weight: 500; line-height: 1.2; margin-bottom: 1rem; color: #333;
}
.hero-quote {
  background-color: #f5f5f5; padding: 1rem 1.25rem; border-left: 4px solid #005a9e;
  font-style: italic; font-size: 1rem; line-height: 1.6; color: #333; border-radius: 6px; margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); max-width: 100%;
}
.hero-quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-weight: bold; color: #555; }

/* ===== Feature USP bar – restore full-bleed background ===== */
:root{
  /* fallback colours if the custom props aren’t set elsewhere */
  --usp-gradient-start:#eaf3ff;
  --usp-gradient-end:#efe8ff;
}

/* The section wrapper (can be #feature-usp or .usp-banner) */
#feature-usp,
.usp-banner{
  position: relative;
  isolation: isolate;      /* keeps the bg behind content */
  overflow: visible;
}

/* Full-bleed background strip */
#feature-usp::before,
.usp-banner::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 100vw;            /* span the full viewport width */
  transform: translateX(-50%);
  z-index: -1;             /* behind the cards/content */
  background: linear-gradient(90deg,var(--usp-gradient-start),var(--usp-gradient-end));
}

/* Inner content stays constrained */
#feature-usp .usp-inner,
.usp-banner .usp-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;       /* adjust to taste */
}



/* ========== 10) Carousels & Testimonials ============================ */

/* Generic image carousel */
.carousel-container { position: relative; max-width: 100%; overflow: hidden; margin: 2rem auto; }
.carousel-track {
  display: flex; gap: 20px; scroll-behavior: smooth; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 auto; scroll-snap-align: start; width: 300px; height: 300px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #ffffffcc; border: none; font-size: 2rem; cursor: pointer; z-index: 1;
  padding: 0.2em 0.5em; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.carousel-arrow.left { left: 10px; } .carousel-arrow.right { right: 10px; }

/* Testimonials carousel + modal */
.testimonial-container { position:relative; overflow:hidden; margin:3rem auto; }
.testimonial-track {
  display:flex; gap:20px; scroll-behavior:smooth; overflow-x:auto;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding-bottom:1rem;
}
.testimonial-track::-webkit-scrollbar{ display:none; }
.testimonial-card {
  flex:0 0 auto; width:280px; background:#fff; border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08); padding:1.25rem; scroll-snap-align:start;
}
.testimonial-stars { color:#f4b400; font-size:1.1rem; margin-bottom:.5rem; }
.testimonial-snippet { font-size:.95rem; line-height:1.5rem; margin-bottom:.75rem; }
.testimonial-footer { font-size:.8rem; color:#555; margin-top:.5rem; }
.testimonial-arrow {
  position:absolute; top:50%; transform:translateY(-50%); background:#ffffffcc;
  border:none; font-size:2rem; padding:.15em .45em; cursor:pointer; z-index:1;
  border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.testimonial-arrow.left{ left:10px; } .testimonial-arrow.right{ right:10px; }
@media(max-width:768px){ .testimonial-card{ width:85%; } .testimonial-arrow{ display:none; } }

/* Modal */
.testimonial-modal {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  justify-content: center; align-items: flex-start; padding: 3rem 1rem;
  overflow-y: auto; z-index: 1000;
}
.testimonial-modal-content {
  background: #fff; border-radius: 12px; max-width: 600px; width: 100%;
  padding: 2rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); position: relative; margin-top: 5vh;
}
.modal-close { position:absolute; top:10px; right:15px; font-size:1.6rem; cursor:pointer; border:none; background:none; }
.modal-reply { margin-top:1rem; padding-top:1rem; border-top:1px solid #eee; font-size:.9rem; color:#444; }


/* ========== 11) Tables & Comparisons ================================ */

.comparison-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.comparison-table { min-width: 700px; width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 1rem; }
.wave-bay-comparison { margin-top: 2rem; }
.comparison-table th, .comparison-table td {
  padding: 12px; text-align: left; border: 1px solid #ccc; vertical-align: top;
}
.comparison-table thead tr { background-color: #f2f2f2; }
.comparison-table .alt-row { background-color: #f9f9f9; }


/* ========== 12) FAQ (simple JS-driven) ============================== */

.faq-section { max-width: 800px; margin: 0 auto; padding: 10px; }
.faq-question {
  background: #f2f2f2; padding: 1em; padding-right: 3em; cursor: pointer;
  border: 1px solid #ddd; border-radius: 0.5em; position: relative; margin-bottom: 0.5em;
  font-weight: bold; transition: background 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.faq-question::after {
  content: "+"; font-size: 1.5em; position: absolute; right: 1em; top: 50%;
  transform: translateY(-50%); transition: transform 0.3s;
}
.faq-question.active::after { content: "−"; }
.faq-answer {
  display: none; padding: 1em; border: 1px solid #eee; border-top: none; background: #fff;
  margin-bottom: 1em; border-radius: 0 0 0.5em 0.5em;
}
.active + .faq-answer { display: block; }


/* ========== 13) Misc UI ============================================= */

/* “Back to top” button */
#scrollToTopButton {
  display: none; position: fixed; bottom: 20px; right: 20px;
  background-color: #C211CF; color: #fff; border: none; padding: 8px 10px; border-radius: 5px;
  cursor: pointer; z-index: 1000;
}
#scrollToTopButton:hover { background-color: #363636; }

/* Anchor image hover fade */
a img:hover { opacity: 0.8; filter: alpha(opacity=80); }

/* Fullwidth light section */
.fullwidth-grey { background-color: #f6f6f6 !important; }


/* ========== 14) Spectra “Steps” mobile fixes ======================== */

@media (max-width: 768px) {
  .steps-wrap .image-grid {
    display: grid !important; grid-template-columns: 1fr !important; gap: 16px !important;
    width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 12px !important;
    float: none !important; position: static !important; min-height: auto !important; height: auto !important; overflow: visible !important;
  }
  .steps-wrap .image-grid .image-card {
    display: block !important; width: 100% !important; margin: 0 !important; padding: 16px !important;
    float: none !important; clear: both !important; position: static !important;
    background: #fff; border: 1px solid #e6ebf2; border-radius: 12px;
    min-width: 0 !important; overflow: hidden !important; text-align: center;
  }
  .steps-wrap .image-grid .image-card img {
    display: block !important; max-width: 100% !important; height: auto !important; margin: 0 auto 10px !important; object-fit: contain;
  }
  .steps-wrap .image-grid .image-card h2 {
    font-size: 1.1rem; line-height: 1.25; margin: 6px 0 !important;
  }
  .steps-wrap .image-grid .image-card .caption {
    font-size: .95rem; color: #555; margin: 0 !important;
  }
  .steps-wrap [class*="uagb-"] { flex: none !important; align-items: stretch !important; }
}


/* Show/position the print link on screen */
.policy-print-link { text-align: right; margin: .5rem 0 1rem; }
.policy-print-link a { text-decoration: underline; }

/* Clean print layout */
@media print {
  /* Hide site chrome */
  header, nav, .site-header, .ast-desktop-header, .main-header-menu,
  .site-footer, footer, .ast-breadcrumbs, .rank-math-breadcrumb,
  .btn, .button, .page-menu, .section-menu,
  .testimonial-container, .carousel-container { display: none !important; }

  /* Show content full width */
  .site-content, .entry-content, .ast-container, .ast-plain-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  /* Body text tweaks */
  body { background: #fff !important; color: #000 !important; }
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }

  /* Links print as plain text (no long URLs) */
  a { color: #000 !important; text-decoration: none !important; }

  /* Table borders for legibility */
  table, th, td { border-color: #999 !important; }

  /* Optional: add a subtle footer with your site */
  @page { margin: 12mm; } /* A4-friendly margins */
}

/* Action bar (print / PDF) */
.page-id-4994 .policy-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  margin:.5rem 0 1rem;
}

/* Mobile: make buttons full width and stacked nicely if tight */
@media (max-width:600px){
  .page-id-4994 .policy-actions { justify-content:stretch; }
  .page-id-4994 .policy-actions .btn { flex:1 1 auto; }
}

/* Hide the bar when actually printing */
@media print{
  .policy-actions{ display:none !important; }
}

/* Delivery & Returns – jump menu contrast fix */
.page-id-5006 .section-menu .menu-button {
  color: #000 !important;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
}

.page-id-5006 .section-menu .menu-button:hover {
  background-color: #e0e0e0;
}


/* ===== Ezecurtains: Trade Page Section Menu (match Delivery & Returns style) ===== */
.page-id-5018 .section-menu {
  background: #FFFFFF;
  padding: 0.8rem;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Reset button text colour */
.page-id-5018 .section-menu .menu-button {
  background-color: #eaeaea !important;
  color: #000 !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  padding: 10px 16px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.page-id-5018 .section-menu .menu-button:hover {
  background-color: #dcdcdc !important; /* slightly darker grey */
  color: #000 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Keep jump menu consistent if also used */
.page-id-5018 h2 + ul.jump-menu {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}

.page-id-5018 .jump-menu a {
  color: #0056b3 !important;
  text-decoration: none;
  border-bottom: 1px dashed #ccc;
  transition: all 0.2s ease;
}

.page-id-5018 .jump-menu a:hover {
  color: #222 !important;
  border-color: #666;
}

/* =========================
   Ezecurtains Advice Page Styles
   ========================= */

.ez-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
}

.ez-hero h1 {
  margin: 0 0 .25em;
}

.ez-subhead {
  font-size: 1.125rem;
  color: #555;
  margin: .25em 0 1em;
  font-weight: 400;
}

.ez-lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

.ez-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.ez-grid.cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .ez-grid.cols-2 {
    grid-template-columns: 1.2fr .8fr;
  }
}

.ez-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: clamp(14px, 2vw, 18px);
}

.ez-section {
  scroll-margin-top: 90px;
}

.ez-kbd {
  display: inline-block;
  padding: .1em .4em;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ez-bullets {
  margin: .5em 0 0 1.25em;
}

.ez-cta {
  display: inline-block;
  background: #0c6;
  border-radius: 999px;
  padding: .7em 1.1em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ez-cta:hover {
  opacity: .9;
}

.ez-muted {
  color: #666;
}

details.ez-transcript {
  border: 1px dashed #ddd;
  border-radius: 12px;
  padding: 10px;
}

details.ez-transcript summary {
  cursor: pointer;
  font-weight: 600;
}

.ez-media figure {
  margin: 0;
}

.ez-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.ez-media figcaption {
  font-size: .9rem;
  color: #666;
  margin-top: .35em;
}

.ez-toc a {
  display: inline-block;
  margin: .25em .5em .25em 0;
}

.ez-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.ez-table th {
  font-weight: 700;
  text-align: left;
  font-size: .95rem;
}

.ez-table td,
.ez-table th {
  padding: .5em .6em;
  background: #fff;
  border: 1px solid #eee;
}

.ez-badge {
  font-size: .85rem;
  background: #eef7ee;
  color: #1a7f37;
  border: 1px solid #cfe9cf;
  padding: .15em .5em;
  border-radius: 999px;
}

/* Responsive video */
.ez-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.ez-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Smooth scroll for jump links */
html { scroll-behavior: smooth; }

/* Track fixing buttons — vertical stack */
.ez-fit-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.ez-fit-vertical { 
  flex-direction: column; 
}

.ez-fit-btn {
  width: 100%;
  text-align: center;
  background: #f4faf4; /* soft green tint instead of solid fill */
  border: 2px solid #1a7f37;
  color: #1a7f37;
  border-radius: 999px;
  padding: 0.65em 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease-in-out;
}

.ez-fit-btn:hover,
.ez-fit-btn:focus {
  background: #1a7f37; /* solid green on hover */
  color: #fff;
  outline: none;
}


/* Lite YouTube embed — base (no width set here) */
.ez-video-lite{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background:#000;
  cursor:pointer;
  box-shadow:0 0 0 1px #eee inset;
}
.ez-video-lite img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(.8);
}
.ez-video-lite:is(:hover, :focus-within) img{ filter:brightness(.9); }
.ez-video-lite .ez-play{ position:absolute; inset:0; display:grid; place-items:center; }
.ez-video-lite .ez-play::before{ content:""; width:68px; height:48px; border-radius:10px; background:rgba(0,0,0,.6); box-shadow:0 12px 24px rgba(0,0,0,.35); }
.ez-video-lite .ez-play::after{ content:""; position:absolute; border-style:solid; border-width:12px 0 12px 20px; border-color:transparent transparent transparent #fff; margin-left:6px; }

/* Inner media fills the box */
.ez-video-lite iframe,
.ez-video-lite img{
  width:100% !important;
  height:100% !important;
  display:block;
  border:0;
}

/* Utility: 80% on desktop, 100% on mobile */
.ez-80d{
  display:block !important;
  width:100% !important;        /* mobile/tablet */
  max-width:100% !important;
  margin:0 auto !important;
  justify-self:center !important;  /* if parent is grid */
  align-self:center !important;    /* if parent is flex */
}
@media (min-width:900px){
  .ez-80d{
    width:80% !important;       /* desktop clamp */
    max-width:80% !important;
  }
}

/* HERO two-column layout (text left, buttons right) */
.ez-hero-grid{
  display:grid;
  gap:clamp(14px, 2vw, 20px);
  grid-template-columns:1fr;           /* mobile: single column */
  align-items:start;
}
@media (min-width:900px){
  .ez-hero-grid{
    grid-template-columns:1.2fr .8fr;  /* desktop: side-by-side */
  }
}

/* Keep the buttons in a tidy vertical stack on the right */
.ez-fit-buttons{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:480px;     /* stops them going super wide */
  width:100%;
  justify-self:start;  /* keeps the stack aligned inside the grid cell */
}
.ez-fit-btn{
  width:100%;
}

/* Balanced space between breadcrumbs and first heading */
.ezc-bc-wrap{
  margin-bottom: clamp(10px, 2vw, 24px);
}

/* Optional: if some pages have *too much* gap, tighten the top margin on the first H1 */
.ast-container .site-content h1:first-of-type{
  margin-top: 0.4em;
}

/* Ensure the video box has height */
.ez-video-lite{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.ez-video-lite .ez-thumb{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* === Curtain Track Advice Hub: Button Layout === */

/* Page-scoped wrapper */
.ez-hub-buttons {
  flex-direction: column;   /* mobile: stacked */
  gap: 12px;
}

/* Tablet & desktop: 2 per row with flex */
@media (min-width: 700px) {
  .ez-hub-buttons {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Critical overrides */
  .ez-hub-buttons .ez-fit-btn {
    width: auto;                  /* override the 100% */
    flex: 1 1 calc(50% - 16px);
    max-width: 280px;
  }
}

/* === Advice Hub Card Styling (Green Theme) === */
.ez-hub-card {
  border: 3px solid #1a7f37;        /* same green as your buttons */
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  transition: all 0.2s ease-in-out;
}

.ez-hub-card:hover {
  border-color: #145f2a;             /* slightly darker green on hover */
  box-shadow: 0 4px 10px rgba(26,127,55,0.1);
}

/* Advice hub: unify card styling to green, keep product-card layout */
.product-card.is-advice {
  border: 3px solid #1a7f37;   /* same green as buttons */
  background-color: #fff;
}

/* Optional: subtle hover to match buttons */
.product-card.is-advice:hover {
  border-color: #145f2a;
  box-shadow: 0 8px 24px rgba(26,127,55,0.12);
}


/* Pull quote + details (add to your child theme CSS) */
.ez-pull{font-size:18px;line-height:1.6;font-style:italic;border-left:4px solid #dbeafe;margin:8px 0 12px;padding:8px 12px;background:#fff;border-radius:10px}
.ez-details summary{cursor:pointer;font-weight:600}
.ez-details[open] summary{margin-bottom:8px}
.ez-details__body p{margin:0 0 10px}


/* ===== Reviews ===== */
.ez-reviews { display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width: 800px){ .ez-reviews { grid-template-columns:1fr 1fr; gap:22px; } }


.ez-review { background:#f9f9f9; border-radius:14px; padding:16px; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.ez-review__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.ez-review__stars span { font-size:18px; letter-spacing:1px; }
.ez-review__meta { font-size:14px; color:#555; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ez-review__verified { background:#e8f7ee; color:#237a3b; padding:2px 8px; border-radius:999px; font-size:12px; }
.ez-review__title { font-size:18px; margin:8px 0 6px; }
.ez-review__body { line-height:1.5; }
.ez-review__facts { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; margin:10px 0; }
.ez-review__facts dt { font-weight:600; }
.ez-review__facts dd { margin:0; }
.ez-review__media { margin:10px 0; }
.ez-review__media img { width:100%; height:auto; border-radius:10px; display:block; }
.ez-review__footer { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.ez-review__help { background:#fff; border:1px solid #ddd; border-radius:999px; padding:6px 10px; font-size:13px; cursor:pointer; }
.ez-review__tags { font-size:12px; color:#777; }
.ez-review__response { margin-top:12px; padding:10px 12px; background:#fff; border-left:4px solid #4a7; border-radius:8px; }


/* ===== Helpful Info & Policies card section (Contact page) ===== */

#helpful-info.info-cards {
  background: #ffffff;
  border-top: 1px solid #e6ebf2;
  padding: 32px 16px 40px;
}

#helpful-info .info-cards-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#helpful-info .info-cards-heading {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

#helpful-info .info-cards-intro {
  margin: 0 0 20px;
  font-size: 0.98rem;
  color: #555;
}

#helpful-info .info-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet: 2 columns */
@media (max-width: 980px) {
  #helpful-info .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  #helpful-info.info-cards {
    padding: 28px 14px 32px;
  }
  #helpful-info .info-card-grid {
    grid-template-columns: 1fr;
  }
}

#helpful-info .info-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f8fb;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

#helpful-info .info-card:hover,
#helpful-info .info-card:focus-visible {
  border-color: #d0d7e6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

#helpful-info .info-card-icon {
  line-height: 0;
  color: #111;
  opacity: 0.9;
  flex-shrink: 0;
}

#helpful-info .info-card-text {
  line-height: 1.35;
}

#helpful-info .info-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

#helpful-info .info-card-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #helpful-info .info-card {
    transition: none;
  }
  #helpful-info .info-card:hover,
  #helpful-info .info-card:focus-visible {
    transform: none;
  }
}


/* Small callout for jump link on Contact page */

.info-jump {
  max-width: 800px;
  margin: 12px auto 18px;
  padding: 10px 12px;
  background: #f7f8fb;
  border-left: 3px solid #d0d7e6;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #444;
}

.info-jump a {
  text-decoration: underline;
}
.info-jump a:hover,
.info-jump a:focus-visible {
  text-decoration: none;
}


/* ===========================
   REUSABLE HERO LAYOUT
   Used by: measuring pages + mini hubs
   =========================== */

/* Hero wrappers – background can differ per type */
.hero-measure {
  background: #f7f8fb;
  padding: 30px 20px 40px;
  border-bottom: 1px solid #e6ebf2;
}

.hero-five-sided {
  background: #ffffff; /* clean white hero for hub */
  padding: 30px 20px 40px;
  border-bottom: 1px solid #e6ebf2;
}

/* Shared inner grid for ANY hero with text left / image right */
.hero-inner,
.hero-five-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 28px;
  align-items: center;
}
  gap: 28px;
  align-items: center;
}

/* Shared hero text styling */
.hero-text h1,
.hero-five-text h1 {
  margin-top: 0;
  font-size: 1.9rem;
}

.hero-text p,
.hero-five-text p {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* Shared hero image styling */
.hero-image img,
.hero-five-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6eaf2;
}

/* Mobile / tablet layout for ALL heroes */
@media (max-width: 860px) {
  .hero-inner,
  .hero-five-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-image,
  .hero-five-image {
    order: -1; /* image above text on mobile */
    margin-bottom: 12px;
  }
}


/* ===========================
   STRIPE SECTIONS (FULL-WIDTH GREY OPTION)
   =========================== */

/* Simple stripe sections inside content width */
.ezc-stripe {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 40px 20px;
}

/* Inner containers so content stays nicely centred */
.ezc-stripe .inner,
.ezc-stripe .measure-inner,
.ezc-stripe .hero-inner,
.ezc-stripe .hero-five-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Grey variant – full-width background using pseudo-element */
.ezc-stripe.grey {
  position: relative;
  background: transparent; /* colour handled by ::before */
}

.ezc-stripe.grey::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #f6f6f6;
  z-index: -1;
}


/* ===========================
   "Back to hub" link block
   =========================== */

.measure-hub-link {
  margin: 0 0 18px 0;
  padding: 10px 14px;
  background: #f7f8fb;
  border-left: 3px solid #d0d7e6;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.measure-hub-link a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.measure-hub-link a:hover,
.measure-hub-link a:focus-visible {
  text-decoration: underline;
}

.measure-hub-sub {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 0.9rem;
}

/* Mobile footer readability tweaks */
@media (max-width: 768px) {
  /* Headings larger & clearer */
  .site-footer .ec-footer__heading,
  .site-footer h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #222;
  }

  /* Add breathing room between sections */
  .site-footer .ec-footer__col {
    margin-bottom: 1.5rem;
  }

  /* Links slightly larger with more line-height for easier tapping */
  .site-footer .ec-footer__links li a {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0.25rem 0;
    display: inline-block;
  }
}



/* Payment row layout */
.ec-payments__list{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:center;margin:.75rem 0 0;padding:0;list-style:none}

/* Force all logos to same height, ignore WP width/height */
.ec-payments__logo{
  height: 28px !important;      /* adjust to taste: 24–32px */
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}





/* 2) Center the 4 widget columns as a block */
.site-footer .ast-builder-grid-row {
  justify-content: center !important; /* centers the grid/flex items */
}

/* Footer widget alignment: headings + text left, links left */
.site-footer .widget {
  text-align: left; /* default all footer text left-aligned */
}


/* If you prefer links left-aligned, keep headings centered but undo links */
.site-footer .widget .ec-footer__heading { text-align: center; }
.site-footer .widget .ec-footer__links { text-align: left; margin-inline: auto; display: inline-block; }

/* 3) Reduce space BEFORE the copyright row */
.site-footer .footer-adv .ast-builder-grid-row-container-inner {
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* 4) Reduce space INSIDE the copyright row */
.site-footer .ast-footer-copyright .ast-builder-grid-row-container-inner {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin: 0 !important;
}

/* 5) General tidy: smaller gaps between widgets */
.site-footer .footer-adv .widget {
  margin-bottom: 0.75rem; /* was often larger by default */
}



.youtube-video {
  width: 80%;
  max-width: 960px;
  margin: 2rem auto;
  display: block;
}
@media (max-width: 767px) {
  .youtube-video {
    width: 100%;
  }
}}
.faq-container {
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* Change entire header background to charcoal */
.main-header-bar, 
.ast-primary-header-bar, 
.site-header, 
.header-main { 
    background-color: #222222 !important;
}





.ast-button,
button,
input[type="button"],
input[type="submit"] {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ast-button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
}



.header-phone-number {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  margin-top: -26px; /* Try -8px or go more negative to raise it further */
  font-size: 1.4em;
}

@media (max-width: 768px) {
  header.ast-mobile-header {
    background-color: #1a1a1a !important;
  }

  .ast-header-break-point .ast-primary-header-bar,
  .ast-header-break-point .main-header-bar,
  .ast-header-break-point .ast-above-header,
  .ast-header-break-point .ast-below-header {
    background-color: #1a1a1a !important;
  }

  .ast-mobile-header-wrap {
    background-color: #1a1a1a !important;
  }
}


 /* Reuse info-card styling for Bay Shape Quick Links */
#bay-shape-quick-links .info-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f8fb;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

#bay-shape-quick-links .info-card:hover,
#bay-shape-quick-links .info-card:focus-visible {
  border-color: #d0d7e6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

#bay-shape-quick-links .info-card-icon {
  line-height: 0;
  color: #111;
  opacity: 0.9;
  flex-shrink: 0;
}

#bay-shape-quick-links .info-card-text {
  line-height: 1.35;
}

#bay-shape-quick-links .info-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

#bay-shape-quick-links .info-card-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #555;
}
/* Tile-style layout just for bay shapes */
#bay-shape-quick-links .info-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

#bay-shape-quick-links .info-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 170px; /* tweak to taste */
}

#bay-shape-quick-links .info-card-icon {
  margin-bottom: 8px;
}

#bay-shape-quick-links .info-card-icon img {
  max-width: 90px;
  width: 100%;
  height: auto;
}
/* Increase bay shape card size by ~10% */
#bay-shape-quick-links .info-card {
  width: 188px; /* was 170px – roughly +10% */
  padding: 14px 16px 20px; /* slightly increased padding */
}

#bay-shape-quick-links .info-card-icon img {
  max-width: 100px; /* was 90px */
}


/* Side-by-side CTA buttons */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Normalise both buttons */
.cta-row .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  white-space: nowrap;
  margin: 0 !important;
}

/* Keep secondary version behaving the same */
.cta-row .cta-button.secondary {
  /* inherits layout from .cta-button, your existing colours still apply */
}

/* ===== SHOP FORM LAYOUT (Form ID 2) ===== */

#gform_wrapper_2 {
  max-width: 1450px;
  margin: 0 auto;
  padding: 10px 15px;
}

/* General field spacing (default) */
#gform_wrapper_2 .gfield {
  max-width: 480px;
  margin-bottom: 16px;
}

/* Base labels */
#gform_wrapper_2 .gfield_label {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

/* Help text / descriptions */
#gform_wrapper_2 .gfield_description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}

/* ===== PAGE 1 – PRODUCT CARDS ===== */

/* Let product cards / totals row ignore the generic 480px cap */
#gform_page_2_1 .gfield.product-card,
#gform_page_2_1 .gfield.totals-row {
  max-width: none;
}

/* Product card base style (cards are Product fields with gf-product-card class) */
#gform_page_2_1 .gfield.gf-product-card {
  background: #fafbff;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  padding: 18px 20px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Product title label inside card */
#gform_page_2_1 .gfield.gf-product-card .gfield_label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 6px;
}

/* Product image banners */
#gform_page_2_1 .gfield.gf-product-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Individual card images */
#gform_page_2_1 .gf-product-track-end-stops::before {
  background-image: url("https://newsite.ezecurtains.co.uk/wp-content/uploads/2025/11/extra-ceiling-brackets-bay-windows.jpg");
}
#gform_page_2_1 .gf-product-extra-gliders::before {
  background-image: url("https://ezecurtains.co.uk/wp-content/uploads/2025/07/ceiling-fixed-curtain-track-made-to-measure.webp");
}
#gform_page_2_1 .gf-product-extra-brackets::before {
  background-image: url("https://ezecurtains.co.uk/wp-content/uploads/2025/07/custom-made-wall-fit-curved-face-curtain-track.webp");
}

/* Built-in quantity input inside product cards */
#gform_page_2_1 .ginput_quantity input {
  max-width: 80px;
  padding: 5px 6px;
  font-size: 0.95rem;
  text-align: center;
}

/* Price text inside product card */
#gform_page_2_1 .gfield.gf-product-card .ginput_product_price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== FILTERS ===== */

#gform_page_2_1 .shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px 0;
  padding: 0;
}

#gform_page_2_1 .shop-filter-btn {
  border: 1px solid #ccc;
  background: #305CDE;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}

#gform_page_2_1 .shop-filter-btn.is-active {
  border-color: #333;
  background: #5D5C5B;
  font-weight: 600;
}

/* Hide anything the filter marks as hidden */
#gform_page_2_1 .is-hidden { display: none !important; }

/* Mobile tweaks */
@media (max-width: 768px) {
  #gform_page_2_1 .gfield.product-card {
    max-width: none !important;
    width: 100%;
  }
}
/* ===== FILTERS: force full-width container on desktop ===== */

/* If the filters sit inside a normal GF field, remove the 480px cap */
#gform_page_2_1 .gfield:has(.shop-filters) {
  max-width: none !important;
  width: 100% !important;
}

/* Make the filter bar itself full width */
#gform_page_2_1 .shop-filters {
  width: 100%;
  max-width: none;
  flex-wrap: nowrap;          /* keep in one row */
  overflow-x: auto;           /* if someone has a smaller desktop window */
  -webkit-overflow-scrolling: touch;
}

/* Stop buttons breaking onto multiple lines */
#gform_page_2_1 .shop-filter-btn {
  white-space: nowrap;
  flex: 0 0 auto;
}
/* ===== FILTERS: wrap on mobile instead of horizontal scroll ===== */
@media (max-width: 768px) {
  #gform_page_2_1 .shop-filters {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  #gform_page_2_1 .shop-filter-btn {
    white-space: normal;   /* optional: allows longer labels to break */
  }
}
@media (hover: hover) {
  #gform_page_2_1 .shop-filter-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  #gform_page_2_1 .shop-filter-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  }
}


/* ===== PAGE 2 – CHECKOUT LAYOUT ===== */

#gform_page_2_2 .gform_fields {
  max-width: 800px;
  margin: 0 auto;
  row-gap: 18px;
}

#gform_page_2_2 .gfield {
  max-width: 100%;
  margin-bottom: 16px;
}

#gform_page_2_2 input[type="text"],
#gform_page_2_2 input[type="email"],
#gform_page_2_2 input[type="tel"],
#gform_page_2_2 input[type="number"],
#gform_page_2_2 select,
#gform_page_2_2 textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.98rem;
}

#gform_page_2_2 .gform_card_details,
#gform_page_2_2 .ginput_container_creditcard {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

#gform_page_2_2 .gform_footer {
  text-align: right;
}

/* Stripe block */
#gform_wrapper_2 .checkout-stripe {
  background: #fafbff;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  padding: 18px 20px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-top: 10px;
}

#gform_wrapper_2 .checkout-stripe .gfield_label {
  margin-bottom: 10px;
  font-weight: 700;
}

#gform_wrapper_2 .checkout-stripe .ginput_container,
#gform_wrapper_2 .checkout-stripe .stripe-payment-element {
  margin-top: 6px;
}

#gform_wrapper_2 .checkout-stripe .gfield_description {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* Order total */
#gform_wrapper_2 .checkout-total-box {
  max-width: 260px;
  margin: 20px 0 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f7f8fc;
  border: 1px solid #e1e4eb;
}

#gform_wrapper_2 .checkout-total-box .gfield_label {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 700;
}

#gform_wrapper_2 .checkout-total-box .ginput_total {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Buttons */
#gform_wrapper_2 .gform_footer,
#gform_wrapper_2 .gform_page_footer {
  max-width: 800px;
  margin: 10px auto 30px auto;
}

#gform_wrapper_2 .gform_button,
#gform_wrapper_2 .gform_next_button,
#gform_wrapper_2 .gform_previous_button {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
}

#gform_wrapper_2 .gform_next_button,
#gform_wrapper_2 .gform_button {
  color: #fff;
}

#gform_wrapper_2 .gform_previous_button {
  background: #eef0f5;
  color: #333;
  margin-right: 10px;
}

/* Checkout mobile */
@media (max-width: 640px) {
  #gform_page_2_2 .gform_fields {
    max-width: 100%;
    padding: 0 5px;
  }

  #gform_wrapper_2 .gform_footer,
  #gform_wrapper_2 .gform_page_footer {
    max-width: 100%;
    padding: 0 5px 20px;
  }

  #gform_wrapper_2 .checkout-total-box {
    max-width: 100%;
  }
}

/* Summary note */
#gform_wrapper_2 .checkout-summary {
  max-width: 800px;
  margin: 10px auto 5px auto;
  padding: 10px 14px;
  background: #f5f7ff;
  border-radius: 8px;
  border: 1px solid #e1e4eb;
  font-size: 0.95rem;
  line-height: 1.4;
}

#gform_wrapper_2 .checkout-summary strong {
  font-size: 1rem;
}

/* Address spacing */
#gform_page_2_2 .gfield_address .gfield_label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

#gform_page_2_2 .ginput_container_address {
  margin-top: 30px;
}

#gform_page_2_2 .gfield_address input,
#gform_page_2_2 .gfield_address select {
  margin-bottom: 10px;
}

/* ===============================
   HEADER: Phone icon link
   Desktop/Laptop = big phone icon
   Mobile (<921px) = hidden (Call Us button used instead)
   =============================== */

.header-phone-link{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  line-height:1;
}

/* Desktop/Laptop */
@media (min-width: 921px){

  /* Hide the number, show a big icon */
  .header-phone-number{
    display:none !important;
  }

  .header-phone-link .phone-icon{
    font-size:44px;            /* your chosen size */
    line-height:1;
    display:inline-block;
    transform: translateY(1px); /* tiny baseline nudge */
  }

  /* Hover polish (desktop only) */
  @media (hover: hover){
    .header-phone-link{
      transition: transform 0.18s ease, opacity 0.18s ease;
    }
    .header-phone-link:hover{
      opacity:0.9;
      transform: scale(1.06);
    }
  }
}

/* Mobile: hide the icon because you have the Call Us button */
@media (max-width: 920px){
  .header-phone-link{
    display:none !important;
  }
}
