/* ==========================================================================
   1. Global Variables & Base Styles
   ========================================================================== */
:root {
    --navy-bg: #1a1e29;           /* Main page dark background */
    --navy-surface: #242a38;      /* Cards, headers, hero backgrounds */
    --navy-border: rgba(255, 255, 255, 0.12);
    --gold-accent: #b08d57;       /* Primary brand accent */
    --gold-hover: #967443;        /* Primary brand hover */
    --oatmeal: #f3efe8;          /* Warm light accent */
    --light-blue: #6b8fb5;       /* Accent blue */
    --text-dark: #f5f5f5;        /* Primary text */
    --text-muted: #c7cbd4;       /* Secondary copy */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--navy-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. Global Header & Navigation
   ========================================================================== */
.site-header, header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy-surface);
    border-bottom: 1px solid var(--navy-border);
    padding: 1rem 2rem;
}

.header-inner, .nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand, .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo img, .brand img {
    width: 106px;
    height: 106px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.main-nav, nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link, nav a {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    border-radius: 0.4rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, nav a:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    font-weight: 600;
    color: var(--gold-accent);
}

/* Base Global CTA Button */
.cta-button, .btn-primary, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    background: var(--gold-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover, .btn-primary:hover, .button:hover {
    background: var(--gold-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border: 1px solid var(--navy-border);
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Base Card Style */
.card {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   3. Page-Specific Styles (Method 1)
   ========================================================================== */

/* --------------------------------------------------------------------------
   3A. HOME PAGE (.page-home)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3A. HOME PAGE (.page-home) - HERO WITH BACKGROUND IMAGE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   HOME PAGE HERO - FIXED DISTORTION & HIGH-POP PHOTO
   -------------------------------------------------------------------------- */
.page-home .hero {
    position: relative;
    text-align: center;
    padding: 7.5rem 2rem;
    
    /* FIX DISTORTION: Ensures aspect ratio is preserved without stretching */
    background-size: cover;
    background-position: center center; /* Try 'center top' or 'center bottom' if key subjects get cut off */
    background-repeat: no-repeat;
    
    border-bottom: 1px solid var(--navy-border);
    overflow: hidden;
}

/* HIGH-POP OVERLAY: Darker edges (vignette) with a clearer, brighter center */
.page-home .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center, 
        rgba(10, 18, 30, 0.25) 0%,   /* Bright & clear in the center where the photo shines */
        rgba(10, 18, 30, 0.75) 100%  /* Darker at the edges so white/gold text stays sharp */
    );
    z-index: 1;
}

/* PHOTO ENHANCEMENT: Makes colors richer and highlights punchier */
.page-home .hero-has-bg {
    filter: brightness(1.1) contrast(1.12) saturate(1.15);
}

/* Ensure hero text content stays crisp over top of the photo */
.page-home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-home .hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7); /* Drop shadow gives text pop against bright photo areas */
}

.page-home .hero-subheading {
    font-size: 1.25rem;
    color: var(--gold-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.page-home .hero-mission {
    font-size: 1.15rem;
    color: #ffffff;
    max-width: 650px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Master Section Card Container Styling */
.page-home .section-card {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .section-card:hover {
    border-color: rgba(176, 141, 87, 0.4);
}

/* Header & Subtitle Centering */
.page-home .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.page-home .section-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.page-home .section-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 1. Services Section Sub-Cards */
.page-home .services-card .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.page-home .service-item {
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .service-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-home .card-icon {
    color: var(--gold-accent);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.page-home .service-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.page-home .service-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 2. Experience Highlights Grid */
.page-home .highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.page-home .highlight-card {
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .highlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-accent);
}

.page-home .highlight-card .badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-accent);
    background: rgba(176, 141, 87, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-home .highlight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-home .highlight-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 3. Call to Action Card */
.page-home .cta-card {
    text-align: center;
    padding: 4rem 2rem;
}

.page-home .cta-card .section-intro {
    margin-bottom: 0;
}

.page-home .cta-card h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.page-home .cta-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-home .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-home .services-card .grid,
    .page-home .highlights-grid {
        grid-template-columns: 1fr;
    }

    .page-home .section-card {
        padding: 2.5rem 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   3B. ABOUT PAGE (.page-about)
   -------------------------------------------------------------------------- */
.page-about .page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Highlighted wide cards for Mission, Vision & Core Values */
.page-about .card {
    max-width: 750px;
    margin: 2rem auto;
    text-align: left;
    align-items: flex-start;
    border-left: 4px solid var(--gold-accent);
}

.page-about .core-principles {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
}

.page-about .core-principles li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   3B. ABOUT PAGE (.page-about)
   -------------------------------------------------------------------------- */
.page-about .hero {
    text-align: center;
    padding: 4.5rem 2rem;
    background: var(--navy-surface);
    border-bottom: 1px solid var(--navy-border);
}

.page-about .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-about .hero-subheading {
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 500;
}

/* Centered Header & Introductory Paragraphs */
.page-about .section-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.page-about .section-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-about .section-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Expertise Grid Layout (2x2 Grid) */
.page-about .expertise .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
}

/* Card Content Centering */
.page-about .card {
    text-align: center;
    align-items: center;
    padding: 2rem;
}

.page-about .card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.page-about .card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Closing Section Styling */
.page-about .closing {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 850px;
    margin: 4rem auto;
}

.page-about .closing h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-about .closing p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-about .expertise .grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   3C. PORTFOLIO PAGE (.page-portfolio)
   -------------------------------------------------------------------------- */

/* Hero Banner */
.page-portfolio .hero {
    text-align: center;
    padding: 4.5rem 2rem;
    background: var(--navy-surface);
    border-bottom: 1px solid var(--navy-border);
}

.page-portfolio .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-portfolio .hero-subheading {
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 500;
}

/* Gallery Section Spacing */
.page-portfolio .gallery-section {
    margin-bottom: 5rem;
}

/* Centered Header & Description Text Above Cards */
.page-portfolio .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.page-portfolio .section-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-portfolio .section-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Gallery Grid Layout - 2 Centered Cards */
.page-portfolio .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 1.75rem;
    max-width: 850px;                      /* Prevents 2 cards from stretching too wide */
    margin: 0 auto;                        /* Centers the grid container on the page */
}

/* Image Card Containers */
.page-portfolio .image {
    height: 320px;
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-portfolio .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.page-portfolio .image img:hover {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* Filter/Category CTA Buttons on Portfolio */
.page-portfolio .cta-button {
    background: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
}

.page-portfolio .cta-button:hover {
    background: var(--gold-accent);
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 650px) {
    .page-portfolio .gallery {
        grid-template-columns: 1fr; /* Stacks into 1 column on smaller mobile screens */
    }
}


/* --------------------------------------------------------------------------
   3D. CONTACT PAGE (.page-contact)
   -------------------------------------------------------------------------- */
.page-contact .hero {
    text-align: center;
    padding: 4.5rem 2rem;
    background: var(--navy-surface);
    border-bottom: 1px solid var(--navy-border);
}

.page-contact .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-contact .hero-subheading {
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 500;
}

/* Centered Header & Introductory Paragraph above Form */
.page-contact .section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.page-contact .section-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.page-contact .section-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Card Container */
.page-contact .contact-box {
    background: var(--navy-surface);
    padding: 3rem;
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Form Element Styling */
.page-contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: left;
}

.page-contact input, 
.page-contact textarea, 
.page-contact select {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    border-radius: 6px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-contact input:focus, 
.page-contact textarea:focus, 
.page-contact select:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.page-contact select option {
    background: var(--navy-surface);
    color: var(--text-dark);
}

.page-contact textarea {
    height: 140px;
    resize: vertical;
}

/* Submit Form Button */
.page-contact .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
}

/* ==========================================================================
   4. Footer & Responsive Design
   ========================================================================== */
footer {
    background: var(--navy-surface);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--navy-border);
}

@media (max-width: 900px) {
    .page-portfolio .gallery, 
    .page-portfolio .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-portfolio .gallery, 
    .page-portfolio .grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none; /* Hide standard nav on small mobile screens */
    }
}