/* Hand-drawn style CSS with Swiss-themed colors */

:root {
    /* Swiss-inspired color palette */
    --swiss-red: #DC143C;
    --swiss-white: #FFFFFF;
    --swiss-gray: #6C757D;
    --alpine-blue: #0066CC;
    --mountain-green: #2E8B57;
    --snow-white: #FAFAFA;
    --charcoal: #343A40;
    --warm-gray: #F8F9FA;
    
    /* Hand-drawn effect variables */
    --sketch-border: 2px solid;
    --sketch-radius: 15px;
    --hover-transform: scale(1.02) rotate(0.5deg);
    
    /* Typography */
    --font-handwritten: 'Caveat', cursive;
    --font-body: 'Open Sans', sans-serif;
}

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

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

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

/* Hand-drawn animations */
@keyframes sketchy-draw {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.5deg); }
    75% { transform: rotate(-0.5deg); }
}

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

/* Sketchy elements */
.sketchy-title {
    font-family: var(--font-handwritten);
    font-weight: 700;
    color: var(--swiss-red);
    position: relative;
    margin-bottom: 1rem;
}

.sketchy-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 Q25,2 50,5 T100,5" stroke="%23DC143C" stroke-width="2" fill="none" stroke-linecap="round"/></svg>') repeat-x;
    opacity: 0.6;
}

.sketchy-btn {
    position: relative;
    background: var(--swiss-red);
    color: var(--swiss-white);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-handwritten);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    border-radius: 20px 15px 25px 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.sketchy-btn:hover {
    transform: var(--hover-transform);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15);
    animation: wiggle 0.5s ease-in-out;
}

.sketchy-btn.btn-outline {
    background: transparent;
    color: var(--swiss-red);
    border: 2px solid var(--swiss-red);
}

.sketchy-btn.btn-secondary {
    background: var(--swiss-gray);
    color: var(--swiss-white);
}

.sketchy-card {
    background: var(--swiss-white);
    border: 2px solid var(--charcoal);
    border-radius: 25px 10px 20px 15px;
    padding: 20px;
    margin: 15px 0;
    transform: rotate(0.5deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.sketchy-card:hover {
    transform: var(--hover-transform);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.sketchy-list {
    list-style: none;
    padding: 0;
}

.sketchy-list li {
    position: relative;
    padding-left: 25px;
    margin: 10px 0;
}

.sketchy-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--swiss-red);
    font-weight: bold;
    transform: rotate(-5deg);
}

.sketchy-form {
    background: var(--warm-gray);
    border: 2px dashed var(--swiss-gray);
    border-radius: 20px 15px 25px 10px;
    padding: 30px;
    transform: rotate(-0.5deg);
}

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo span {
    font-family: var(--font-handwritten);
    font-size: 24px;
    font-weight: 600;
    color: var(--swiss-red);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--swiss-red);
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--swiss-red);
    transition: width 0.3s ease;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Banner Section */
.banner {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--warm-gray) 0%, var(--snow-white) 100%);
    overflow: hidden;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--swiss-gray);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-graphic img {
    width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

/* About Section */
.about {
    background: var(--swiss-white);
}

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

.about-text h3 {
    font-family: var(--font-handwritten);
    font-size: 28px;
    color: var(--alpine-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.course-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--warm-gray);
    border-radius: 15px 20px 10px 25px;
    border: 2px dashed var(--swiss-red);
}

.course-info h4 {
    font-family: var(--font-handwritten);
    font-size: 22px;
    color: var(--swiss-red);
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--swiss-red);
    color: var(--swiss-white);
    border-radius: 20px 15px 25px 10px;
    transform: rotate(2deg);
}

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

.stat-number {
    font-family: var(--font-handwritten);
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    margin-top: 5px;
}

/* Services Section */
.services {
    background: var(--warm-gray);
}

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

.service-card {
    text-align: center;
}

.service-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-family: var(--font-handwritten);
    font-size: 24px;
    color: var(--alpine-blue);
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 15px;
    color: var(--swiss-gray);
}

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

.service-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mountain-green);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: var(--swiss-white);
}

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

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--swiss-gray);
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.author-info h4 {
    margin: 0;
    color: var(--charcoal);
    font-size: 16px;
}

.author-info span {
    font-size: 14px;
    color: var(--swiss-gray);
}

.rating {
    color: #FFD700;
    font-size: 14px;
}

