/* ==========================================================================
   PIVTIL Theme — Main Stylesheet
   Centre of Excellence in Interior Craftsmanship & Entrepreneurial Skills
   ========================================================================== */

/* Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors — from corporate profile */
    --pivtil-navy: #1a2856;
    --pivtil-navy-deep: #0f1838;
    --pivtil-navy-light: #2a3a6e;
    --pivtil-gold: #c9a227;
    --pivtil-gold-light: #d9b441;
    --pivtil-gold-dark: #a8861d;
    --pivtil-cream: #faf6ed;
    --pivtil-warm-white: #fdfbf5;
    --pivtil-charcoal: #1a1a1a;
    --pivtil-gray-900: #2d2d2d;
    --pivtil-gray-700: #4a4a4a;
    --pivtil-gray-500: #7a7a7a;
    --pivtil-gray-300: #c9c9c9;
    --pivtil-gray-100: #f3f0e8;
    --pivtil-white: #ffffff;

    /* Typography */
    --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-accent: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Type Scale (fluid) */
    --fs-xs: clamp(0.75rem, 0.7vw + 0.6rem, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.4vw + 0.75rem, 1rem);
    --fs-base: clamp(1rem, 0.4vw + 0.875rem, 1.125rem);
    --fs-lg: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
    --fs-xl: clamp(1.25rem, 0.8vw + 1rem, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.5vw + 1rem, 2rem);
    --fs-3xl: clamp(2rem, 2.5vw + 1rem, 2.75rem);
    --fs-4xl: clamp(2.5rem, 3.5vw + 1rem, 3.75rem);
    --fs-5xl: clamp(3rem, 5vw + 1rem, 5rem);
    --fs-6xl: clamp(3.5rem, 6vw + 1rem, 6.5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --space-10: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);

    /* Borders & Shadows */
    --border-thin: 1px solid var(--pivtil-gray-300);
    --border-gold: 2px solid var(--pivtil-gold);
    --shadow-sm: 0 2px 8px rgba(26, 40, 86, 0.08);
    --shadow-md: 0 8px 24px rgba(26, 40, 86, 0.12);
    --shadow-lg: 0 20px 50px rgba(26, 40, 86, 0.18);
    --shadow-gold: 0 8px 30px rgba(201, 162, 39, 0.25);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition: 350ms var(--ease-smooth);

    /* Header height */
    --header-height: 88px;
}

/* Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--pivtil-gray-900);
    background: var(--pivtil-warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--pivtil-navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--pivtil-gold-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--pivtil-navy);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-5xl); font-weight: 700; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pivtil-gold-dark);
    margin-bottom: var(--space-4);
    display: inline-block;
    position: relative;
    padding-left: 50px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1px;
    background: var(--pivtil-gold);
}

.eyebrow.eyebrow--center {
    padding-left: 0;
    padding-bottom: var(--space-3);
}

.eyebrow.eyebrow--center::before {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 600;
    color: var(--pivtil-navy);
    margin-bottom: var(--space-5);
    line-height: 1.1;
}

.section-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--pivtil-gold-dark);
}

.lead {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--pivtil-gray-700);
    max-width: 65ch;
}

/* Layout
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
}

.section--dark {
    background: var(--pivtil-navy);
    color: var(--pivtil-cream);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
    color: var(--pivtil-warm-white);
}

.section--dark .eyebrow {
    color: var(--pivtil-gold-light);
}

.section--cream {
    background: var(--pivtil-cream);
}

.section--gold-band {
    background: linear-gradient(135deg, var(--pivtil-gold) 0%, var(--pivtil-gold-light) 100%);
    color: var(--pivtil-navy-deep);
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    line-height: 1;
}

.btn--primary {
    background: var(--pivtil-gold);
    color: var(--pivtil-navy-deep);
    border-color: var(--pivtil-gold);
}

.btn--primary:hover {
    background: var(--pivtil-gold-dark);
    border-color: var(--pivtil-gold-dark);
    color: var(--pivtil-warm-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn--ghost {
    background: transparent;
    color: var(--pivtil-warm-white);
    border-color: var(--pivtil-warm-white);
}

.btn--ghost:hover {
    background: var(--pivtil-warm-white);
    color: var(--pivtil-navy);
}

.btn--navy {
    background: var(--pivtil-navy);
    color: var(--pivtil-warm-white);
    border-color: var(--pivtil-navy);
}

.btn--navy:hover {
    background: var(--pivtil-navy-deep);
    border-color: var(--pivtil-gold);
    color: var(--pivtil-gold-light);
}

.btn .arrow {
    transition: transform var(--transition);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: var(--space-4) 0;
    transition: all 400ms var(--ease-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(26, 40, 86, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 162, 39, 0.15);
    padding: var(--space-3) 0;
}

body:not(.pivtil-home) .site-header {
    background: var(--pivtil-navy);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.site-logo-mark {
    width: 48px;
    height: 48px;
    background: var(--pivtil-gold);
    color: var(--pivtil-navy-deep);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
    flex-shrink: 0;
    transform: rotate(45deg);
    position: relative;
}

.site-logo-mark span {
    transform: rotate(-45deg);
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pivtil-warm-white);
    letter-spacing: 0.02em;
}

.site-title-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pivtil-gold-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Custom logo image */
.custom-logo {
    max-height: 56px;
    width: auto;
}

