/* Harbor Traverse - Hand-drawn Style CSS */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #2c5e3e;
    background-color: #faf8f5;
    overflow-x: hidden;
}

/* Hand-drawn elements */
.hand-drawn {
    position: relative;
}

.hand-drawn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #2c5e3e;
    border-radius: 15px;
    transform: rotate(-0.5deg);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin-bottom: 1rem;
    color: #2c5e3e;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    transform: rotate(-1deg);
    text-shadow: 2px 2px 0px #e8dcc0;
}

h2 {
    font-size: 2rem;
    transform: rotate(0.5deg);
}

h3 {
    font-size: 1.5rem;
    transform: rotate(-0.3deg);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

/* Header */
.header {
    background: #faf8f5;
    box-shadow: 0 4px 8px rgba(44, 94, 62, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid #2c5e3e;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5e3e;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

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

.nav-menu a {
    color: #2c5e3e;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #e8dcc0;
    transform: rotate(-1deg);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #8b5a3c;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c5e3e;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 90, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 94, 62, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c5e3e;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #5a7c65;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(44, 94, 62, 0.2));
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #2c5e3e;
    color: white;
    border-color: #2c5e3e;
    transform: rotate(-1deg);
}

.btn-primary:hover {
    background-color: #1a3a26;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 3px 3px 8px rgba(44, 94, 62, 0.3);
}

.btn-secondary {
    background-color: #8b5a3c;
    color: white;
    border-color: #8b5a3c;
    transform: rotate(0.5deg);
}

.btn-secondary:hover {
    background-color: #6b4530;
    transform: rotate(0deg) scale(1.05);
}

.btn-outline {
    background-color: transparent;
    color: #2c5e3e;
    border-color: #2c5e3e;
    transform: rotate(0.3deg);
}

.btn-outline:hover {
    background-color: #2c5e3e;
    color: white;
    transform: rotate(0deg) scale(1.05);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: #f5f3f0;
    position: relative;
}

.section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(44, 94, 62, 0.02) 35px,
            rgba(44, 94, 62, 0.02) 36px
        );
    pointer-events: none;
}

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

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

/* Grid Layouts */
.company-grid,
.services-grid,
.blog-grid,
.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.company-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.service-card,
.blog-card,
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    position: relative;
    transition: all 0.3s ease;
}

.service-card {
    transform: rotate(-0.5deg);
}

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

.service-card:hover,
.blog-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 5px 15px 25px rgba(44, 94, 62, 0.2);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #8b5a3c;
}

.read-more {
    color: #2c5e3e;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Company Stats */
.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    border: 2px solid #e8dcc0;
    transform: rotate(-1deg);
}

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

.stat h4 {
    font-size: 2rem;
    color: #8b5a3c;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial {
    transform: rotate(0.5deg);
}

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

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #e8dcc0;
    position: absolute;
    left: -15px;
    top: -10px;
}

.testimonial cite {
    color: #8b5a3c;
    font-weight: bold;
}

/* Newsletter Form */
.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 3px solid #2c5e3e;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    transform: rotate(-0.3deg);
}

.form-group input:focus {
    outline: none;
    transform: rotate(0deg);
    box-shadow: 0 0 10px rgba(44, 94, 62, 0.3);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: #8b5a3c;
    margin-bottom: 0.5rem;
}

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

.social-links a {
    color: #2c5e3e;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #2c5e3e;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.social-links a:hover {
    background-color: #2c5e3e;
    color: white;
    transform: rotate(0deg);
}

/* Footer */
.footer {
    background-color: #2c5e3e;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #8b5a3c 0px,
        #8b5a3c 20px,
        #e8dcc0 20px,
        #e8dcc0 40px
    );
}

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

.footer-section h4 {
    color: #e8dcc0;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e8dcc0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(232, 220, 192, 0.3);
}

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #faf8f5 0%, #e8dcc0 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.3rem;
    color: #5a7c65;
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    transform: rotate(2deg);
}

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

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    text-align: center;
    transform: rotate(-0.5deg);
}

