/* ==========================================================
   PARADE HOMES — PREMIUM INTERIOR PAGES CSS (DARK GLASS THEME)
   Replaces all light styling with the Homepage Glassmorphism UI
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --pg-navy: #0B2C4A;
    --pg-navy-deep: #071b2d;
    --pg-navy-light: #123e66;
    
    --pg-teal: #2F80ED;
    --pg-teal-mid: #2BB6C4;
    --pg-teal-dark: #1E62C1;
    --pg-accent: #8FD3F4;
    
    --pg-white: #ffffff;
    --pg-text: rgba(224, 234, 245, 0.85);
    --pg-text-muted: rgba(224, 234, 245, 0.65);
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(143, 211, 244, 0.3);
    
    --pg-radius-lg: 0px; /* Square edges as requested for the brand */
    --pg-shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.2);
    --pg-shadow-md: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ── GLOBAL BODY RESET ───────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    color: var(--pg-text);
    background: var(--pg-navy-deep);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADING OVERRIDES — Playfair Display & White ────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--pg-white) !important;
    line-height: 1.25;
}

/* Spans inside headings must also inherit Playfair Display.
   The generic span rule below would assign Inter, so we
   explicitly re-declare here with !important to win. */
h1 span, h2 span, h3 span, h4 span {
    font-family: 'Playfair Display', Georgia, serif !important;
}

p, li, span, a, label {
    font-family: 'Inter', sans-serif;
    color: var(--pg-text);
}

.text-muted { color: var(--pg-text-muted) !important; }

/* ── SECTION HEADERS: ALWAYS CENTRED ─────────────────────── */
/* Uses !important so inline style attributes cannot override. */
.section-header {
    text-align: center !important;
}
.section-header h2,
.section-header h3,
.section-header h4,
.section-header p,
.section-header .section-subtitle {
    text-align: center !important;
}

/* ── HERO H1: ENFORCE PLAYFAIR DISPLAY IN ALL HERO TYPES ─── */
.hero-internal h1,
.hero-internal-v2 h1,
.hero-square-premium h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    text-align: center;
}
.hero-internal h1 span,
.hero-internal-v2 h1 span,
.hero-square-premium h1 span {
    font-family: 'Playfair Display', Georgia, serif !important;
}

/* ── HERO CONTAINER: CENTRED CONTENT ─────────────────────── */
.hero-internal .container,
.hero-internal-v2 .container,
.hero-square-premium .container {
    text-align: center;
}
.hero-internal p,
.hero-internal-v2 p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── HERO INTERNAL GLOBALS ───────────────────────────────── */
.hero-internal {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--pg-navy);
    overflow: hidden;
}

.hero-internal .hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-internal .hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-internal .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 44, 74, 0.95) 0%, rgba(15, 57, 96, 0.85) 50%, rgba(47, 128, 237, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-internal .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-internal h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-internal p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 650px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.4rem;
    background: rgba(47, 128, 237, 0.18);
    border: 1px solid rgba(143, 211, 244, 0.4);
    backdrop-filter: blur(12px);
    color: var(--pg-accent) !important;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
}

/* ── SECTION FOUNDATIONS (DARK GLASS) ────────────────────── */
.section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--pg-navy-deep), var(--pg-navy));
    position: relative;
}

.section--alt {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0b253d, #0d3256) !important;
    position: relative;
}

