/* ========================================
   NEWPORT MARINE GROUP - GLOBAL STYLES
   ======================================== */

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

:root {
    --navy: #0a1929;
    --navy-light: #132f4c;
    --marine-blue: #1e4976;
    --accent-blue: #2e7daa;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--gray-dark);
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    color: var(--marine-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

ul {
    list-style: none;
}

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

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

.container.narrow {
    max-width: 900px;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 41, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 115px;
}

/* Logo Section - Logo + Company Info */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

/* Company Info */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    line-height: 1.2;
}

.company-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
}

.company-locations {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 4px 0;
    transition: 0.3s;
}

/* ========================================
   HERO SECTION (Homepage)
   ======================================== */

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(
        rgba(10, 25, 41, 0.7),
        rgba(30, 73, 118, 0.6)
    ),
    url('https://images.unsplash.com/photo-1681156996587-9b023fd2eeeb?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

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

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

.cta-button {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-blue);
}

.cta-button:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.text-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--marine-blue);
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--accent-blue);
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro {
    padding: 6rem 0;
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* ========================================
   SERVICES OVERVIEW (Homepage)
   ======================================== */

.services-overview {
    padding: 6rem 0;
    background: var(--off-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-top: 3px solid var(--marine-blue);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--gray-dark);
}

.service-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--marine-blue);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* ========================================
   APPROACH SECTION
   ======================================== */

.approach {
    padding: 6rem 0;
    background: var(--white);
}

.approach-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.approach-content h2 {
    margin-bottom: 2rem;
}

.approach-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

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

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(
        rgba(10, 25, 41, 0.85),
        rgba(30, 73, 118, 0.75)
    ),
    url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?q=80&w=2400') center/cover;
    /* Placeholder image - can be replaced */
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   PAGE HERO (Interior Pages)
   ======================================== */

.page-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    color: var(--white);
    position: relative;
    background: linear-gradient(
        rgba(10, 25, 41, 0.8),
        rgba(30, 73, 118, 0.7)
    );
}

.about-hero {
    background: linear-gradient(
        rgba(10, 25, 41, 0.8),
        rgba(30, 73, 118, 0.7)
    ),
    url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?q=80&w=2400') center/cover;
}

.services-hero {
    background: linear-gradient(
        rgba(10, 25, 41, 0.8),
        rgba(30, 73, 118, 0.7)
    ),
    url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?q=80&w=2400') center/cover;
}

.contact-hero {
    background: linear-gradient(
        rgba(10, 25, 41, 0.8),
        rgba(30, 73, 118, 0.7)
    ),
    url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?q=80&w=2400') center/cover;
}

.page-hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.content-section {
    padding: 5rem 0;
}

.content-section.gray {
    background: var(--off-white);
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ========================================
   SERVICES DETAIL
   ======================================== */

.services-detail {
    padding: 4rem 0;
    background: var(--white);
}

.service-detail-card {
    background: var(--off-white);
    padding: 3rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--marine-blue);
}

.service-detail-card h2 {
    margin-bottom: 2rem;
}

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

.service-columns h3 {
    margin-bottom: 1.25rem;
    color: var(--marine-blue);
}

.service-columns ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-dark);
}

.service-columns ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--marine-blue);
    font-weight: bold;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.contact-info h2 {
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

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

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--marine-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    line-height: 1.8;
}

.contact-item a {
    color: var(--gray-dark);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-blue);
}

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

.contact-form-container {
    background: var(--off-white);
    padding: 3rem;
}

.contact-form-container h2 {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--gray-light);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background: var(--marine-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: var(--accent-blue);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

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

.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Mobile Header Adjustments */
    .nav-container {
        min-height: auto;
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        flex: 1;
    }
    
    .logo img {
        height: 50px;
    }
    
    .company-info {
        gap: 0.1rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .company-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .company-tagline {
        font-size: 0.75rem;
    }
    
    .company-locations {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 115px;
        flex-direction: column;
        background: var(--navy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        min-height: 500px;
    }
}
/* ========================================
/* ========================================
   THANK YOU PAGE STYLES
   Add to the end of style.css
   ======================================== */

.thank-you-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
    animation: checkmarkScale 0.5s ease-out;
}

.thank-you-icon svg {
    stroke: var(--navy);
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.thank-you-message {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.thank-you-details {
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.thank-you-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.thank-you-details p:last-child {
    margin-bottom: 0;
}

.thank-you-details a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.thank-you-details a:hover {
    text-decoration: underline;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Make the secondary button visible on white background */
.thank-you-section .cta-button-secondary {
    color: var(--navy);
    border-color: var(--navy);
}

.thank-you-section .cta-button-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .thank-you-message {
        font-size: 1.1rem;
    }
    
    .thank-you-details {
        padding: 1.5rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .thank-you-actions .cta-button,
    .thank-you-actions .cta-button-secondary {
        width: 100%;
    }
}