.team-member:nth-child(even) {
    transform: rotate(0.5deg);
}

.team-member .role {
    color: #8b5a3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    transform: rotate(0.3deg);
}

.project-card:nth-child(even) {
    transform: rotate(-0.3deg);
}

.about-contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Article Styles */
.article-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #faf8f5 0%, #e8dcc0 100%);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-link {
    color: #2c5e3e;
    text-decoration: none;
    font-weight: bold;
}

.meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #8b5a3c;
}

.article-excerpt {
    font-size: 1.3rem;
    color: #5a7c65;
    margin-top: 1rem;
}

.article-image {
    text-align: center;
    margin: 2rem 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    transform: rotate(-0.5deg);
}

.article-content {
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2,
.content-wrapper h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.article-footer {
    background-color: #f5f3f0;
    padding: 3rem 0;
}

.author-info {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    margin-bottom: 2rem;
    transform: rotate(-0.3deg);
}

.article-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.prev-article,
.next-article {
    color: #2c5e3e;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #2c5e3e;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    background-color: #2c5e3e;
    color: white;
}

/* Blog Styles */
.blog-card.featured {
    grid-column: span 2;
}

.blog-card.featured .blog-content h2 {
    font-size: 2rem;
}

.blog-more {
    text-align: center;
    margin-top: 3rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    color: #8b5a3c;
}

.legal-content h3 {
    margin-top: 1.5rem;
    color: #2c5e3e;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content address {
    background: #f5f3f0;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid #e8dcc0;
    margin: 1rem 0;
    font-style: normal;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid #2c5e3e;
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 -4px 10px rgba(44, 94, 62, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

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

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    max-width: 500px;
    margin: 1rem;
}

.cookie-category {
    margin: 1rem 0;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Cookie Policy Specific Styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #2c5e3e;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e8dcc0;
}

.cookie-table th {
    background-color: #2c5e3e;
    color: white;
    font-weight: bold;
}

.browser-instructions {
    background: #f5f3f0;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e8dcc0;
    margin: 2rem 0;
}

.browser-instructions h4 {
    color: #8b5a3c;
    margin-bottom: 0.5rem;
}

.impact-notice {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #ffc107;
    margin: 2rem 0;
}

.cookie-settings-section {
    background: #f5f3f0;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #2c5e3e;
    margin: 3rem 0;
    text-align: center;
}

/* Thanks Page Styles */
.thanks-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #faf8f5 0%, #e8dcc0 100%);
}

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

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-message {
    font-size: 1.3rem;
    color: #5a7c65;
    margin-bottom: 3rem;
}

.next-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    text-align: left;
    transform: rotate(-0.3deg);
}

.step:nth-child(even) {
    transform: rotate(0.3deg);
}

.step-number {
    background: #2c5e3e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #8b5a3c;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.preview-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #2c5e3e;
    transform: rotate(-0.5deg);
}

.preview-item:nth-child(even) {
    transform: rotate(0.5deg);
}

.preview-item svg {
    margin-bottom: 1rem;
}

.preview-item h3 {
    color: #8b5a3c;
    margin-bottom: 0.5rem;
}

.social-follow {
    margin: 3rem 0;
}

.social-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    background: white;
    color: #2c5e3e;
    text-decoration: none;
    border: 2px solid #2c5e3e;
    border-radius: 25px;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.social-link:hover {
    background: #2c5e3e;
    color: white;
    transform: rotate(0deg);
}

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

.contact-support {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.unsubscribe-info {
    background: #f5f3f0;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e8dcc0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(44, 94, 62, 0.2);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        border-top: 3px solid #2c5e3e;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

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

    .blog-card.featured {
        grid-column: span 1;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .meta-info {
        flex-wrap: wrap;
    }

    .article-navigation {
        flex-direction: column;
    }

    .cookie-buttons {
        flex-direction: column;
    }

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

    .thanks-actions {
        flex-direction: column;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}

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

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .cookie-modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal {
        display: none;
    }

    .section {
        padding: 20px 0;
    }

    .page-hero {
        padding: 40px 0 20px;
    }
}
