/* CSS Variables */
:root {
    --primary-red: #ff1919;
    --primary-dark: #cc0000;
    --accent-red: #ff4444;
    --accent-hover: #ff0000;
    --accent-red-soft: #ff6565;
    --accent-orange: #ff1919;
    --dark-gray: #191919;
    --dark-elevated: #232323;
    --dark-surface: #1d1d1d;
    --light-gray: #666666;
    --muted-text: #b8b8b8;
    --background-dark: #191919;
    --background-light: #f5f5f5;
    --background-beige: #212121;
    --white: #ffffff;
    --border-dark: #333333;
    --border-light: #4b4b4b;
    --primary-green: #ff1919;
    
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
    
    --transition: all 0.3s ease;
}



/* Top Bar */
.top-bar {
    background-color: #ff1919;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.top-bar a {
    color: black;
    text-decoration: none;
}

.top-bar i {
    color: black; /* ensure the phone icon in the top-bar is black */
}

.puhelin {
    width: 18px;
    height: auto;
    margin-right: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: radial-gradient(circle at 20% 0%, #272727 0%, #1b1b1b 40%, #141414 100%);
    color: var(--white);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About section visual styles (keeps all text intact) */
.about-section { padding: 40px 0; }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
/* Make the photo container circular and give the container the shadow so the shadow follows the circle */
.about-photo {
    width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.about-content .section-title { margin-bottom: 12px; }
.about-par { color: rgba(255,255,255,0.95); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.about-sub { color: var(--primary-red); margin-top: 12px; margin-bottom: 8px; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo img { max-height: 320px; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(180deg, #ff3434 0%, #e70f0f 100%);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(255, 25, 25, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #2b2b2b;
    color: var(--white);
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #383838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

/* Header */
.header {
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
}

.nav {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    color: var(--white);
    background: rgba(255, 25, 25, 0.18);
    border: 1px solid rgba(255, 25, 25, 0.34);
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    background: var(--primary-red);
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(125deg, rgba(12, 12, 12, 0.82) 0%, rgba(17, 17, 17, 0.72) 40%, rgba(28, 28, 28, 0.72) 100%), 
                url('kuvat/puukasa-pilkottu-puu.webp') center/cover;
    min-height: 56vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.hero-content p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    margin-bottom: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-main {
    min-height: 76vh;
    padding: 24px 0 12px;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.26) 44%, rgba(10, 10, 10, 0.08) 72%, rgba(10, 10, 10, 0) 100%);
    z-index: 1;
}

.hero-main .container {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.hero-main .hero-content {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
    z-index: 2;
    max-width: min(740px, 55%);
    padding-top: 8px;
}

.hero-main .hero-content h1,
.hero-main .hero-content p {
    margin-left: 0;
    margin-right: 0;
}

.hero-main .hero-content h1 {
    letter-spacing: -0.02em;
    max-width: 24ch;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: #f0f0f0;
    font-weight: 600;
    max-width: 42ch;
}

.hero-points {
    list-style: none;
    max-width: 620px;
    margin: 0 auto 12px;
    text-align: left;
    display: grid;
    gap: 8px;
}

.hero-points li {
    color: #efefef;
    font-weight: 500;
    position: relative;
    padding-left: 30px;
}

.hero-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    position: absolute;
    left: 0;
    top: 1px;
}

.hero-areas {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.hero-areas span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5f5;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.hero-brand {
    min-height: 44vh;
    background-position: center 38%;
}

.hero-figure {
    position: absolute;
    right: -40px;
    bottom: -74px;
    z-index: 2;
    pointer-events: none;
}

.hero-figure img {
    width: 100%;
    max-width: 715px;
    max-height: 98vh;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.48));
}

.hero-main .hero-buttons {
    justify-content: flex-start;
    margin-top: 16px;
    gap: 12px;
}

.tax-deduction-hero {
    margin-top: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ff1919;
    text-align: left;
}

/* Hero layout: desktop version */
@media (min-width: 992px) {
    .hero-main {
        min-height: 78vh;
        padding: 28px 0 14px;
    }

    .hero-main .container {
        min-height: 66vh;
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.3fr);
        align-items: end;
        column-gap: 0;
        padding-top: 0;
    }

    .hero-main .hero-content {
        max-width: 100%;
        padding-top: 18px;
        text-align: left;
        justify-self: start;
    }

    .hero-main .hero-content h1 {
        max-width: 44ch;
    }

    .hero-subtitle {
        max-width: 52ch;
    }

    .hero-points {
        max-width: 620px;
        margin: 0 0 14px;
    }

    .hero-main .hero-buttons {
        justify-content: flex-start;
    }

    .tax-deduction-hero {
        text-align: left;
    }

    .hero-areas {
        justify-content: flex-start;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .hero-figure {
        position: absolute;
        right: -40px;
        bottom: -90px;
        justify-self: end;
        align-self: end;
    }

    .hero-figure img {
        max-width: 300px;
        max-height: 88vh;
    }
}

/* Hero layout: tablet/mobile version */
@media (max-width: 991px) {
    .hero-main {
        min-height: auto;
        padding: 28px 0 10px;
    }

    .hero-main .container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 0;
    }

    .hero-main .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .hero-main .hero-content h1,
    .hero-main .hero-content p,
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-points {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-main .hero-buttons,
    .hero-areas {
        justify-content: center;
    }

    .hero-areas {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .tax-deduction-hero {
        text-align: center;
    }

    .hero-figure {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 6px;
    }

    .hero-figure img {
        max-width: 420px;
        width: min(70vw, 420px);
        max-height: 52vh;
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero buttons used on service landing pages and subpages */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: linear-gradient(180deg, #171717 0%, #111111 100%);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 48px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #3f3f3f;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 16px;
}

.service-card p {
    color: #dddddd;
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    margin-bottom: 24px;
}

.service-list li {
    padding: 8px 0;
    color: #bdbdbd;
    font-size: var(--font-size-sm);
}

.service-list li::before {
    content: "✓";
    color: var(--primary-red);
    font-weight: bold;
    margin-right: 8px;
}

/* Why Choose Us */
.why-choose {
    padding: 80px 0;
    background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    text-align: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--white);
    font-size: var(--font-size-sm);
}

/* Image Section */
.image-section {
    padding: 60px 0;
    background: #121212;
}

.centered-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 25, 25, 0.2);
}

.centered-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--background-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 24px 16px 16px;
}

.portfolio-caption h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.portfolio-caption p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* Equipment Gallery */
.equipment-gallery {
    padding: 80px 0;
    background: var(--border-dark);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.equipment-item {
    text-align: center;
    background: var(--background-dark);
    padding: 24px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-dark);
}

.equipment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.equipment-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.equipment-item h4 {
    color: var(--primary-red);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--background-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-item {
    background: var(--background-beige);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.testimonial-item::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-green);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--light-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-green);
}

/* Quote Form */
.quote-section {
    padding: 80px 0;
    background: var(--primary-red);
    color: var(--white);
}

.quote-section .section-title {
    color: var(--white);
}

.quote-form {
    max-width: 600px;
    margin: 48px auto 0;
    background: var(--border-dark);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* Elegant checkbox grid for services */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--border-dark);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--white);
}

.checkbox-item:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 25, 25, 0.2);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    display: block;
    text-align: center;
    line-height: 1;
}