/* Blog Section */
.blog {
    background: var(--warm-gray);
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-image {
    height: 200px;
    background: var(--swiss-gray);
    border-radius: 15px 20px 10px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.placeholder-image {
    font-size: 48px;
    opacity: 0.3;
}

.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-family: var(--font-handwritten);
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--alpine-blue);
    flex-grow: 0;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-content h3 a:hover {
    color: var(--swiss-red);
}

.blog-excerpt {
    flex-grow: 1;
    margin-bottom: 15px;
    color: var(--swiss-gray);
    font-size: 14px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--swiss-gray);
}

.blog-category {
    background: var(--swiss-red);
    color: var(--swiss-white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Subscription Section */
.subscription {
    background: var(--alpine-blue);
    color: var(--swiss-white);
}

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

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

.subscription p {
    font-size: 18px;
    margin-bottom: 40px;
}

.subscription-form {
    background: var(--swiss-white);
    color: var(--charcoal);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--swiss-gray);
    border-radius: 10px 15px 8px 12px;
    font-size: 16px;
    background: var(--snow-white);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--swiss-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 14px;
}

.checkbox-group a {
    color: var(--swiss-red);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--swiss-white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-family: var(--font-handwritten);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--swiss-red);
}

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

.footer-section li {
    margin: 8px 0;
}

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

.footer-section a:hover {
    color: var(--swiss-red);
}

.contact-info p {
    margin: 5px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    padding: 10px;
    background: var(--swiss-red);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: var(--hover-transform);
    background: var(--alpine-blue);
}

.footer-bottom {
    border-top: 1px solid var(--swiss-gray);
    padding-top: 20px;
    text-align: center;
    color: var(--swiss-gray);
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--swiss-white);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid var(--charcoal);
    border-radius: 20px 15px 25px 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--swiss-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--swiss-red);
}

.legal-content {
    margin-top: 20px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 10px 0 15px 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: var(--swiss-white);
    padding: 20px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--swiss-red);
}

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

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

.cookie-content h3 {
    font-family: var(--font-handwritten);
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--swiss-red);
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.cookie-category {
    margin: 15px 0;
    text-align: left;
}

.cookie-category label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.cookie-category input {
    margin-top: 3px;
}

.cookie-category .description {
    font-size: 14px;
    color: var(--swiss-gray);
    margin-top: 5px;
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--warm-gray) 0%, var(--snow-white) 100%);
    padding: 40px 20px;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
}

.thanks-icon {
    margin-bottom: 30px;
    animation: float 2s ease-in-out infinite;
}

.thanks-content h1 {
    font-size: 48px;
    color: var(--swiss-red);
    margin-bottom: 20px;
}

.thanks-message h2 {
    font-family: var(--font-handwritten);
    font-size: 28px;
    color: var(--alpine-blue);
    margin-bottom: 15px;
}

.thanks-message p {
    margin-bottom: 20px;
    color: var(--swiss-gray);
    font-size: 16px;
}

.next-steps {
    background: var(--warm-gray);
    border: 2px dashed var(--swiss-red);
    border-radius: 15px 20px 10px 25px;
    padding: 25px;
    margin: 30px 0;
    transform: rotate(-0.5deg);
}

.next-steps h3 {
    font-family: var(--font-handwritten);
    font-size: 22px;
    color: var(--swiss-red);
    margin-bottom: 15px;
}

.cta-section {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    margin-top: 40px;
    padding: 20px;
    background: #343a40;
    border-radius: 15px 20px 10px 25px;
    border: 2px solid var(--swiss-gray);
}

.contact-info h3 {
    font-family: var(--font-handwritten);
    color: var(--alpine-blue);
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--swiss-red);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 20px 15px 25px 10px;
    font-family: var(--font-handwritten);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--swiss-red);
    color: var(--swiss-white);
}

.btn-secondary {
    background: var(--swiss-gray);
    color: var(--swiss-white);
}

.btn-outline {
    background: transparent;
    color: var(--swiss-red);
    border: 2px solid var(--swiss-red);
}

.btn:hover {
    transform: var(--hover-transform);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--swiss-white);
        border-bottom: 3px solid var(--swiss-red);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    .nav li {
        border-bottom: 1px solid var(--warm-gray);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        font-family: var(--font-handwritten);
        color: var(--charcoal);
    }
    
    .nav a:after {
        display: none;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-text h1 {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .thanks-content h1 {
        font-size: 36px;
    }
    
    .sketchy-btn,
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .sketchy-card,
    .sketchy-form {
        transform: none;
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --swiss-red: #000000;
        --charcoal: #000000;
        --swiss-gray: #666666;
        --alpine-blue: #000000;
    }
}

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