/* ============================================
   COASTAL SECURITY SYSTEMS — STYLE SHEET
   Classic & Elegant | Navy + Warm Gold
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #1a2744;
    background-color: #faf9f6;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1a2744;
    color: #C9A84C;
    padding: 8px 16px;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a2744;
}

.logo-icon {
    color: #C9A84C;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C9A84C;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a2744;
    position: relative;
    transition: color 0.25s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #C9A84C;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background: #1a2744;
    color: #C9A84C !important;
    padding: 10px 24px;
    border-radius: 2px;
    transition: background 0.25s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: #2a3f6e;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a2744;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a2744;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201, 168, 76, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(42, 63, 110, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(26, 39, 68, 0.9) 0%, transparent 70%),
        linear-gradient(160deg, #0d1525 0%, #1a2744 40%, #2a3f6e 70%, #1a2744 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/221027/pexels-photo-221027.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.12;
    mix-blend-mode: luminosity;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: none;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #C9A84C;
    color: #1a2744;
    border-color: #C9A84C;
}

.btn-primary:hover {
    background: #b8963e;
    border-color: #b8963e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #1a2744;
    border-color: #1a2744;
}

.btn-outline-light:hover {
    background: #1a2744;
    color: #C9A84C;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Trust */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.trust-item svg {
    color: #C9A84C;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a2744;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    color: #4a5568;
    line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: #faf9f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(26, 39, 68, 0.08);
    border-radius: 4px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 39, 68, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(201, 168, 76, 0.4);
    border-radius: 4px;
    margin-bottom: 24px;
    color: #C9A84C;
}

.service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 12px;
}

.service-description {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #4a5568;
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid #C9A84C;
    border-radius: 4px;
    z-index: -1;
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-body {
    font-size: 1rem;
    font-weight: 300;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 39, 68, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a2744;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #718096;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(26, 39, 68, 0.15);
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 100px 0;
    background: #1a2744;
}

.why-us .section-title {
    color: #ffffff;
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-item {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.why-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.25);
    line-height: 1;
    margin-bottom: 12px;
}

.why-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.why-text {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 440px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #C9A84C 0%, #b8963e 100%);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(26, 39, 68, 0.6);
    margin-bottom: 12px;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a2744;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(26, 39, 68, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: #faf9f6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(26, 39, 68, 0.06);
    border-radius: 4px;
    padding: 40px 32px;
    position: relative;
}

.testimonial-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.2);
    line-height: 1;
    position: absolute;
    top: 16px;
    left: 24px;
}

.testimonial-text {
    font-size: 0.9375rem;
    font-weight: 300;
    font-style: italic;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1a2744;
    letter-spacing: 0.04em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-eyebrow {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 1rem;
    font-weight: 300;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(201, 168, 76, 0.4);
    border-radius: 4px;
    color: #C9A84C;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1a2744;
    line-height: 1.6;
}

.contact-value a {
    color: #1a2744;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: #C9A84C;
}

/* Contact Form */
.contact-form-wrap {
    background: #faf9f6;
    border: 1px solid rgba(26, 39, 68, 0.08);
    border-radius: 4px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a2744;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #1a2744;
    background: #ffffff;
    border: 1px solid rgba(26, 39, 68, 0.15);
    border-radius: 2px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.form-note {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #718096;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: #C9A84C;
    margin: 0 auto 16px;
}

.form-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #4a5568;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0d1525;
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.logo-light {
    color: #ffffff;
}

.logo-light .logo-icon {
    color: #C9A84C;
}

.footer-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-services a {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #C9A84C;
}

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #C9A84C;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 21, 37, 0.6);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #faf9f6;
        z-index: 100;
        padding: 100px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-list a {
        font-size: 1rem;
    }

    .nav-list a::after {
        bottom: -2px;
    }

    .nav-cta {
        margin-top: 16px;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.active {
        pointer-events: all;
    }

    .hero-headline br {
        display: block;
    }

    .hero-trust {
        gap: 16px;
    }

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

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

    .about-image-wrap {
        order: -1;
    }

    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }

    .about-body {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

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

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

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

    .contact-info .section-eyebrow,
    .contact-info .section-title {
        text-align: center;
    }

    .contact-intro {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 100px 16px 80px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.75rem;
    }

    .service-card {
        padding: 28px 24px;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .about-image-accent {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
