/* ===================================
   Fire Origin & Cause, Inc.
   Modern Professional Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #01103a;
    --primary-dark: #000820;
    --secondary-color: #01103a;
    --accent-color: #01103a;
    --text-dark: #212121;
    --text-light: #5a5a5a;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header and Navigation */
header {
    background: var(--secondary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--background);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section with Video */
.hero {
    margin-top: 76px;
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #01103a 0%, #003366 50%, #01103a 100%);
    position: relative;
}

.hero-video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            transparent 2px,
            transparent 4px
        );
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 40px 40px, 40px 40px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(1, 16, 58, 0.4) 0%,
        rgba(1, 16, 58, 0.3) 50%,
        rgba(1, 16, 58, 0.4) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
    padding: 2rem;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Page Header */
.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button, .btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Sections */
.content-section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Intro Section */
.intro-section {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* CTA Box */
.cta-box {
    background: var(--background-alt);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.cta-box p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Box */
.about-box {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 4rem;
    text-align: center;
}

.about-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background: var(--background-alt);
    padding: 6rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

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

/* Company Profile */
.company-profile {
    margin-bottom: 4rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    text-align: center;
}

.placeholder-image {
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    background: var(--background-alt);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 3px solid var(--primary-color);
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.credentials {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.title {
    color: var(--text-light);
    font-style: italic;
}

.profile-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.profile-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Experience Section */
.experience-section {
    margin: 4rem 0;
}

.experience-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.experience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.experience-card p {
    color: var(--text-light);
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.info-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.info-box p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.instruction-highlight {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 4rem;
}

.instruction-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.instruction-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Detail Page */
.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.evidence-highlight {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--background-alt);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.evidence-icon {
    font-size: 2rem;
}

.services-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.service-detail-section {
    margin: 4rem 0;
}

.service-detail-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.fire-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.fire-type-item {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fire-type-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.type-icon {
    font-size: 2rem;
}

.fire-type-item span:last-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.detailed-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-detail-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-detail-card ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-detail-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.service-detail-card.featured {
    background: #000;
    color: white;
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* Video fills the card behind everything */
.featured-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay so text stays readable */
.featured-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,16,58,0.75), rgba(0,0,0,0.5));
    z-index: 1;
}

/* Content sits above video + overlay */
.featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    max-width: 650px;
}

.service-detail-card.featured h3 {
    color: white;
}

.service-detail-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}



/* CV Page Styles */
.cv-content {
    background: var(--background);
}

.cv-header-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--background-alt);
    border-radius: 15px;
}

.cv-header-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cv-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.pdf-icon {
    font-size: 3rem;
}

.pdf-download strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.pdf-download p {
    color: var(--text-light);
    margin: 0;
}

.cv-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.cv-section:last-of-type {
    border-bottom: none;
}

.cv-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.cv-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cv-list {
    list-style: none;
    padding-left: 0;
}

.cv-list li {
    padding: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-light);
    background: var(--background-alt);
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.cv-list li::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.cv-list.compact li {
    padding: 0.5rem 1rem 0.5rem 2rem;
    background: transparent;
    margin-bottom: 0.25rem;
}

.certifications .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
}

.cert-check {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.training-intro {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.affiliation-item {
    padding: 1rem 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-light);
}

.publications {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 10px;
}

.contact-cta {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Resources Page */
.resources-intro {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.resource-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.resource-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.external-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Videos Page */
.videos-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.videos-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--secondary-color);
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #01103a, #003366);
    color: white;
}

.play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.video-info p {
    color: var(--text-light);
    line-height: 1.8;
}

.video-note {
    background: var(--background-alt);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
}

.video-note h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.video-note p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-section > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.detail-icon {
    font-size: 2.5rem;
    min-width: 50px;
}

.detail-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.detail-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.detail-content a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.detail-content a:hover {
    color: var(--primary-dark);
}

.contact-form-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form-section > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.claim-form {
    background: var(--background-alt);
    padding: 3rem;
    border-radius: 15px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Detailed services: 3col → 2col at 900px, then 1col at 968px */
@media (max-width: 900px) {
    .detailed-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

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

    .certifications .cert-grid {
        grid-template-columns: 1fr;
    }

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

    .detailed-services {
        grid-template-columns: 1fr;
    }

    .videos-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .placeholder-image {
        width: 200px;
        height: 200px;
    }

    .claim-form {
        padding: 2rem;
    }

    .fire-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Gallery Styles */
.image-gallery {
    margin: 4rem 0;
}

.image-gallery h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--background-alt);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #01103a, #003366);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.gallery-overlay {
    position: relative;
    background: white;
    color: var(--text-dark);
    padding: 1.5rem;
    transform: translateY(0);
    transition: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-overlay p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Featured Image Section */
.featured-image-section {
    margin: 6rem 0;
    position: relative;
}

.featured-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.featured-placeholder span {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.featured-placeholder p {
    font-size: 1.5rem;
    opacity: 0.8;
}

.featured-content-overlay {
    position: center;
    bottom: 0;
    left: 0;
    right: 0;
    color: #011039;
    padding: 3rem;
}

.featured-content-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-content-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Image Grid Variants */
.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

.grid-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.grid-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.grid-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

/* Parallax Image Section */
.parallax-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 6rem 0;
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.parallax-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #01103a, #003366);
    z-index: 1;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 16, 58, 0.6);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.parallax-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Professional Icon Styles */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-style: normal;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 16, 58, 0.2);
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.service-icon i {
    font-size: 2rem;
}

.exp-icon, .detail-icon, .resource-icon, .evidence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-style: normal;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 16, 58, 0.15);
    font-size: 1.5rem;
}

.exp-icon i, .detail-icon i, .resource-icon i, .evidence-icon i {
    font-size: 1.5rem;
}

.type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-size: 1.3rem;
}

.type-icon i {
    font-size: 1.3rem;
}

/* Placeholder professional styling */
.gallery-placeholder {
    background: linear-gradient(135deg, #01103a, #003366);
    color: white;
    font-size: 3rem;
}

.gallery-placeholder i {
    font-size: 3rem;
}

.grid-placeholder {
    background: linear-gradient(135deg, #01103a, #003366);
    color: white;
    font-weight: 700;
    font-size: 3rem;
}

.grid-placeholder i {
    font-size: 3rem;
}

/* Adjust icon font sizes for professional look */
.service-icon {
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
}

.gallery-placeholder {
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.grid-placeholder {
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.type-icon {
    font-size: 1.3rem;
    font-weight: 700;
}

.exp-icon, .detail-icon, .resource-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.evidence-icon {
    font-size: 1.2rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Success Message Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}