/* Subtle accent glows for sections */
.section::before, .section--alt::before {
    content: '';
    position: absolute;
    top: 10%; left: -5%;
    width: 60vh; height: 60vh;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 10%; right: -5%;
    width: 50vh; height: 50vh;
    background: radial-gradient(circle, rgba(43, 182, 196, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section--teal {
    background: linear-gradient(135deg, var(--pg-navy), var(--pg-teal-light, #154573)) !important;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pg-accent) !important;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

/* ── GRID SYSTEM ─────────────────────────────────────────── */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── 2-COLUMN TEXT SPLIT ─────────────────────────────────── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.split-section .split-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.split-section .split-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.img-container {
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── THE GLASS CARD UNIVERSAL ────────────────────────────── */
.card, .ethos-card, .value-card-premium, .offer-card-premium, 
.journey-step-card, .wws-group-card, .sm-offer-card, .glance-box,
.programme-content-box, .stat-block, .sm-tl-card, .commitment-block {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    box-shadow: var(--pg-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card:hover, .ethos-card:hover, .value-card-premium:hover, 
.offer-card-premium:hover, .journey-step-card:hover, .wws-group-card:hover,
.sm-offer-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-highlight);
    transform: translateY(-5px);
    box-shadow: var(--pg-shadow-md), 0 0 20px rgba(47, 128, 237, 0.1);
}

/* Card Typography Overrides */
.card h3, .card h4, .card__title, .ethos-card h3, 
.value-card-premium h4, .offer-card-premium h4, 
.journey-card-content h4, .wws-group-body h3, .sm-tl-card h4, .sm-offer-body h3 {
    color: var(--pg-white) !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p, .card__text, .ethos-card p, .value-card-premium p, 
.offer-card-premium p, .journey-card-content p, .wws-group-body p, 
.sm-tl-card p, .programme-content-box p, .commitment-block p {
    color: var(--pg-text) !important;
    font-size: 0.95rem;
}

/* ── STYLED LIST ─────────────────────────────────────────── */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    font-size: 1rem;
    color: var(--pg-text) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-list li:last-child { border-bottom: none; }

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238FD3F4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

/* ── ICONS & MARKERS ─────────────────────────────────────── */
.value-icon-wrap, .offer-icon-wrap, .sm-offer-icon, .card__icon, .wws-group-icon {
    width: 56px; height: 56px;
    background: rgba(47, 128, 237, 0.15);
    border: 1px solid rgba(143, 211, 244, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-accent);
    margin-bottom: 1.5rem;
}

.value-icon-wrap svg, .offer-icon-wrap svg, .sm-offer-icon svg {
    width: 28px; height: 28px;
}

.value-number {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.1);
}

.journey-step-marker, .sm-tl-marker {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--pg-teal), var(--pg-teal-mid));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.4);
}

.journey-premium-container::before {
    background: rgba(255, 255, 255, 0.1);
    top: 25px;
}

.sm-tl-connector {
    background: rgba(47, 128, 237, 0.5);
    left: 24px;
}

/* ── HIGHLIGHT BOXES ─────────────────────────────────────── */
.highlight-box {
    background: rgba(47, 128, 237, 0.08);
    border-left: 4px solid var(--pg-accent);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.highlight-box--primary {
    background: rgba(43, 182, 196, 0.1);
    border-left: 4px solid var(--pg-teal-mid);
}

.highlight-box--warning {
    background: rgba(217, 119, 6, 0.1);
    border-left: 4px solid #d97706;
}

/* ── CTA BANNER (GLASS THEME) ────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #0f365c 0%, #154678 100%);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(47, 128, 237, 0.15) 0%, transparent 60%);
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 1.5rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pg-teal), var(--pg-teal-mid));
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pg-teal-dark), var(--pg-teal));
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(47, 128, 237, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(143, 211, 244, 0.5);
    transform: translateY(-2px);
}

/* ── SPECIFIC PAGE FIXES ─────────────────────────────────── */
.sm-staff-item {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    padding: 2rem;
}
.sm-staff-item:hover { background: var(--glass-bg-hover); }

.sm-staff-num, .wws-approach-num {
    font-family: 'Playfair Display', serif;
    color: var(--pg-accent);
}

.stat-number { color: var(--pg-accent) !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; gap: 3rem; }
    .journey-premium-container { grid-template-columns: 1fr; }
    .journey-premium-container::before { display: none; }
    .editorial-split { grid-template-columns: 1fr; gap: 2rem; }
    .ed-text-box { margin-left: 0 !important; margin-top: -3rem !important; }
}

@media (max-width: 580px) {
    .section, .section--alt { padding: 4rem 0; }
    .card, .ethos-card { padding: 1.5rem; }
    .cta-btn-group { flex-direction: column; }
    .hero-internal { padding: 8rem 0 4rem; min-height: 50vh; }
    .ed-grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================
   ABOUT PAGE — BESPOKE ARCHITECTURAL SQUARE CLASSES
   ========================================================== */
/* Strict Square Enforcement */
.btn, .card, .ethos-card, .value-card-premium, .offer-card-premium,
.journey-step-card, .glance-box, .stat-block, .img-container, 
.hero-badge, .cta-banner, .highlight-box, .glass-square, 
.ed-image-box, .ed-glass-caption {
    border-radius: 0 !important;
}

/* Editorial Overlap Component */
.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.ed-image-box {
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.ed-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating glass stat over image */
.ed-glass-caption {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: rgba(47, 128, 237, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(143, 211, 244, 0.4);
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 3;
}

.ed-stat {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--pg-white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ed-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pg-accent);
}

.ed-text-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    margin-left: -4rem; /* overlaps the image column */
    position: relative;
    z-index: 4;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.ed-text-box h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Internal Architecture Grid */
.ed-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px; /* seamless 1px glass border */
    background: rgba(255,255,255,0.1); /* acts as the border */
    border: 1px solid rgba(255,255,255,0.1);
}

.ed-grid-4 .card, .ed-grid-4 .value-card-premium {
    background: var(--pg-navy-deep); /* fill cell */
    border: none;
    box-shadow: none;
}

.ed-grid-4 .card:hover, .ed-grid-4 .value-card-premium:hover {
    background: var(--glass-bg-hover);
    transform: none; /* keep it flat structural */
    box-shadow: inset 0 0 40px rgba(47, 128, 237, 0.1);
}

.text-accent {
    color: var(--pg-accent) !important;
}

.square-btn {
    border-radius: 0 !important;
}