/* =====================================================================
   Page Layout Presets – Redesigned
   Applied via body[data-page-layout="..."]
   Each preset adds new visual elements via pseudo-elements and
   dramatically transforms the page structure, not just spacing.
   ===================================================================== */


/* =====================================================================
   SECTION 1 – SHARED PRESETS (work on any page)
   ===================================================================== */


/* ─── Hero Stacked ─────────────────────────────────────────────────── */

body[data-page-layout="hero-stacked"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="hero-stacked"] .hero-tagline {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

body[data-page-layout="hero-stacked"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="hero-stacked"] .hero-media {
  order: -1;
  max-width: 680px;
  margin: 0 auto;
}


/* ─── Hero Banner ──────────────────────────────────────────────────── */

body[data-page-layout="hero-banner"] .hero {
  grid-template-columns: 1fr;
  position: relative;
  min-height: 420px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 16px;
  overflow: hidden;
}

body[data-page-layout="hero-banner"] .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 0;
}

body[data-page-layout="hero-banner"] .hero-media img,
body[data-page-layout="hero-banner"] .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

body[data-page-layout="hero-banner"] .hero > *:not(.hero-media) {
  position: relative;
  z-index: 1;
}

body[data-page-layout="hero-banner"] .hero-title,
body[data-page-layout="hero-banner"] .hero-tagline,
body[data-page-layout="hero-banner"] .hero-badge span {
  color: #fff;
}

body[data-page-layout="hero-banner"] .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

body[data-page-layout="hero-banner"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="hero-banner"] .hero-cta .btn-primary {
  background: #fff;
  color: #0c1116;
}

body[data-page-layout="hero-banner"] .hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}


/* ─── Compact ──────────────────────────────────────────────────────── */

body[data-page-layout="compact"] main {
  padding: 1.25rem 1rem 2rem;
}

body[data-page-layout="compact"] .section {
  margin-bottom: 1.5rem;
}

body[data-page-layout="compact"] .section-header {
  margin-bottom: 0.75rem;
}

body[data-page-layout="compact"] .hero {
  margin-bottom: 1.5rem;
  gap: 1.25rem;
}

body[data-page-layout="compact"] .cards {
  gap: 0.75rem;
}

body[data-page-layout="compact"] .card {
  padding: 1rem;
}

body[data-page-layout="compact"] .stacked-list {
  gap: 0.4rem;
}

body[data-page-layout="compact"] .stacked-list li {
  padding: 0.6rem 0.8rem;
}

body[data-page-layout="compact"] .two-column {
  gap: 1.25rem;
}

body[data-page-layout="compact"] .gallery {
  gap: 0.5rem;
}

body[data-page-layout="compact"] .gallery img {
  height: 140px;
}


/* ─── Bold ─────────────────────────────────────────────────────────── */

body[data-page-layout="bold"] .hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

body[data-page-layout="bold"] .section-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

body[data-page-layout="bold"] .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: #0c4466;
  border-radius: 2px;
}

body[data-page-layout="bold"] .section-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

body[data-page-layout="bold"] .section {
  margin-bottom: 3.5rem;
}

body[data-page-layout="bold"] .hero {
  margin-bottom: 3.5rem;
}

body[data-page-layout="bold"] .section-header {
  margin-bottom: 2rem;
}

body[data-page-layout="bold"] .card-title {
  font-size: 1.15rem;
}


/* ─── Centred ──────────────────────────────────────────────────────── */

body[data-page-layout="centered"] main .container {
  max-width: 760px;
}

body[data-page-layout="centered"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="centered"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="centered"] .hero-media {
  max-width: 540px;
  margin: 0 auto;
}

body[data-page-layout="centered"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="centered"] .section-header {
  text-align: center;
}

body[data-page-layout="centered"] .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* =====================================================================
   SECTION 2 – CREATIVE SHARED PRESETS (new visual elements)
   ===================================================================== */


/* ─── Magazine ─────────────────────────────────────────────────────── */
/* NEW: accent bars on labels, pull-quote lead text, section dividers,
        asymmetric card grid, editorial typography */

body[data-page-layout="magazine"] .hero {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 860px;
}

body[data-page-layout="magazine"] .hero-media {
  order: -1;
  border-radius: 0;
  max-height: 380px;
  overflow: hidden;
}

body[data-page-layout="magazine"] .hero-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

body[data-page-layout="magazine"] .hero-cta {
  justify-content: flex-start;
}

body[data-page-layout="magazine"] .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page-layout="magazine"] .section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  background: #0c4466;
  flex-shrink: 0;
}

body[data-page-layout="magazine"] .lead {
  font-size: 1.1rem;
  font-style: italic;
  border-left: 3px solid #0c4466;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #374151;
}

body[data-page-layout="magazine"] .section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

body[data-page-layout="magazine"] .section::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(12, 68, 102, 0.3);
  margin-top: 2.5rem;
}