/* Primary Nav
   ========================================================================== */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.primary-nav a {
    color: var(--pivtil-warm-white);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition);
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--pivtil-gold);
    transition: width 350ms var(--ease-out-expo);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: var(--pivtil-gold-light);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
    width: 100%;
}

.header-cta {
    margin-left: var(--space-4);
}

.header-cta .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--pivtil-warm-white);
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: all 300ms var(--ease-smooth);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: all 300ms var(--ease-smooth);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top: 7px; }

.menu-toggle.is-active span { background: transparent; }
.menu-toggle.is-active span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active span::after  { transform: rotate(-45deg); top: 0; }

/* Hero — Video Background
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--pivtil-warm-white);
    padding-top: var(--header-height);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 24, 56, 0.55) 0%, rgba(15, 24, 56, 0.7) 60%, rgba(15, 24, 56, 0.95) 100%),
        radial-gradient(ellipse at 20% 30%, rgba(201, 162, 39, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-9) 0 var(--space-10);
}

.hero-eyebrow {
    color: var(--pivtil-gold-light);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-eyebrow::before {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--pivtil-gold);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-6xl);
    font-weight: 700;
    line-height: 1.0;
    color: var(--pivtil-warm-white);
    margin-bottom: var(--space-5);
    max-width: 18ch;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--pivtil-gold-light);
    display: block;
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: var(--fs-2xl);
    font-style: italic;
    font-weight: 400;
    color: var(--pivtil-gold-light);
    margin-bottom: var(--space-5);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-description {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: rgba(253, 251, 245, 0.85);
    margin-bottom: var(--space-7);
    max-width: 56ch;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.8s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1s forwards;
}

.hero-meta {
    position: absolute;
    bottom: var(--space-6);
    left: 0;
    right: 0;
    z-index: 2;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
    padding-top: var(--space-5);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.hero-meta-item {
    color: var(--pivtil-warm-white);
}

.hero-meta-number {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--pivtil-gold-light);
    line-height: 1;
    margin-bottom: var(--space-2);
    display: block;
}

.hero-meta-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 251, 245, 0.7);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Story / Origin Section
   ========================================================================== */
.story-section {
    background: var(--pivtil-warm-white);
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.story-content .lead {
    margin-bottom: var(--space-5);
}

.story-quote {
    border-left: 3px solid var(--pivtil-gold);
    padding: var(--space-4) var(--space-5);
    margin: var(--space-6) 0;
    background: var(--pivtil-cream);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: var(--fs-xl);
    line-height: 1.5;
    color: var(--pivtil-navy);
}

.story-quote cite {
    display: block;
    margin-top: var(--space-3);
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--pivtil-gray-700);
    letter-spacing: 0.05em;
}

