/* ============================================
   SEAWARD MARINE MANAGEMENT - MAIN STYLESHEET
   ============================================ */

/* --- ROOT VARIABLES --- */
:root {
    --navy-primary: #1a365d;
    --navy-secondary: #2c5282;
    --gold-accent: #c9a227;
    --white: #ffffff;
    --charcoal: #2d3748;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --border-gray: #cbd5e0;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, sans-serif;
    --font-accent: 'Montserrat', -apple-system, sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(26, 54, 93, 0.1);
    --shadow-md: 0 4px 16px rgba(26, 54, 93, 0.15);
    --shadow-lg: 0 8px 24px rgba(26, 54, 93, 0.2);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    line-height: 1.7;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p { margin-bottom: 1.25rem; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- CONTAINER & LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
.navbar {
    /* Original: background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%); */
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 40%, #bae6fd 80%, #7dd3fc 100%);
    box-shadow: 0 4px 20px rgba(0, 77, 128, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    max-height: 350px;
    overflow: hidden;
}

.navbar .container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 0;
    gap: 1rem;
}

.logo img {
    height: 120px;
    max-height: 120px;
    width: auto;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo-text-wrap .company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #003d5c 0%, #0077b6 50%, #00a8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text-wrap .company-name .word {
    display: block;
}

.logo-text-wrap .company-name .word.highlight {
    font-size: 2rem;
    background: linear-gradient(135deg, #c9a227 0%, #daa520 50%, #f4c430 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 0.75rem 0;
    /* ORIGINAL DIVIDER - uncomment to revert from wave:
    border-top: 1px solid rgba(0, 61, 92, 0.1);
    */
    border-top: none;
    width: 100%;
    position: relative;
    margin-top: 15px;
}

/* --- OCEAN WAVE DIVIDER ---
   To revert: comment out this entire wave section and uncomment border-top above */
.nav-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='wave1' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%230099cc;stop-opacity:0.3'/%3E%3Cstop offset='100%25' style='stop-color:%230077b6;stop-opacity:0.5'/%3E%3C/linearGradient%3E%3ClinearGradient id='wave2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%230088bb;stop-opacity:0.4'/%3E%3Cstop offset='100%25' style='stop-color:%23006699;stop-opacity:0.6'/%3E%3C/linearGradient%3E%3ClinearGradient id='wave3' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%230077aa;stop-opacity:0.5'/%3E%3Cstop offset='100%25' style='stop-color:%23005588;stop-opacity:0.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,32 C120,42 180,18 300,28 C420,38 480,12 600,24 C720,36 780,8 900,22 C1020,36 1080,14 1200,26 C1320,38 1380,16 1440,28 L1440,54 L0,54 Z' fill='url(%23wave1)'/%3E%3Cpath d='M0,36 C100,24 200,44 320,32 C440,20 520,42 660,30 C800,18 880,40 1020,28 C1160,16 1240,38 1440,32 L1440,54 L0,54 Z' fill='url(%23wave2)'/%3E%3Cpath d='M0,42 C80,48 160,36 280,44 C400,52 480,38 620,46 C760,54 840,40 980,48 C1120,56 1200,42 1340,50 C1400,54 1440,46 1440,46 L1440,54 L0,54 Z' fill='url(%23wave3)'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: waveFlow 8s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 5% 0%;
    }
}
/* --- END OCEAN WAVE DIVIDER --- */

.nav-menu a {
    color: var(--charcoal);
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-transform: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--navy-primary);
    padding-left: 2rem;
    border-left-color: var(--gold-accent);
}

.nav-cta {
    background: var(--gold-accent);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #b8911f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy-primary);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(44, 82, 130, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-sans);
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    transform: translateY(-50%);
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--white);
    border-color: var(--gold-accent);
}

.btn-primary:hover {
    background: #b8911f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-primary);
}

.btn-outline {
    background: transparent;
    color: var(--navy-primary);
    border-color: var(--navy-primary);
}

.btn-outline:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

/* --- SECTIONS --- */
.intro-section,
.content-section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 300;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gold-accent);
    margin: 1.5rem auto;
}

.section-divider-left {
    width: 80px;
    height: 3px;
    background: var(--gold-accent);
    margin: 1.5rem 0;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* --- INTRO SECTION --- */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text p:last-child {
    margin-bottom: 2rem;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* --- SERVICES OVERVIEW --- */
.services-overview {
    padding: 5rem 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3,
.service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    padding-top: 1.5rem;
    font-size: 1.5rem;
}

.service-link {
    display: block;
    padding: 1.5rem;
    color: var(--gold-accent);
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--navy-primary);
    padding-left: 2rem;
}

.service-link:hover::after {
    transform: translateX(5px);
}

.service-card-featured {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
    color: var(--white);
    position: relative;
}

.service-card-featured h3,
.service-card-featured p {
    color: var(--white);
}

.featured-badge {
    background: var(--gold-accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    margin: 1.5rem 1.5rem 0;
}

/* --- WHY CHOOSE US --- */
.why-choose-us {
    padding: 5rem 0;
}

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

.feature-item {
    position: relative;
    padding-left: 4rem;
}

.feature-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--gold-accent);
    opacity: 0.3;
    font-weight: 700;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stars {
    color: var(--gold-accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--navy-primary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #64748b;
    font-size: 0.95rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: var(--navy-primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--gold-accent);
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- SERVICE AREA HIGHLIGHT --- */
.service-area-highlight {
    padding: 5rem 0;
    background: var(--light-gray);
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-area-list {
    list-style: none;
    margin: 2rem 0;
}

.service-area-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.service-area-list li:last-child {
    border-bottom: none;
}

.service-area-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* --- CONTACT FORM SECTION --- */
.contact-form-section {
    padding: 5rem 0;
}

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

.contact-form {
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail strong {
    display: block;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
}

.contact-detail a {
    color: var(--gold-accent);
    transition: all 0.3s ease;
    position: relative;
}

.contact-detail a:hover {
    color: var(--navy-primary);
}

/* --- TWO COLUMN LAYOUT --- */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.content-image {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* --- PAGE HEADER --- */
.page-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85), rgba(44, 82, 130, 0.75));
}

.page-header h1 {
    position: relative;
    z-index: 2;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 300;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
    text-align: center;
}

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

.cta-content p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--gold-accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold-accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
}

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

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-accent);
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold-accent);
}

.footer-legal a:hover::after {
    width: 100%;
}

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