/* ================================================
   ABOUT PAGE - Gapan City Government
   ================================================ */

/* ---- Variables ---- */

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

:root {
    --navy:        #002855;
    --navy-mid:    #003a7a;
    --blue-accent: #1565C0;
    --gold:        #C9A227;
    --gold-light:  #f5e4a0;
    --text:        #1a1a2e;
    --text-muted:  #5a5a72;
    --bg:          #f5f8fc;
    --white:       #ffffff;
    --border:      #dde6f0;
    --shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.07);
    --shadow-md:   0 8px 32px rgba(0, 0, 0, 0.11);
    --shadow-lg:   0 16px 52px rgba(0, 0, 0, 0.16);
    --radius:      14px;
    --ease:        0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background: #ede5d8;
    background-image:
        repeating-linear-gradient(0deg, rgba(194,106,61,.025) 0, rgba(194,106,61,.025) 1px, transparent 1px, transparent 28px);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Layout util ---- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- Section labels ---- */
.section-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3.8vw, 40px);
    color: var(--navy);
    line-height: 1.22;
}

.section-header          { margin-bottom: 48px; }
.section-header.center   { text-align: center; }

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.mvv-card.reveal:nth-child(2) { transition-delay: 0.14s; }
.mvv-card.reveal:nth-child(3) { transition-delay: 0.28s; }


/* ================================================
   HERO BANNER
   ================================================ */
.about-hero {
    position: relative;
    height: 440px;
    background: linear-gradient(135deg, #001d4a 0%, var(--navy-mid) 55%, var(--blue-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.about-hero-eyebrow {
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 18px;
    display: block;
}

.about-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(44px, 7.5vw, 76px);
    color: #ffffff;
    line-height: 1.08;
    font-weight: 700;
}
.about-hero-title span { color: var(--gold); }

.about-hero-sub {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ================================================
   MAYOR'S MESSAGE
   ================================================ */
.mayor-section {
    padding: 88px 28px 80px;
}

.mayor-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
}

.mayor-photo-wrap {
    position: relative;
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 100%);
    min-height: 460px;
}

.mayor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mayor-body {
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mayor-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    color: var(--navy);
    margin: 6px 0 4px;
    line-height: 1.2;
}

.mayor-title-label {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.mayor-divider {
    width: 56px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 26px;
}

.mayor-body p {
    color: #383848;
    font-size: 15.5px;
    line-height: 1.82;
    margin-bottom: 14px;
}
.mayor-body p:last-child { margin-bottom: 0; }


/* ================================================
   HISTORY
   ================================================ */
.history-section {
    background: var(--white);
    padding: 80px 0 88px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.history-body {
    background: #f0f5ff;
    border-left: 5px solid var(--blue-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 40px 52px;
}

.history-body p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16.5px;
    line-height: 1.92;
    color: #2a2a40;
    margin-bottom: 18px;
    text-align: justify;
}
.history-body p:last-child { margin-bottom: 0; }


/* ================================================
   MISSION / VISION / CORE VALUES
   ================================================ */
.mvv-section {
    padding: 88px 0;
    background: linear-gradient(160deg, #eef4fb 0%, #f5f8fc 100%);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}

.mvv-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px 36px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--border);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    text-align: center;
    cursor: default;
}
.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--blue-accent);
}

.mvv-card.featured {
    border-top-color: var(--gold);
    background: linear-gradient(170deg, #fffcf0 0%, #ffffff 60%);
}
.mvv-card.featured:hover { border-top-color: var(--gold); }

.mvv-icon {
    font-size: 46px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.mvv-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 14px;
    position: relative;
}
.mvv-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.mvv-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.78;
    text-align: left;
}


/* ================================================
   VIDEO SECTION
   ================================================ */
.video-section {
    position: relative;
    height: 85vh;
    min-height: 480px;
    overflow: hidden;
}

.video-section iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,15,50,0.72) 0%, rgba(0,8,30,0.52) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

.video-inner {
    color: #fff;
    max-width: 720px;
}

.video-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 6vw, 64px);
    color: #ffffff;
    line-height: 1.14;
    margin: 12px 0 20px;
}
.video-title span { color: var(--gold); }

.video-inner p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
}

.btn-watch {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 14px 34px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background var(--ease), transform var(--ease), color var(--ease);
}
.btn-watch:hover {
    background: #ffffff;
    transform: scale(1.05);
}
.btn-watch:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
    .mayor-card {
        grid-template-columns: 1fr;
    }
    .mayor-photo-wrap {
        height: 360px;
        min-height: unset;
    }
    .mayor-body {
        padding: 40px 32px;
    }
    .history-body {
        padding: 30px 28px;
    }
    .about-hero {
        height: 360px;
    }
}

@media (max-width: 640px) {
    .mayor-section    { padding: 48px 16px 40px; }
    .history-section  { padding: 52px 0; }
    .mvv-section      { padding: 52px 0; }
    .about-hero       { height: 300px; }
    .about-hero-title { font-size: 38px; }
    .mayor-body       { padding: 28px 20px; }
    .history-body     { padding: 24px 20px; border-left-width: 3px; }
    .mvv-card         { padding: 32px 24px; }
    .video-section    { height: 70vh; }
}