.story-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-7);
    background: var(--pivtil-navy);
    color: var(--pivtil-warm-white);
    position: relative;
}

.story-stats::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 24px;
    bottom: 24px;
    border: 2px solid var(--pivtil-gold);
    z-index: -1;
}

.story-stat {
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    padding-bottom: var(--space-5);
}

.story-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.story-stat-number {
    font-family: var(--font-display);
    font-size: var(--fs-5xl);
    font-weight: 700;
    color: var(--pivtil-gold-light);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
}

.story-stat-label {
    font-size: var(--fs-sm);
    color: rgba(253, 251, 245, 0.85);
    line-height: 1.5;
}

/* Programs Grid
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-8);
}

.section-header .lead {
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.program-card {
    background: var(--pivtil-warm-white);
    padding: var(--space-7) var(--space-6);
    border: 1px solid var(--pivtil-gray-300);
    transition: all 400ms var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--pivtil-gold);
    transition: width 400ms var(--ease-out-expo);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--pivtil-gold);
}

.program-card:hover::before {
    width: 100%;
}

.program-card-number {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--pivtil-gold);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.program-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
    color: var(--pivtil-navy);
}

.program-card p {
    color: var(--pivtil-gray-700);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* Values / Why Us
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.value-card {
    text-align: left;
    padding: var(--space-5) 0;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--pivtil-gold-light);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-4);
    border: 1px solid var(--pivtil-gold);
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-card h4 {
    font-size: var(--fs-lg);
    color: var(--pivtil-warm-white);
    margin-bottom: var(--space-2);
}

.value-card p {
    color: rgba(253, 251, 245, 0.75);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* Products Grid
   ========================================================================== */
.products-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-7);
}

.product-category {
    background: var(--pivtil-cream);
    padding: var(--space-7) var(--space-6);
    border-top: 4px solid var(--pivtil-gold);
    transition: transform var(--transition);
}

.product-category:hover {
    transform: translateY(-4px);
}

.product-category h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-4);
    color: var(--pivtil-navy);
    font-family: var(--font-display);
}

.product-category ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.product-category li {
    color: var(--pivtil-gray-700);
    font-size: var(--fs-sm);
    padding-left: var(--space-4);
    position: relative;
    line-height: 1.5;
}

.product-category li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 1px;
    background: var(--pivtil-gold);
}

.products-banner {
    text-align: center;
    padding: var(--space-5);
    background: var(--pivtil-navy);
    color: var(--pivtil-gold-light);
    margin-top: var(--space-6);
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Partnership / MOU Highlight
   ========================================================================== */
.mou-section {
    background: var(--pivtil-navy);
    color: var(--pivtil-cream);
    position: relative;
    overflow: hidden;
}

.mou-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.mou-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.mou-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    align-items: start;
    position: relative;
    z-index: 1;
}

.mou-objectives {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mou-objectives li {
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--pivtil-gold);
    color: rgba(253, 251, 245, 0.9);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.mou-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--pivtil-gold);
    color: var(--pivtil-navy-deep);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

/* Facilities List
   ========================================================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-7);
}

.facility-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--pivtil-warm-white);
    border: 1px solid var(--pivtil-gray-300);
    transition: all var(--transition);
}

.facility-item:hover {
    border-color: var(--pivtil-gold);
    box-shadow: var(--shadow-sm);
}

.facility-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--pivtil-cream);
    color: var(--pivtil-gold-dark);
    display: grid;
    place-items: center;
    border: 1px solid var(--pivtil-gold);
}

.facility-icon svg {
    width: 22px;
    height: 22px;
}

.facility-content h4 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-2);
    color: var(--pivtil-navy);
}

.facility-content p {
    font-size: var(--fs-sm);
    color: var(--pivtil-gray-700);
    line-height: 1.6;
}

/* Founder Section
   ========================================================================== */
.founder-section {
    background: var(--pivtil-cream);
    position: relative;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-9);
    align-items: center;
}