/* Footer */
.footer {
    background: #101010;
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #cccccc;
}

.contact-info i {
    width: 20px;
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: var(--font-size-sm);
}

.tax-note {
    color: #ff7a7a;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Mobile WhatsApp button */
.whatsapp-float {
    position: fixed;
    left: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.whatsapp-float i {
    font-size: 1.7rem;
    line-height: 1;
}

@media (min-width: 992px) {
    .whatsapp-float {
        display: none;
    }
}

@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
    }

    .top-bar {
        font-size: 14px;
        padding: 8px 10px;
    }

    .hero-main .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        line-height: 1.12;
    }

    .hero-subtitle {
        max-width: 30ch;
    }

    .hero-main .hero-buttons .btn,
    .hero-buttons .btn,
    .btn-lg {
        min-height: 48px;
    }

    .hero-areas span {
        font-size: 0.8rem;
        padding: 5px 9px;
    }

    .service-grid {
        gap: 18px;
    }

    .service-card {
        border-radius: 14px;
    }

    .service-image {
        height: 185px;
    }

    .nav.mobile-active {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .whatsapp-float {
        left: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }

    .back-to-top {
        right: 14px !important;
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-content p {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        min-width: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .service-grid,
    .features-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quote-form {
        margin: 32px 16px 0;
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobile navigation open state */
    .nav.mobile-active {
        display: flex !important;
        position: absolute;
        top: 64px; /* below header */
        left: 16px;
        right: 16px;
        background: rgba(14,14,14,0.98);
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        z-index: 1001;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    }

    .nav.mobile-active a {
        display: block;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    /* Make about photo scale down and center on narrow screens */
    .about-photo { width: 100%; max-width: 260px; margin: 0 auto; }

    .hero-main {
        min-height: auto;
        padding: 22px 0 8px;
    }

    .hero-main .container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-top: 0;
    }

    .hero-main .hero-content {
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-main .hero-content h1,
    .hero-main .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-points {
        text-align: left;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-areas {
        justify-content: center;
        gap: 6px;
    }

    .hero-figure {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 12px;
    }

    .hero-figure img {
        max-width: 360px;
        width: min(72vw, 360px);
        max-height: 44vh;
    }

    .service-grid {
        gap: 22px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-card h3 {
        font-size: 1.12rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .service-list li {
        font-size: 0.82rem;
        padding: 5px 0;
    }

    .hero-main .hero-buttons {
        justify-content: center;
        margin-top: 16px;
    }

    .tax-deduction-hero {
        text-align: center;
    }
}

/* Extra small phones tweaks */
@media (max-width: 420px) {
    body { font-size: 0.95rem; }
    .mobile-menu-toggle span { width: 22px; }
    .nav.mobile-active { left: 8px; right: 8px; top: 60px; }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 22px 0 8px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-points li {
        font-size: 0.95rem;
    }

    .hero-figure img {
        width: min(78vw, 310px);
        max-height: 40vh;
    }

    .hero-figure {
        margin-top: 14px;
    }
    
    .service-card,
    .quote-form {
        padding: 18px 14px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: var(--font-size-base);
    }
    
    .centered-image {
        border-radius: 8px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
