:root {
    --dark-blue: #005493;
    --light-blue: #3399FF;
    --navy: #1B2D4F;
    --accent-orange: #e67300;
    --light-gray: #f5f7fa;
    --white: #ffffff;
}
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    left: 0;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-container { display: flex; flex-direction: column; align-items: flex-start; }
.logo-container a { display: inline-block; }
.logo {
    height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 2px;
    filter: brightness(0) invert(1);
}
.tagline {
    font-size: 0.8rem;
    font-weight: normal;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    align-self: flex-end;
    margin-left: 10px;
    display: inline-block;
}
.logo-tagline-wrapper { display: flex; align-items: flex-end; }
.expert-badge {
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
}
@media (max-width: 480px) {
    .expert-badge { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}

/* Navigation */
nav {
    background: var(--navy);
    position: relative;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}
nav ul li { position: relative; }
nav ul li a {
    color: var(--white);
    padding: 1rem 1.5rem;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
nav ul li a:hover,
nav ul li a[aria-current="page"] { background: rgba(255,255,255,0.1); }
nav ul li a:hover::after,
nav ul li a[aria-current="page"]::after { width: 70%; }

a:focus, button:focus { outline: 2px solid var(--accent-orange); outline-offset: 3px; }

/* Page header (used on interior pages instead of full hero) */
.page-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.page-header p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: rgba(255,255,255,0.95); }
.breadcrumb {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero (home page only) */
.hero {
    background: linear-gradient(rgba(0,84,147,0.8), rgba(51,153,255,0.8)), url('https://www.netsuite.com/portal/assets/img/brand/og-image.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.highlight-badge {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.5rem;
    font-weight: bold;
}
.cta-button {
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    z-index: -1;
}
.cta-button:hover { transform: scale(1.05); background: #d16600; }
.cta-button:hover::before { left: 0; }
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 0.75rem;
}
.cta-button.secondary:hover { background: rgba(255,255,255,0.15); }

/* Generic section layout */
.section { max-width: 1200px; margin: 3rem auto; padding: 0 2rem; }
.section-narrow { max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.section-tint { background: var(--light-gray); padding: 3rem 2rem; }
.section-tint > .section, .section-tint > .section-narrow { margin: 0 auto; }
.section-tint-blue { background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 100%); padding: 3rem 2rem; }
.section-tint-blue > .section, .section-tint-blue > .section-narrow { margin: 0 auto; }
.section-title {
    text-align: center;
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-orange);
    margin: 0.5rem auto;
}
.section-lead { text-align: center; max-width: 800px; margin: 0 auto 2rem; }

/* Card grids */
.services-grid, .rescue-grid, .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    border: 1px solid #ddd;
    border-radius: clamp(4px, 1vw, 8px);
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--white);
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-orange);
}
.service-card h3 {
    color: var(--navy);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.service-card:hover h3 { color: var(--accent-orange); }
.service-card a.card-link { color: var(--dark-blue); font-weight: 600; text-decoration: none; }
.service-card a.card-link:hover { text-decoration: underline; }

/* Expertise / stats */
.expertise { background: var(--light-gray); padding: 3rem 2rem; text-align: center; }
.stats-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; }
.stat-item { background: var(--white); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); min-width: 200px; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--accent-orange); margin-bottom: 0.5rem; }
.stat-label { color: var(--navy); font-size: 1rem; }

/* About */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Rescue */
.rescue { background: var(--navy); color: var(--white); padding: 4rem 2rem; text-align: center; }
.rescue .section-title { color: var(--white); }
.rescue .section-title::after { background: var(--accent-orange); }
.rescue-card { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 1.5rem; border-left: 4px solid var(--accent-orange); text-align: left; }

/* Process steps (rescue page) */
.steps { max-width: 900px; margin: 2rem auto; }
.step { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.step:last-child { border-bottom: none; }
.step-number {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccd3dc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--dark-blue);
    outline-offset: 1px;
    border-color: var(--dark-blue);
}
.form-note { font-size: 0.85rem; color: #55617a; }
.contact-info-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.75rem;
    border-left: 4px solid var(--accent-orange);
}
.contact-info-card h3 { margin-top: 0; }
.contact-info-card p { margin: 0.4rem 0; }
.form-status { font-weight: 600; padding: 0.75rem 1rem; border-radius: 4px; display: none; }
.form-status.success { display: block; background: #e3f6e8; color: #1e6b34; }
.form-status.error { display: block; background: #fdeaea; color: #a12b2b; }

/* Job listings table */
.jobs-table-wrap { overflow-x: auto; }
.jobs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; min-width: 640px; }
.jobs-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}
.jobs-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e6ec;
    font-size: 0.95rem;
    vertical-align: middle;
}
.jobs-table tr:nth-child(even) td { background: var(--light-gray); }
.jobs-table tr:hover td { background: #eaf4ff; }
.jobs-table a.apply-link {
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.jobs-table a.apply-link:hover { text-decoration: underline; }

/* Footer */
footer { background: var(--navy); color: var(--white); padding: 3rem 2rem 1rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-content a { color: rgba(255,255,255,0.8); }
.copyright { text-align: center; padding: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.social-media { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-media a {
    color: var(--white);
    transition: all 0.3s ease;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    will-change: transform;
}
.social-media a:hover { color: var(--accent-orange); background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.social-media svg { width: 18px; height: 18px; }

/* Breadcrumb-list micro spacing helper */
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
    .about-content, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; gap: 1rem; align-items: center; }
    .logo-container { align-items: center; }
    .hero h1, .page-header h1 { font-size: 2rem; }
    .nav-toggle { display: block; }
    .nav-inner { justify-content: flex-start; }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        text-align: center;
    }
    nav ul.open { display: flex; }
    .logo { height: 60px; max-width: 200px; }
    .footer-logo { height: 35px; }
    .stat-item { min-width: 150px; }
    .social-media { justify-content: center; }
}
@media (max-width: 480px) {
    .hero h1, .page-header h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }
    .highlight-badge { display: block; margin: 0.5rem auto; width: 90%; }
    .services-grid, .rescue-grid, .cards-grid { grid-template-columns: 1fr; }
}