.founder-image {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--pivtil-navy) 0%, var(--pivtil-navy-deep) 100%);
    position: relative;
    overflow: hidden;
}

.founder-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--pivtil-gold);
    z-index: -1;
}

.founder-image-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--pivtil-gold);
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    opacity: 0.2;
}

.founder-name {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    color: var(--pivtil-navy);
    margin-bottom: var(--space-2);
}

.founder-role {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--pivtil-gold-dark);
    margin-bottom: var(--space-5);
    letter-spacing: 0.03em;
}

.founder-bio p {
    margin-bottom: var(--space-4);
    color: var(--pivtil-gray-700);
    line-height: 1.75;
}

/* CTA Band
   ========================================================================== */
.cta-band {
    background:
        linear-gradient(135deg, rgba(15, 24, 56, 0.92) 0%, rgba(26, 40, 86, 0.85) 100%),
        radial-gradient(ellipse at top right, var(--pivtil-gold-dark) 0%, transparent 60%);
    color: var(--pivtil-warm-white);
    text-align: center;
    padding: var(--space-9) 0;
}

.cta-band h2 {
    color: var(--pivtil-warm-white);
    max-width: 20ch;
    margin: 0 auto var(--space-5);
}

.cta-band h2 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--pivtil-gold-light);
}

.cta-band p {
    color: rgba(253, 251, 245, 0.8);
    max-width: 60ch;
    margin: 0 auto var(--space-6);
    font-size: var(--fs-lg);
}

/* Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-8);
}

.contact-info-card {
    background: var(--pivtil-navy);
    color: var(--pivtil-cream);
    padding: var(--space-7);
    position: relative;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--pivtil-gold);
    border-left: 2px solid var(--pivtil-gold);
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--pivtil-gold);
    border-right: 2px solid var(--pivtil-gold);
}

.contact-info-card h3 {
    color: var(--pivtil-warm-white);
    margin-bottom: var(--space-5);
    font-size: var(--fs-2xl);
}

.contact-detail {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.contact-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-detail-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pivtil-gold-light);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.contact-detail-value {
    font-size: var(--fs-base);
    color: var(--pivtil-warm-white);
    line-height: 1.5;
}

.contact-detail-value a {
    color: var(--pivtil-warm-white);
    border-bottom: 1px solid rgba(201, 162, 39, 0.4);
    padding-bottom: 2px;
    transition: all var(--transition);
}

.contact-detail-value a:hover {
    color: var(--pivtil-gold-light);
    border-bottom-color: var(--pivtil-gold-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.contact-form label {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pivtil-navy);
    margin-bottom: var(--space-2);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--pivtil-gray-300);
    background: var(--pivtil-warm-white);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--pivtil-charcoal);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--pivtil-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Page Header (non-home)
   ========================================================================== */
.page-header {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background:
        linear-gradient(135deg, var(--pivtil-navy) 0%, var(--pivtil-navy-deep) 100%);
    color: var(--pivtil-warm-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 50%;
    transform: translateY(-50%);
}

.page-header h1 {
    color: var(--pivtil-warm-white);
    margin-bottom: var(--space-3);
    font-size: var(--fs-5xl);
}

.page-header em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--pivtil-gold-light);
}

.page-header p {
    color: rgba(253, 251, 245, 0.8);
    max-width: 60ch;
    margin: 0 auto;
    font-size: var(--fs-lg);
}

.breadcrumbs {
    margin-top: var(--space-5);
    font-size: var(--fs-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(253, 251, 245, 0.6);
}

.breadcrumbs a {
    color: var(--pivtil-gold-light);
}

/* Footer
   ========================================================================== */
.site-footer {
    background: var(--pivtil-navy-deep);
    color: rgba(253, 251, 245, 0.85);
    padding-top: var(--space-9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-7);
    padding-bottom: var(--space-8);
}

.footer-brand h3 {
    color: var(--pivtil-warm-white);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
}

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: rgba(253, 251, 245, 0.65);
    margin-bottom: var(--space-4);
}

