/* ==========================================
   JOULUPUKKIPALVELUT - CSS TYYLIT
   ========================================== */

/* === YLEISET TYYLIT === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Väripaletti - jouluiset sävyt */
    --primary-red: #c41e3a;
    --dark-red: #8b0000;
    --light-red: #dc143c;
    --christmas-green: #165b33;
    --dark-green: #0f3d23;
    --light-green: #228b22;
    --gold: #d4af37;
    --cream: #fff8dc;
    --snow-white: #fffafa;
    --dark-text: #2c2c2c;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    
    /* Typografia */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Varjot */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--snow-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--christmas-green);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === NAVIGAATIO === */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Kielivalitsin */
.language-switcher a {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.language-switcher a:hover {
    transform: scale(1.2);
    opacity: 0.8;
    background-color: transparent;
}

/* Hampurilaismenu mobiilille */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* === PAINIKKEET === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--christmas-green);
    color: white;
    border-color: var(--christmas-green);
}

.btn-secondary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === HERO-OSIO (ETUSIVU) === */
.hero {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 80px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-image {
    flex: 0 0 300px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--gold);
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero .btn {
    margin: 0 10px 10px 0;
}

/* === SIVUN OTSIKKO === */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--cream);
}

/* === OSIOT === */
section {
    padding: 60px 20px;
}

.introduction,
.services-preview,
.contact-preview {
    background-color: white;
}

.introduction {
    background-color: var(--light-gray);
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.intro-image {
    flex: 0 0 350px;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--primary-red);
}

/* === PALVELUKORTIT === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dark-text);
}

/* === YKSITYISKOHTAISET PALVELUT === */
.services-detailed {
    background-color: var(--light-gray);
}

.service-detail {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

.service-detail.highlight {
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.service-detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-detail h2 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-detail h3 {
    color: var(--christmas-green);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-detail ul {
    margin: 1rem 0 1rem 2rem;
}

.service-detail li {
    margin-bottom: 0.5rem;
}

.service-note {
    background-color: var(--cream);
    padding: 15px;
    border-left: 4px solid var(--gold);
    margin-top: 1rem;
    border-radius: 5px;
}

/* === HINNOITTELU === */
.pricing-info {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
}

.pricing-info h2 {
    color: white;
}

.pricing-info ul {
    margin: 1rem 0 1rem 2rem;
}

/* === GALLERIA === */
.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 20px;
    background-color: var(--cream);
    border-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-gray) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--dark-text);
}

.gallery-placeholder span {
    font-size: 4rem;
    margin-bottom: 10px;
}

.gallery-caption {
    padding: 15px;
    background-color: white;
    text-align: center;
    font-weight: 600;
}

.gallery-instructions {
    background-color: var(--cream);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.gallery-instructions code {
    background-color: var(--light-gray);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* === YHTEYSTIEDOT === */
.contact-section {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-gray);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* === LOMAKE === */
.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--christmas-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-gray);
    border-radius: 5px;
    font-family: var(--font-main);
    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(--primary-red);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* === VINKIT JA UKK === */
.booking-tips,
.faq-section {
    margin-top: 60px;
}

.tips-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tip-card,
.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.tip-card h3,
.faq-item h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* === CTA-OSIO === */
.cta-section,
.contact-preview {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    text-align: center;
}

.cta-section h2,
.contact-preview h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p,
.contact-preview p {
    margin-bottom: 2rem;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-center {
    text-align: center;
    margin-top: 30px;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-green);
    color: white;
    padding: 40px 20px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* === RESPONSIIVINEN SUUNNITTELU === */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-red);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        flex: 0 0 auto;
        max-width: 250px;
    }

    .hero-text {
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero .btn {
        margin: 0 5px 10px 5px;
    }

    .intro-content {
        flex-direction: column;
    }

    .intro-image {
        flex: 0 0 auto;
        max-width: 300px;
    }

    .intro-text p {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .service-detail {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMAATIOT === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.service-detail,
.gallery-item {
    animation: fadeIn 0.6s ease-out;
}

/* === VARAUSKALENTERI === */
.calendar-section {
    background-color: var(--light-gray);
}

.calendar-intro {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-intro h2 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.legend-color.available {
    background-color: #28a745;
}

.legend-color.booked {
    background-color: #dc3545;
}

.booking-calendar {
    max-width: 420px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-slot {
    background: white;
    border-radius: 10px;
    padding: 18px 18px 18px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 18px;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-slot.available {
    border-left: 5px solid #28a745;
}

.time-slot.booked {
    border-left: 5px solid #dc3545;
    opacity: 0.8;
}

.time-slot .time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    min-width: 80px;
}

    .time-slot .status-indicator {
        font-size: 2.8rem;
        line-height: 1;
        font-weight: bold;
        margin-right: 8px;
    }

    .time-slot.available .status-indicator {
        color: #28a745;
    }

    .time-slot.booked .status-indicator {
        color: #dc3545;
    }

.time-slot .status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.time-slot.available .status-badge {
    background-color: #28a745;
    color: white;
}

.time-slot.booked .status-badge {
    background-color: #dc3545;
    color: white;
}

.time-slot .location {
    font-size: 0.9rem;
    color: #666;
}

.booking-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.booking-info h3 {
    color: var(--christmas-green);
    margin-bottom: 1rem;
}

.booking-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.booking-note {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
}
