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

/* Hand-drawn font import */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;600;700&display=swap');

:root {
    /* Maritime Color Palette */
    --primary-blue: #1e3a8a;
    --ocean-blue: #0ea5e9;
    --navy-blue: #1e293b;
    --seafoam: #22d3ee;
    --sandy-beige: #fef3c7;
    --coral: #f97316;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #64748b;
    --gray-dark: #334155;
    
    /* Hand-drawn shadows */
    --hand-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    --hand-shadow-hover: 5px 5px 0px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-handwritten: 'Kalam', cursive;
    --font-casual: 'Caveat', cursive;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-handwritten);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Hand-drawn animations */
@keyframes bobbing {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes wave-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hand-drawn button styles */
.btn-primary, .cta-button, .submit-btn {
    background: var(--coral);
    color: var(--white);
    border: 3px solid var(--navy-blue);
    padding: 12px 24px;
    font-family: var(--font-handwritten);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    box-shadow: var(--hand-shadow);
    transform: rotate(-1deg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.btn-primary:hover, .cta-button:hover, .submit-btn:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: var(--hand-shadow-hover);
    background: #ea580c;
}

.btn-secondary {
    background: var(--white);
    color: var(--navy-blue);
    border: 3px solid var(--navy-blue);
    padding: 12px 24px;
    font-family: var(--font-handwritten);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    box-shadow: var(--hand-shadow);
    transform: rotate(1deg);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: var(--hand-shadow-hover);
    background: var(--gray-light);
}

.btn-outline {
    background: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
    padding: 10px 20px;
    font-family: var(--font-handwritten);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    box-shadow: var(--hand-shadow);
    transform: rotate(-0.5deg);
    transition: var(--transition);
    cursor: pointer;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--ocean-blue);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 50px;
    transform: rotate(-2deg);
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(2deg) scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    transition: var(--transition);
    transform: rotate(-1deg);
}

.nav-link:hover {
    color: var(--ocean-blue);
    transform: rotate(1deg) scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--coral);
    transition: width 0.3s ease;
    transform: rotate(-1deg);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy-blue);
    margin: 3px 0;
    transition: var(--transition);
    transform: rotate(-1deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--seafoam) 0%, var(--ocean-blue) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-casual);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    transform: rotate(0.5deg);
    line-height: 1.4;
}

.yacht-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: bobbing 4s ease-in-out infinite;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2));
}

.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
}

/* Section Titles */
.section-title {
    font-family: var(--font-casual);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy-blue);
    transform: rotate(-1deg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 80px;
    height: 4px;
    background: var(--coral);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--gray-light);
}

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

.about-text h3 {
    font-family: var(--font-casual);
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border: 3px solid var(--ocean-blue);
    box-shadow: var(--hand-shadow);
    transform: rotate(1deg);
    transition: var(--transition);
}

.feature-item:hover {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: var(--hand-shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: var(--font-casual);
    font-size: 1.3rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--sandy-beige);
    padding: 2rem;
    border: 3px solid var(--coral);
    box-shadow: var(--hand-shadow);
    transform: rotate(-1deg);
    transition: var(--transition);
}

.service-card:nth-child(even) {
    transform: rotate(1deg);
}

.service-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--hand-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-casual);
    font-size: 1.8rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

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

.service-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    color: var(--coral);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--ocean-blue);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

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

.testimonial-card {
    background: var(--white);
    color: var(--gray-dark);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--hand-shadow);
    transform: rotate(1deg);
    transition: var(--transition);
}

.testimonial-card:nth-child(even) {
    transform: rotate(-1deg);
}

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--hand-shadow-hover);
}

.testimonial-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-casual);
    font-size: 1.2rem;
    color: var(--navy-blue);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: var(--gray-light);
}

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

.blog-card {
    background: var(--white);
    padding: 2rem;
    border: 3px solid var(--seafoam);
    box-shadow: var(--hand-shadow);
    transform: rotate(-0.5deg);
    transition: var(--transition);
}

.blog-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.blog-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--hand-shadow-hover);
}

.blog-card h3 a {
    font-family: var(--font-casual);
    font-size: 1.4rem;
    color: var(--navy-blue);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.blog-card h3 a:hover {
    color: var(--ocean-blue);
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 600;
}

/* Blog Article Sections */
.blog-article {
    padding: 120px 0 80px;
    background: var(--white);
    display: none;
}

.blog-article.active {
    display: block;
}

.blog-article h2 {
    font-family: var(--font-casual);
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.article-date {
    color: var(--gray-medium);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.back-link:hover {
    color: var(--navy-blue);
}

/* Subscription Section */
.subscription {
    padding: 80px 0;
    background: var(--navy-blue);
    color: var(--white);
    text-align: center;
}

.subscription .section-title {
    color: var(--white);
}

.subscription p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.subscription-form input {
    padding: 12px 16px;
    border: 3px solid var(--white);
    background: var(--white);
    font-family: var(--font-handwritten);
    font-size: 16px;
    color: var(--gray-dark);
    transform: rotate(-0.5deg);
    transition: var(--transition);
}

.subscription-form input:nth-child(even) {
    transform: rotate(0.5deg);
}

.subscription-form input:focus {
    outline: none;
    transform: rotate(0deg);
    box-shadow: var(--hand-shadow);
}

/* Legal Section */
.legal {
    padding: 60px 0;
    background: var(--gray-light);
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    background: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
    padding: 10px 20px;
    font-family: var(--font-handwritten);
    font-size: 16px;
    text-decoration: none;
    border-radius: 0;
    box-shadow: var(--hand-shadow);
    transform: rotate(-1deg);
    transition: var(--transition);
    cursor: pointer;
}

.legal-link:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: rotate(1deg) scale(1.05);
}

/* Footer */
.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-family: var(--font-casual);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--seafoam);
    transform: rotate(-1deg);
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--seafoam);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid var(--seafoam);
    transform: rotate(-1deg);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--seafoam);
    color: var(--navy-blue);
    transform: rotate(1deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--seafoam);
    color: var(--gray-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-blue);
    color: var(--white);
    padding: 1rem;
    z-index: 1001;
    border-top: 3px solid var(--coral);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 3px solid var(--navy-blue);
    box-shadow: var(--hand-shadow-hover);
    transform: rotate(-1deg);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-medium);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--navy-blue);
    transform: scale(1.2);
}

/* Cookie Preferences Modal */
.cookie-categories {
    margin: 2rem 0;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    background: var(--gray-light);
}

.cookie-category label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.cookie-category p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--seafoam) 0%, var(--ocean-blue) 100%);
    padding: 2rem;
}

.thanks-container {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    border: 3px solid var(--navy-blue);
    box-shadow: var(--hand-shadow-hover);
    transform: rotate(-1deg);
    max-width: 500px;
}

.thanks-logo {
    height: 80px;
    margin-bottom: 2rem;
    transform: rotate(2deg);
}

.thanks-container h1 {
    font-family: var(--font-casual);
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    transform: rotate(1deg);
}

.thanks-container p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 3px solid var(--ocean-blue);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        transform: rotate(0deg);
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal-overlay {
        display: none !important;
    }
    
    .hero {
        background: var(--white) !important;
        color: var(--gray-dark) !important;
    }
    
    * {
        box-shadow: none !important;
        transform: none !important;
    }
}