.footer-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--pivtil-gold-light);
    font-size: var(--fs-base);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3) !important;
}

.footer-widget-title,
.site-footer h4 {
    color: var(--pivtil-warm-white);
    font-size: var(--fs-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-widget-title::after,
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--pivtil-gold);
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.site-footer ul a {
    color: rgba(253, 251, 245, 0.65);
    font-size: var(--fs-sm);
    transition: all var(--transition);
}

.site-footer ul a:hover {
    color: var(--pivtil-gold-light);
    padding-left: var(--space-2);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
    color: rgba(253, 251, 245, 0.65);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--pivtil-gold);
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(253, 251, 245, 0.85);
}

.footer-contact-item a:hover {
    color: var(--pivtil-gold-light);
}

.footer-bottom {
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-copyright {
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    color: rgba(253, 251, 245, 0.55);
}

.footer-developed-by {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    color: rgba(253, 251, 245, 0.55);
}

.footer-developed-by a {
    color: var(--pivtil-gold-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
    padding-bottom: 1px;
}

.footer-developed-by a:hover {
    color: var(--pivtil-gold);
    border-bottom-color: var(--pivtil-gold);
}

/* WordPress Default Content Styles
   ========================================================================== */
.entry-content {
    font-size: var(--fs-base);
    line-height: 1.75;
}

.entry-content > * + * {
    margin-top: var(--space-5);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
}

.entry-content blockquote {
    border-left: 3px solid var(--pivtil-gold);
    padding: var(--space-3) var(--space-5);
    background: var(--pivtil-cream);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: var(--fs-lg);
    margin: var(--space-6) 0;
}

.entry-content a {
    color: var(--pivtil-navy);
    text-decoration: underline;
    text-decoration-color: var(--pivtil-gold);
    text-underline-offset: 4px;
}

.entry-content ul,
.entry-content ol {
    padding-left: var(--space-5);
    margin-bottom: var(--space-5);
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: var(--space-2);
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: var(--space-4);
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 1px;
    background: var(--pivtil-gold);
}

/* Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .story-grid,
    .mou-grid,
    .founder-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .hero-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 88%;
        max-width: 380px;
        height: 100vh;
        height: 100svh;
        background: var(--pivtil-navy-deep);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem var(--space-6) var(--space-6);
        transition: right 400ms var(--ease-out-expo);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .primary-nav.is-open {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        align-items: flex-start;
    }

    .primary-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    }

    .primary-nav a {
        display: block;
        padding: var(--space-4) 0;
        font-size: var(--fs-lg);
        font-family: var(--font-display);
    }

    .header-cta {
        display: none;
    }

    .programs-grid,
    .products-categories,
    .facilities-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    /* Hero — let content flow naturally on mobile so stats don't overlap buttons */
    .hero {
        min-height: auto;
        padding-bottom: 0;
        display: block;
    }

    .hero-content {
        padding: var(--space-8) 0 var(--space-6);
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100svh - var(--header-height));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-meta {
        position: relative;
        bottom: auto;
        padding: var(--space-6) 0 var(--space-7);
        margin-top: var(--space-6);
        border-top: 1px solid rgba(201, 162, 39, 0.25);
    }

    .hero-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5) var(--space-4);
    }

    .hero-meta-number {
        font-size: var(--fs-2xl);
    }

    .hero-meta-label {
        line-height: 1.4;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .site-title-sub {
        display: none;
    }

    .site-title-main {
        font-size: 0.9rem;
    }

    .site-logo-mark {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: var(--space-2);
    }

    .btn {
        padding: 0.9rem 1.4rem;
    }

    .story-stats::before {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 24, 56, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 300ms var(--ease-smooth);
    }

    .menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--fs-5xl);
    }

    .hero-tagline {
        font-size: var(--fs-xl);
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-video {
        display: none;
    }

    .hero-video-wrap {
        background: linear-gradient(135deg, var(--pivtil-navy) 0%, var(--pivtil-navy-deep) 100%);
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .hero-video-wrap,
    .menu-toggle {
        display: none;
    }
}
