/* ============================================
   GOVERNMENT AFFAIRS - FORMAL DESIGN #038
   Navy + Official Red + Gold
   Theme: Public Sector Excellence
   ============================================ */

:root {
    --bg: #0B1629;
    --bg-secondary: #0D1929;
    --text: #F0EDE8;
    --dim: #8A96A5;
    --line: #1A2E4A;
    --accent: #B22234;
    --accent-dark: #8B0000;
    --gold: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --font: 'Libre Baskerville', serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(178, 34, 52, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.geometric-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
}

/* ============================================
   OFFICIAL SEAL
   ============================================ */

.official-seal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.official-seal svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 22, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.page-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-seal {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
}

.page-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.page-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.page-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.page-nav a:hover::after,
.page-nav a.active::after {
    width: 100%;
}

.page-nav a:hover,
.page-nav a.active {
    color: var(--gold);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23D4AF37' fill-opacity='0.4'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-eyebrow span {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.page-hero h1 {
    font-family: var(--font);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.page-hero h1 .accent {
    color: var(--accent);
    display: block;
}

.page-hero h1 .gold {
    color: var(--gold);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--dim);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-seal-large {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.08;
}

.hero-seal-large svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(178, 34, 52, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: var(--gold-dim);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.page-section {
    padding: 7rem 0;
    position: relative;
    border-top: 1px solid var(--line);
}

.page-section-alt {
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header h2 .accent {
    color: var(--accent);
}

.section-header h2 .gold {
    color: var(--gold);
}

.section-header p {
    color: var(--dim);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-divider .divider-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.section-divider .divider-seal {
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    transform: rotate(45deg);
}

/* ============================================
   CARDS
   ============================================ */

.page-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.page-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.page-card {
    background: linear-gradient(135deg, rgba(26, 46, 74, 0.3) 0%, rgba(13, 25, 41, 0.5) 100%);
    border: 1px solid var(--line);
    padding: 2.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.page-card:hover::before {
    transform: scaleX(1);
}

.page-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.page-card .card-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 1.5rem;
}

.page-card h3 {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-card p {
    color: var(--dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Feature Card */
.feature-card {
    text-align: left;
}

/* Service Card */
.service-card {
    padding: 3rem 2.5rem;
}

.service-card .service-number {
    font-family: var(--font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* ============================================
   STATS
   ============================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.gov-stat {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg);
    position: relative;
}

.gov-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.gov-stat .number {
    font-family: var(--font);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.gov-stat .number-gold {
    color: var(--gold);
}

.gov-stat .label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 1rem;
}

/* ============================================
   POLICY / LIST ITEMS
   ============================================ */

.policy-item {
    padding: 2rem;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, var(--gold-dim) 0%, transparent 100%);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.policy-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25) 0%, transparent 100%);
    transform: translateX(5px);
}

.policy-item h4 {
    font-family: var(--font);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.policy-item p {
    color: var(--dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   OFFICIAL BADGE
   ============================================ */

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gold);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.official-badge::before {
    content: '★';
    color: var(--gold);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, rgba(178, 34, 52, 0.08) 0%, rgba(11, 22, 41, 0.9) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50Z' fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
}

/* ============================================
   GALLERY / DOCS GRID
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--line) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 22, 41, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .gallery-label {
    position: relative;
    z-index: 2;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    text-align: center;
}

.gallery-item .gallery-sublabel {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 46, 74, 0.3);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(26, 46, 74, 0.5);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Info */
.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-info-item .info-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--dim);
    font-size: 0.95rem;
}

/* ============================================
   DOCS LIST
   ============================================ */

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.docs-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 46, 74, 0.2);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.docs-item:hover {
    border-color: var(--gold);
    background: rgba(26, 46, 74, 0.4);
}

.docs-item .doc-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.docs-item .doc-info h4 {
    font-family: var(--font);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.docs-item .doc-info p {
    font-size: 0.85rem;
    color: var(--dim);
}

.docs-item .doc-meta {
    margin-left: auto;
    text-align: right;
}

.docs-item .doc-meta span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */

.page-footer {
    border-top: 1px solid var(--line);
    padding: 4rem 0 2rem;
    position: relative;
}

.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--dim);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--dim);
}

.footer-bottom .footer-badges {
    display: flex;
    gap: 1rem;
}

.footer-bottom .footer-badge {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .page-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-seal-large {
        width: 300px;
        height: 300px;
        opacity: 0.04;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--line);
    }
    
    .page-nav ul.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .page-grid-3,
    .page-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-seal-large {
        display: none;
    }
    
    .page-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}