body[data-page-layout="magazine"] .section:last-child::after {
  display: none;
}

body[data-page-layout="magazine"] .cards {
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

body[data-page-layout="magazine"] .cards .card:first-child {
  grid-row: span 2;
}

body[data-page-layout="magazine"] .section-title {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

body[data-page-layout="magazine"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="magazine"] .stacked-list li {
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

body[data-page-layout="magazine"] .stacked-list li:hover {
  border-left-color: #0c4466;
}


/* ─── Dashboard ────────────────────────────────────────────────────── */
/* NEW: gradient hero, dark section headers with white text, top-accent
        card borders, pill badges, bordered card container */

body[data-page-layout="dashboard"] .hero {
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #0c4466 0%, #1a6b9c 100%);
  border-radius: 12px;
  color: #fff;
}

body[data-page-layout="dashboard"] .hero-title,
body[data-page-layout="dashboard"] .hero-tagline,
body[data-page-layout="dashboard"] .hero-badge span {
  color: #fff;
}

body[data-page-layout="dashboard"] .hero-badge {
  background: rgba(255, 255, 255, 0.15);
}

body[data-page-layout="dashboard"] .hero-cta .btn-primary {
  background: #fff;
  color: #0c4466;
}

body[data-page-layout="dashboard"] .hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

body[data-page-layout="dashboard"] main {
  padding: 1.5rem 1rem 2rem;
}

body[data-page-layout="dashboard"] .section {
  margin-bottom: 1.5rem;
}

body[data-page-layout="dashboard"] .section-header {
  background: #0c1116;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

body[data-page-layout="dashboard"] .section-header .section-label,
body[data-page-layout="dashboard"] .section-header .section-title,
body[data-page-layout="dashboard"] .section-header .section-subtitle {
  color: #fff;
}

body[data-page-layout="dashboard"] .section-label {
  background: rgba(96, 165, 250, 0.2);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
}

body[data-page-layout="dashboard"] .card {
  border-top: 3px solid #0c4466;
  border-radius: 0 0 10px 10px;
}

body[data-page-layout="dashboard"] .cards {
  gap: 1rem;
  border: 1px solid #e5ecf1;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

body[data-page-layout="dashboard"] .stacked-list li {
  border-left: 3px solid #0c4466;
  border-radius: 0 6px 6px 0;
}

body[data-page-layout="dashboard"] .two-column {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5ecf1;
}


/* ─── Split Screen ─────────────────────────────────────────────────── */
/* NEW: branded colour block behind hero right-half, alternating
        tinted section backgrounds, strong visual boundary */

body[data-page-layout="split"] .hero {
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  align-items: center;
  gap: 2.5rem;
}

body[data-page-layout="split"] .hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: -20px;
  bottom: -20px;
  width: 50%;
  background: #0c4466;
  z-index: 0;
  border-radius: 20px 0 0 20px;
}

body[data-page-layout="split"] .hero > * {
  position: relative;
  z-index: 1;
}

body[data-page-layout="split"] .hero-media {
  padding: 1.5rem;
}

body[data-page-layout="split"] .hero-media img,
body[data-page-layout="split"] .hero-media video {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body[data-page-layout="split"] .section:nth-child(even) {
  background: #f0f7ff;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 0;
}

body[data-page-layout="split"] .section:nth-child(even) .card {
  background: #fff;
}

body[data-page-layout="split"] .section-title {
  position: relative;
  display: inline-block;
}

body[data-page-layout="split"] .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0c4466, transparent);
}


/* ─── Showcase ─────────────────────────────────────────────────────── */
/* NEW: featured badge on first card, hover zoom images,
        gallery-style card edges, reduced hero */

body[data-page-layout="showcase"] .hero {
  margin-bottom: 1rem;
}

body[data-page-layout="showcase"] .hero-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

body[data-page-layout="showcase"] .hero-media {
  max-height: 180px;
  overflow: hidden;
  border-radius: 12px;
}

body[data-page-layout="showcase"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

body[data-page-layout="showcase"] .card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body[data-page-layout="showcase"] .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

body[data-page-layout="showcase"] .card img.card-thumb {
  height: 200px;
  transition: transform 0.35s ease;
}

body[data-page-layout="showcase"] .card:hover img.card-thumb {
  transform: scale(1.06);
}

body[data-page-layout="showcase"] .card-title,
body[data-page-layout="showcase"] .card-body,
body[data-page-layout="showcase"] .card-price,
body[data-page-layout="showcase"] .card-meta {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body[data-page-layout="showcase"] .card-title {
  padding-top: 1rem;
}

body[data-page-layout="showcase"] .card-body:last-child,
body[data-page-layout="showcase"] .card-price:last-child,
body[data-page-layout="showcase"] .card-meta:last-child {
  padding-bottom: 1.25rem;
}

body[data-page-layout="showcase"] .cards .card:first-child {
  position: relative;
}

body[data-page-layout="showcase"] .cards .card:first-child::before {
  content: '\2605  Featured';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0c4466;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}


/* ─── Dark Accent ──────────────────────────────────────────────────── */
/* NEW: dark hero, alternating dark/light sections, glow hover,
        blue accent badge, reversed text on dark backgrounds */

body[data-page-layout="dark-accent"] .hero {
  background: #0c1116;
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 0;
}

body[data-page-layout="dark-accent"] .hero-title,
body[data-page-layout="dark-accent"] .hero-tagline {
  color: #fff;
}

body[data-page-layout="dark-accent"] .hero-badge {
  background: rgba(96, 165, 250, 0.15);
}

body[data-page-layout="dark-accent"] .hero-badge span {
  color: #60a5fa;
}

body[data-page-layout="dark-accent"] .hero-cta .btn-primary {
  background: #60a5fa;
  color: #0c1116;
}

body[data-page-layout="dark-accent"] .hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body[data-page-layout="dark-accent"] .hero-media img,
body[data-page-layout="dark-accent"] .hero-media video {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) {
  background: #0c1116;
  color: #e5ecf1;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 2.5rem 1.5rem;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .section-label {
  color: #60a5fa;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .section-title {
  color: #fff;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .section-subtitle,
body[data-page-layout="dark-accent"] .section:nth-child(odd) .muted {
  color: #9ca3af;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5ecf1;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .card-title {
  color: #fff;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .card-body {
  color: #9ca3af;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .stacked-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5ecf1;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .lead {
  color: #d0d7e0;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .btn-primary {
  background: #60a5fa;
  color: #0c1116;
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body[data-page-layout="dark-accent"] .section:nth-child(odd) .footer-link {
  color: #60a5fa;
}

body[data-page-layout="dark-accent"] .card {
  transition: box-shadow 0.25s ease;
}

body[data-page-layout="dark-accent"] .card:hover {
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.15);
}


/* ─── Minimal ──────────────────────────────────────────────────────── */
/* NEW: hidden labels, border-only cards, outline-only buttons,
        thin-line list items, centered narrow container */

body[data-page-layout="minimal"] main {
  padding: 3rem 2rem 4rem;
}

body[data-page-layout="minimal"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

body[data-page-layout="minimal"] .hero-media {
  display: none;
}

body[data-page-layout="minimal"] .hero-badge {
  background: transparent;
  border: 1px solid #d0d7e0;
}

body[data-page-layout="minimal"] .hero-title {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

body[data-page-layout="minimal"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="minimal"] .section {
  margin-bottom: 3rem;
}

body[data-page-layout="minimal"] .section-label {
  display: none;
}

body[data-page-layout="minimal"] .section-header {
  text-align: center;
}

body[data-page-layout="minimal"] .section-subtitle {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

body[data-page-layout="minimal"] .card {
  background: transparent;
  border: 1px solid #e5ecf1;
  box-shadow: none;
  border-radius: 4px;
  transition: border-color 0.2s;
}

body[data-page-layout="minimal"] .card:hover {
  border-color: #0c4466;
}

body[data-page-layout="minimal"] .stacked-list li {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5ecf1;
  border-radius: 0;
  padding: 1rem 0;
}

body[data-page-layout="minimal"] .btn-primary {
  background: transparent;
  color: #0c4466;
  border: 1px solid #0c4466;
}

body[data-page-layout="minimal"] .btn-primary:hover {
  background: #0c4466;
  color: #fff;
}

body[data-page-layout="minimal"] .two-column {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}

body[data-page-layout="minimal"] .gallery {
  gap: 2px;
}


/* =====================================================================
   SECTION 3 – PAGE-SPECIFIC PRESETS
   ===================================================================== */


/* ─── About: Timeline ──────────────────────────────────────────────── */
/* NEW: vertical gradient connector line, dot circles on each item,
        single-column flow for values, timeline cards */

body[data-page-layout="timeline"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="timeline"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="timeline"] .hero-media {
  max-width: 600px;
  margin: 0 auto;
}

body[data-page-layout="timeline"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="timeline"] .stacked-list {
  position: relative;
  padding-left: 2.5rem;
}

body[data-page-layout="timeline"] .stacked-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0c4466 0%, rgba(12, 68, 102, 0.1) 100%);
}

body[data-page-layout="timeline"] .stacked-list li {
  position: relative;
  background: transparent;
  border: none;
  padding: 1rem 0 1.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid #e5ecf1;
}

body[data-page-layout="timeline"] .stacked-list li::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0c4466;
  z-index: 1;
}

body[data-page-layout="timeline"] .stacked-list li:last-child {
  border-bottom: none;
}

body[data-page-layout="timeline"] .cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

body[data-page-layout="timeline"] .cards::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0c4466 0%, rgba(12, 68, 102, 0.1) 100%);
}

body[data-page-layout="timeline"] .cards .card {
  position: relative;
  border: none;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid #e5ecf1;
  border-radius: 0;
  padding: 1.25rem 0;
}

body[data-page-layout="timeline"] .cards .card:last-child {
  border-bottom: none;
}

body[data-page-layout="timeline"] .cards .card::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0c4466;
  z-index: 1;
}


/* ─── About: Card Mosaic ──────────────────────────────────────────── */
/* NEW: asymmetric grid spans, tinted card backgrounds,
        visual variety in card sizing */

body[data-page-layout="card-mosaic"] .cards {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
}

body[data-page-layout="card-mosaic"] .cards .card:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border-left: 4px solid #0c4466;
}

body[data-page-layout="card-mosaic"] .cards .card:nth-child(3) {
  grid-row: span 2;
  background: #f8fafc;
}

body[data-page-layout="card-mosaic"] .cards .card:nth-child(2) {
  background: #fff;
  border-top: 3px solid #1a6b9c;
}

body[data-page-layout="card-mosaic"] .cards .card:nth-child(4) {
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

body[data-page-layout="card-mosaic"] .card {
  padding: 1.75rem;
}

body[data-page-layout="card-mosaic"] .card-title {
  font-size: 1.1rem;
}

body[data-page-layout="card-mosaic"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="card-mosaic"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="card-mosaic"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="card-mosaic"] .hero-media {
  max-width: 640px;
  margin: 0 auto;
}


/* ─── About: Bold Values ──────────────────────────────────────────── */

body[data-page-layout="bold-values"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

body[data-page-layout="bold-values"] .card {
  padding: 2rem;
  border-top: 4px solid #0c4466;
  border-radius: 0 0 12px 12px;
}

body[data-page-layout="bold-values"] .card-title {
  font-size: 1.25rem;
}

body[data-page-layout="bold-values"] .card-body {
  font-size: 1rem;
}

body[data-page-layout="bold-values"] .section-title {
  font-size: 2rem;
}

body[data-page-layout="bold-values"] .hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
}


/* ─── Contact: Split Screen ────────────────────────────────────────── */
/* NEW: branded colour panel for contact details with white text,
        form on clean white side, hidden hero image */

body[data-page-layout="split-screen"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 0;
}

body[data-page-layout="split-screen"] .hero-media {
  display: none;
}

body[data-page-layout="split-screen"] .hero-cta {
  display: none;
}

body[data-page-layout="split-screen"] .contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  min-height: 480px;
}

body[data-page-layout="split-screen"] .contact-grid > *:first-child {
  background: linear-gradient(160deg, #0c4466 0%, #0a3654 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page-layout="split-screen"] .contact-grid > *:first-child .section-label,
body[data-page-layout="split-screen"] .contact-grid > *:first-child .section-title {
  color: #fff;
}

body[data-page-layout="split-screen"] .contact-grid > *:first-child .section-subtitle,
body[data-page-layout="split-screen"] .contact-grid > *:first-child .muted {
  color: rgba(255, 255, 255, 0.7);
}

body[data-page-layout="split-screen"] .contact-grid > *:first-child .stacked-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body[data-page-layout="split-screen"] .contact-grid > *:first-child .footer-link {
  color: #60a5fa;
}

body[data-page-layout="split-screen"] .contact-grid > *:last-child {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}


/* ─── Contact: Card Style ──────────────────────────────────────────── */
/* NEW: contact details as elevated cards with accent left border,
        form in a container card */

body[data-page-layout="card-style"] .contact-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

body[data-page-layout="card-style"] .stacked-list {
  gap: 0.75rem;
}

body[data-page-layout="card-style"] .stacked-list li {
  background: #fff;
  border: 1px solid #e5ecf1;
  border-left: 4px solid #0c4466;
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

body[data-page-layout="card-style"] .stacked-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

body[data-page-layout="card-style"] form {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5ecf1;
}

body[data-page-layout="card-style"] .hero {
  margin-bottom: 2rem;
}


/* ─── Contact: Form Centred ────────────────────────────────────────── */

body[data-page-layout="form-centered"] .contact-grid {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ─── Services: Feature Tiles ──────────────────────────────────────── */
/* NEW: accent left border on tiles, hover tint, contained process box */

body[data-page-layout="feature-tiles"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
}

body[data-page-layout="feature-tiles"] .card {
  border-radius: 0;
  border: 1px solid #e5ecf1;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

body[data-page-layout="feature-tiles"] .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0c4466, #1a6b9c);
}

body[data-page-layout="feature-tiles"] .card:hover {
  background: #f0f7ff;
}

body[data-page-layout="feature-tiles"] .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

body[data-page-layout="feature-tiles"] .card-meta {
  margin-top: 1rem;
}

body[data-page-layout="feature-tiles"] .two-column {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5ecf1;
}

body[data-page-layout="feature-tiles"] .stacked-list li {
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

body[data-page-layout="feature-tiles"] .stacked-list li:hover {
  border-left-color: #0c4466;
  background: #fff;
}


/* ─── Services: Alternating ────────────────────────────────────────── */
/* NEW: full-width zigzag rows with direction reversal per card,
        large card format with thumbnail prominence */

body[data-page-layout="alternating"] .cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body[data-page-layout="alternating"] .card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
}

body[data-page-layout="alternating"] .card:nth-child(even) {
  direction: rtl;
}

body[data-page-layout="alternating"] .card:nth-child(even) > * {
  direction: ltr;
}

body[data-page-layout="alternating"] .card-thumb {
  height: 200px;
  border-radius: 10px;
}

body[data-page-layout="alternating"] .card:nth-child(odd) {
  background: #f8fafc;
}

body[data-page-layout="alternating"] .card-title {
  font-size: 1.2rem;
}

body[data-page-layout="alternating"] .two-column {
  margin-top: 1rem;
}


/* ─── Services: Process Focus ──────────────────────────────────────── */
/* NEW: timeline dots on process steps, smaller service cards */

body[data-page-layout="process-focus"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

body[data-page-layout="process-focus"] .card {
  padding: 1rem;
}

body[data-page-layout="process-focus"] .two-column {
  gap: 2.5rem;
}

body[data-page-layout="process-focus"] .two-column .lead {
  font-size: 1.15rem;
}

body[data-page-layout="process-focus"] .stacked-list {
  position: relative;
  padding-left: 2rem;
}

body[data-page-layout="process-focus"] .stacked-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0c4466 0%, rgba(12, 68, 102, 0.15) 100%);
}

body[data-page-layout="process-focus"] .stacked-list li {
  position: relative;
  padding: 1rem 1.25rem 1rem 0;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5ecf1;
  border-radius: 0;
}

body[data-page-layout="process-focus"] .stacked-list li::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0c4466;
  z-index: 1;
}

body[data-page-layout="process-focus"] .stacked-list li:last-child {
  border-bottom: none;
}


/* ─── Portfolio: Gallery Large ─────────────────────────────────────── */

body[data-page-layout="gallery-large"] .cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

body[data-page-layout="gallery-large"] .card img.card-thumb {
  height: 280px;
}

body[data-page-layout="gallery-large"] .card {
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

body[data-page-layout="gallery-large"] .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

body[data-page-layout="gallery-large"] .gallery {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

body[data-page-layout="gallery-large"] .gallery img {
  height: 300px;
}


/* ─── Portfolio: Masonry ───────────────────────────────────────────── */

body[data-page-layout="masonry"] .cards {
  display: block;
  column-width: 260px;
  column-gap: 1rem;
}

body[data-page-layout="masonry"] .cards .card {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: inline-block;
  width: 100%;
}

body[data-page-layout="masonry"] .gallery {
  display: block;
  column-width: 220px;
  column-gap: 0.75rem;
}

body[data-page-layout="masonry"] .gallery img {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  height: auto;
}


/* ─── Portfolio: Spotlight ─────────────────────────────────────────── */
/* NEW: first card spans full width in horizontal layout with featured
        badge, remaining cards form a compact grid */

body[data-page-layout="spotlight"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

body[data-page-layout="spotlight"] .cards .card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #0c4466;
  position: relative;
}

body[data-page-layout="spotlight"] .cards .card:first-child::after {
  content: '\2605  Featured';
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0c4466;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
}

body[data-page-layout="spotlight"] .cards .card:first-child .card-thumb {
  height: 240px;
  border-radius: 10px;
}

body[data-page-layout="spotlight"] .cards .card:first-child .card-title {
  font-size: 1.4rem;
}

body[data-page-layout="spotlight"] .card {
  transition: transform 0.2s;
}

body[data-page-layout="spotlight"] .card:hover {
  transform: translateY(-3px);
}


/* ─── Portfolio: Filmstrip ─────────────────────────────────────────── */
/* NEW: horizontal scroll with snap, sprocket-style top/bottom borders,
        fixed-width cards */

body[data-page-layout="filmstrip"] .cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

body[data-page-layout="filmstrip"] .cards .card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

body[data-page-layout="filmstrip"] .card img.card-thumb {
  height: 220px;
}

body[data-page-layout="filmstrip"] .section .cards {
  border-top: 4px solid #0c1116;
  border-bottom: 4px solid #0c1116;
  margin-top: 1rem;
}

body[data-page-layout="filmstrip"] .section-header {
  position: relative;
}

body[data-page-layout="filmstrip"] .section-header::after {
  content: '\2192  Scroll to explore';
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}


/* ─── Products: Full Grid ──────────────────────────────────────────── */

body[data-page-layout="full-grid"] .storefront-wrapper {
  grid-template-columns: 1fr;
}

body[data-page-layout="full-grid"] .sidebar {
  display: none;
}

body[data-page-layout="full-grid"] .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}


/* ─── Products: Compact Grid ──────────────────────────────────────── */

body[data-page-layout="compact-grid"] .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

body[data-page-layout="compact-grid"] .product-card {
  padding: 0.75rem;
}

body[data-page-layout="compact-grid"] .product-image {
  height: 120px;
}


/* ─── Products: Large Cards ────────────────────────────────────────── */

body[data-page-layout="large-cards"] .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

body[data-page-layout="large-cards"] .product-image {
  height: 240px;
}

body[data-page-layout="large-cards"] .product-card {
  transition: transform 0.25s, box-shadow 0.25s;
}

body[data-page-layout="large-cards"] .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

body[data-page-layout="large-cards"] .cards {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

body[data-page-layout="large-cards"] .card {
  padding: 2rem;
}

body[data-page-layout="large-cards"] .card-title {
  font-size: 1.2rem;
}

body[data-page-layout="large-cards"] .card img.card-thumb {
  height: 220px;
}


/* ─── Products: List View ──────────────────────────────────────────── */

body[data-page-layout="list-view"] .products-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

body[data-page-layout="list-view"] .product-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  transition: background 0.15s;
}

body[data-page-layout="list-view"] .product-card:hover {
  background: #f8fafc;
}

body[data-page-layout="list-view"] .product-image {
  height: 80px;
  border-radius: 6px;
}

body[data-page-layout="list-view"] .product-info {
  text-align: left;
}

body[data-page-layout="list-view"] .product-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}


/* ─── Products: Showcase ───────────────────────────────────────────── */
/* NEW: featured badge on first product, gallery-style grid,
        hover zoom on product images */

body[data-page-layout="showcase"] .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

body[data-page-layout="showcase"] .product-card {
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

body[data-page-layout="showcase"] .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

body[data-page-layout="showcase"] .product-image {
  transition: transform 0.35s;
}

body[data-page-layout="showcase"] .product-card:hover .product-image {
  transform: scale(1.05);
}

body[data-page-layout="showcase"] .product-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #0c4466;
  position: relative;
}

body[data-page-layout="showcase"] .product-card:first-child::after {
  content: '\2605  Featured';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0c4466;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

body[data-page-layout="showcase"] .product-card:first-child .product-image {
  height: 220px;
}


/* ─── Team: Large Profiles ─────────────────────────────────────────── */

body[data-page-layout="large-profiles"] .cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

body[data-page-layout="large-profiles"] .card {
  padding: 2rem;
  border-top: 3px solid #0c4466;
  border-radius: 0 0 12px 12px;
}

body[data-page-layout="large-profiles"] .card-title {
  font-size: 1.3rem;
}

body[data-page-layout="large-profiles"] .card-body {
  font-size: 1rem;
  line-height: 1.6;
}


/* ─── Manager: Photo Focus ─────────────────────────────────────────── */

body[data-page-layout="photo-focus"] .hero {
  grid-template-columns: 2fr 3fr;
}

body[data-page-layout="photo-focus"] .hero-media {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

body[data-page-layout="photo-focus"] .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── Manager: Card Profile ────────────────────────────────────────── */
/* NEW: profile details as individual info cards with accent top borders,
        grid layout for multiple info blocks */

body[data-page-layout="card-profile"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="card-profile"] .stacked-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

body[data-page-layout="card-profile"] .stacked-list li {
  background: #fff;
  border: 1px solid #e5ecf1;
  border-top: 3px solid #0c4466;
  border-radius: 0 0 10px 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

body[data-page-layout="card-profile"] .stacked-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body[data-page-layout="card-profile"] .lead {
  font-style: italic;
  border-left: 3px solid #0c4466;
  padding-left: 1.25rem;
}

body[data-page-layout="card-profile"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="card-profile"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="card-profile"] .hero-media {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
}


/* ─── Job App: Card Form ───────────────────────────────────────────── */
/* NEW: each form section as a distinct card with shadow and accent top,
        transparent form wrapper */

body[data-page-layout="card-form"] .application-form {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

body[data-page-layout="card-form"] .form-section {
  background: #fff;
  border: 1px solid #e5ecf1;
  border-top: 3px solid #0c4466;
  border-radius: 0 0 12px 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body[data-page-layout="card-form"] .form-section-title {
  font-size: 1.1rem;
  color: #0c4466;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5ecf1;
}


/* ─── Job App: Modern ──────────────────────────────────────────────── */
/* NEW: underline-only inputs, hidden hero image, centred narrow form,
        contemporary divider sections */

body[data-page-layout="modern"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="modern"] .hero-media {
  display: none;
}

body[data-page-layout="modern"] .hero-cta {
  display: none;
}

body[data-page-layout="modern"] .application-form {
  max-width: 720px;
  margin: 0 auto;
}

body[data-page-layout="modern"] .form-section {
  padding: 2rem 0;
  border-bottom: 1px solid #e5ecf1;
}

body[data-page-layout="modern"] .form-section:last-of-type {
  border-bottom: none;
}

body[data-page-layout="modern"] input[type="text"],
body[data-page-layout="modern"] input[type="email"],
body[data-page-layout="modern"] input[type="tel"],
body[data-page-layout="modern"] input[type="url"],
body[data-page-layout="modern"] input[type="number"],
body[data-page-layout="modern"] select,
body[data-page-layout="modern"] textarea {
  border: none;
  border-bottom: 2px solid #d0d7e0;
  border-radius: 0;
  padding: 0.75rem 0.25rem;
  background: transparent;
  transition: border-color 0.2s ease;
}

body[data-page-layout="modern"] input:focus,
body[data-page-layout="modern"] select:focus,
body[data-page-layout="modern"] textarea:focus {
  border-bottom-color: #0c4466;
  box-shadow: none;
  outline: none;
}

body[data-page-layout="modern"] .form-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}


/* ─── Job App: Stepped ─────────────────────────────────────────────── */
/* NEW: numbered circles on each section via CSS counter,
        connector line between steps */

body[data-page-layout="stepped"] .application-form {
  counter-reset: form-step;
}

body[data-page-layout="stepped"] .form-section {
  counter-increment: form-step;
  position: relative;
  padding-left: 3.5rem;
}

body[data-page-layout="stepped"] .form-section::before {
  content: counter(form-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #0c4466;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

body[data-page-layout="stepped"] .form-section + .form-section {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

body[data-page-layout="stepped"] .form-section::after {
  content: '';
  position: absolute;
  left: calc(1.1rem - 1px);
  top: 2.4rem;
  bottom: -1.5rem;
  width: 2px;
  background: rgba(12, 68, 102, 0.15);
}

body[data-page-layout="stepped"] .form-section:last-of-type::after {
  display: none;
}


/* ─── Coming Soon: Full Screen ─────────────────────────────────────── */

body[data-page-layout="full-screen"] main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

body[data-page-layout="full-screen"] main .container {
  text-align: center;
  max-width: 700px;
}

body[data-page-layout="full-screen"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="full-screen"] .hero-media {
  max-width: 480px;
  margin: 0 auto;
}

body[data-page-layout="full-screen"] .hero-cta {
  justify-content: center;
}


/* ─── Coming Soon: Countdown ───────────────────────────────────────── */
/* NEW: dark immersive background, oversized dramatic typography,
        animated pulsing dot, blue accent badges */

body[data-page-layout="countdown"] main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  background: #0c1116;
  padding: 2rem;
  margin: -2.5rem -1.5rem -3rem;
}

body[data-page-layout="countdown"] main .container {
  text-align: center;
  max-width: 700px;
}

body[data-page-layout="countdown"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-page-layout="countdown"] .hero-media {
  display: none;
}

body[data-page-layout="countdown"] .hero-title {
  color: #fff;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  display: inline-block;
}

body[data-page-layout="countdown"] .hero-title::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #60a5fa;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: super;
  animation: pl-pulse-dot 2s ease-in-out infinite;
}

@keyframes pl-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

body[data-page-layout="countdown"] .hero-tagline {
  color: #9ca3af;
  font-size: 1.15rem;
}

body[data-page-layout="countdown"] .hero-badge {
  background: rgba(96, 165, 250, 0.15);
}

body[data-page-layout="countdown"] .hero-badge span {
  color: #60a5fa;
}

body[data-page-layout="countdown"] .hero-cta {
  justify-content: center;
}

body[data-page-layout="countdown"] .hero-cta .btn-primary {
  background: #60a5fa;
  color: #0c1116;
}

body[data-page-layout="countdown"] .hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body[data-page-layout="countdown"] .section {
  color: #e5ecf1;
}

body[data-page-layout="countdown"] .section-label,
body[data-page-layout="countdown"] .section-title {
  color: #fff;
}

body[data-page-layout="countdown"] .lead {
  color: #9ca3af;
}

body[data-page-layout="countdown"] .muted {
  color: #586069;
}


/* ─── Coordinating Change: Gallery Focus ───────────────────────────── */

body[data-page-layout="gallery-focus"] .gallery {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

body[data-page-layout="gallery-focus"] .gallery img {
  height: 280px;
  transition: transform 0.3s;
  cursor: pointer;
}

body[data-page-layout="gallery-focus"] .gallery img:hover {
  transform: scale(1.03);
}

body[data-page-layout="gallery-focus"] .two-column {
  gap: 1rem;
}


/* ─── Coordinating Change: Story Flow ──────────────────────────────── */

body[data-page-layout="story-flow"] .two-column {
  grid-template-columns: 1fr;
}

body[data-page-layout="story-flow"] main .container {
  max-width: 760px;
}

body[data-page-layout="story-flow"] .gallery {
  grid-template-columns: 1fr;
}

body[data-page-layout="story-flow"] .gallery img {
  height: auto;
  max-height: 400px;
  width: 100%;
}


/* ─── Coordinating Change: Wide Gallery ────────────────────────────── */

body[data-page-layout="wide-gallery"] .gallery {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

body[data-page-layout="wide-gallery"] .gallery img {
  height: 240px;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

body[data-page-layout="wide-gallery"] .gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}


/* ─── Comp Sale: Split Feature ─────────────────────────────────────── */
/* NEW: gradient accent sidebar on overview, interactive list hover,
        elevated two-column container */

body[data-page-layout="split-feature"] .two-column {
  position: relative;
  background: #f8fafc;
  padding: 2.5rem 2rem 2.5rem 3rem;
  border-radius: 12px;
  overflow: hidden;
}

body[data-page-layout="split-feature"] .two-column::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #0c4466 0%, #1a6b9c 100%);
}

body[data-page-layout="split-feature"] .section-header {
  margin-bottom: 1.5rem;
}

body[data-page-layout="split-feature"] .hero {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

body[data-page-layout="split-feature"] .stacked-list li {
  border-left: 3px solid transparent;
  transition: border-color 0.2s, padding-left 0.2s;
}

body[data-page-layout="split-feature"] .stacked-list li:hover {
  border-left-color: #0c4466;
  padding-left: 1.25rem;
}

body[data-page-layout="split-feature"] .lead {
  font-size: 1.05rem;
  color: #374151;
}


/* =====================================================================
   SECTION 4 – RESPONSIVE OVERRIDES
   ===================================================================== */

@media (max-width: 880px) {

  /* Hero Banner */
  body[data-page-layout="hero-banner"] .hero {
    min-height: 320px;
    padding: 2rem 1.5rem;
  }

  /* Split – remove colour panel */
  body[data-page-layout="split"] .hero {
    grid-template-columns: 1fr;
  }
  body[data-page-layout="split"] .hero::before {
    display: none;
  }
  body[data-page-layout="split"] .section:nth-child(even) {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.5rem 1rem;
  }

  /* Photo Focus */
  body[data-page-layout="photo-focus"] .hero {
    grid-template-columns: 1fr;
  }

  /* Split Screen contact */
  body[data-page-layout="split-screen"] .contact-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
  }
  body[data-page-layout="split-screen"] .contact-grid > *:first-child {
    border-radius: 12px;
    padding: 2rem 1.5rem;
  }

  /* Card Mosaic */
  body[data-page-layout="card-mosaic"] .cards {
    grid-template-columns: 1fr;
  }
  body[data-page-layout="card-mosaic"] .cards .card:nth-child(1) {
    grid-column: span 1;
  }
  body[data-page-layout="card-mosaic"] .cards .card:nth-child(3) {
    grid-row: span 1;
  }

  /* Gallery Large */
  body[data-page-layout="gallery-large"] .cards,
  body[data-page-layout="gallery-large"] .gallery {
    grid-template-columns: 1fr;
  }

  /* Large Profiles */
  body[data-page-layout="large-profiles"] .cards {
    grid-template-columns: 1fr;
  }

  /* Spotlight */
  body[data-page-layout="spotlight"] .cards .card:first-child {
    grid-template-columns: 1fr;
  }

  /* Filmstrip */
  body[data-page-layout="filmstrip"] .cards .card {
    flex: 0 0 260px;
  }

  /* List View */
  body[data-page-layout="list-view"] .product-card {
    grid-template-columns: 80px 1fr;
  }
  body[data-page-layout="list-view"] .product-footer {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
  }

  /* Products Showcase */
  body[data-page-layout="showcase"] .product-card:first-child {
    grid-template-columns: 1fr;
  }

  /* Stepped form */
  body[data-page-layout="stepped"] .form-section {
    padding-left: 2.5rem;
  }

  /* Alternating services */
  body[data-page-layout="alternating"] .card {
    grid-template-columns: 1fr;
  }
  body[data-page-layout="alternating"] .card:nth-child(even) {
    direction: ltr;
  }

  /* Split Feature */
  body[data-page-layout="split-feature"] .hero {
    grid-template-columns: 1fr;
  }

  /* Card Profile */
  body[data-page-layout="card-profile"] .stacked-list {
    grid-template-columns: 1fr;
  }
  body[data-page-layout="card-profile"] .hero-media {
    max-width: 280px;
  }

  /* Magazine */
  body[data-page-layout="magazine"] .cards {
    grid-template-columns: 1fr;
  }
  body[data-page-layout="magazine"] .cards .card:first-child {
    grid-row: span 1;
  }

  /* Dark Accent */
  body[data-page-layout="dark-accent"] .section:nth-child(odd) {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2rem 1rem;
  }

  /* Dashboard */
  body[data-page-layout="dashboard"] .hero {
    padding: 1.5rem;
  }

  /* Countdown */
  body[data-page-layout="countdown"] main {
    margin: -1.25rem -1rem -2rem;
  }
}
