/* ============================================
   RUKMAN OÜ - Staatiline veebileht
   Haljastus, kivitööd, maastikuehitus
   ============================================ */

/* 1. CSS Custom Properties
   ============================================ */
:root {
    /* Värvid (WP teemast) */
    --color-primary: #2a7d2e;
    --color-primary-dark: #124a2f;
    --color-darkest: #0b3d2c;
    --color-body-text: #2f2f2f;
    --color-bg: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-line: #ededed;
    --color-muted: #7e7e7e;
    --color-border: #c0c0c0;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Fondid */
    --font-primary: 'Montserrat', sans-serif;
    --font-decorative: 'Patrick Hand', cursive;
    --font-logo: 'Poppins', sans-serif;

    /* Layout */
    --site-max-width: 1260px;
    --header-height: 90px;
    --small-padding: 20px;
    --horizontal-padding: 50px;
    --vertical-padding: 30px;
    --box-outer-padding: 60px;
    --border-radius: 6px;
    --border-radius-oval: 30em;

    /* Shadows */
    --shadow-soft: 0 2px 40px 0 rgba(0,0,0,0.05);
    --shadow-card: 0 5px 30px rgba(0,0,0,0.08);
    --shadow-button: 0 0 25px -14px var(--color-primary);
}

/* 2. Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-body-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-darkest);
}

ul, ol {
    list-style: none;
}

/* 3. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.12;
}

h2 {
    font-size: 40px;
    font-weight: 500;
    color: var(--color-primary-dark);
    line-height: 1.13;
}

h3 {
    font-size: 26px;
    font-weight: 300;
    color: var(--color-darkest);
    line-height: 1.15;
}

h4 {
    font-size: 22px;
    font-weight: 300;
    color: var(--color-darkest);
    line-height: 1.18;
}

h5 {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-darkest);
    line-height: 1.38;
}

h6 {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-muted);
    line-height: 1.33;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1em;
}

.text-decorative {
    font-family: var(--font-decorative);
    font-size: 30px;
    font-weight: 700;
    font-style: italic;
    color: #4a4a4a;
}

/* 4. Layout Containers
   ============================================ */
.limit-wrapper {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--small-padding);
}

.section {
    padding: var(--box-outer-padding) 0;
}

.section-light {
    background-color: var(--color-light-bg);
}

.section-green {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark {
    background-color: var(--color-darkest);
    color: var(--color-white);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.text-center {
    text-align: center;
}

/* 5. Top Bar
   ============================================ */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 400;
}

.top-bar .limit-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

.top-bar a {
    color: var(--color-white);
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
    color: var(--color-white);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    font-size: 16px;
}

/* 6. Header & Navigation
   ============================================ */
.fixed-header-box {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    transition: box-shadow 0.3s ease;
}

.fixed-header-box.scrolled {
    box-shadow: var(--shadow-soft);
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-contents {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 65px;
    width: auto;
}

/* Main Menu */
#main-menu ul.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

#main-menu ul.menu > li > a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-body-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

#main-menu ul.menu > li > a:hover,
#main-menu ul.menu > li.current > a {
    color: var(--color-primary);
}

#main-menu ul.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#main-menu ul.menu > li > a:hover::after,
#main-menu ul.menu > li.current > a::after {
    transform: scaleX(1);
}

/* CTA Button in Header */
.header-cta {
    margin-left: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-darkest);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* 7. Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-oval);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background-color: var(--color-darkest);
    border-color: var(--color-darkest);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-small {
    padding: 10px 24px;
    font-size: 13px;
}

/* 8. Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 61, 44, 0.85) 0%, rgba(42, 125, 46, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 40px 20px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-content .btn {
    font-size: 16px;
    padding: 16px 40px;
}

/* 9. Page Header
   ============================================ */
.page-header {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 61, 44, 0.8) 0%, rgba(42, 125, 46, 0.65) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.page-header-content h1 {
    color: var(--color-white);
    font-size: 46px;
    margin-bottom: 10px;
}

.page-header-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 10. Statistics Section
   ============================================ */
.stats-section {
    padding: 50px 0;
    background-color: var(--color-light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 300;
}

/* 11. Services Cards
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-body {
    padding: 25px;
}

.service-card-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Services page - larger cards */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-3px);
}

.service-detail-card .service-card-img {
    height: 280px;
}

.service-detail-card .service-card-body {
    padding: 30px;
}

.service-detail-card .service-card-body h3 {
    font-size: 24px;
}

.service-detail-card .service-card-body p {
    font-size: 15px;
}

/* 12. Portfolio Grid
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    transform: translateY(0);
}

.portfolio-item-overlay h4 {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
}

/* 13. About / Company Section
   ============================================ */
.about-intro {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary-dark);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
}

.about-block {
    margin-bottom: 50px;
}

.about-block h3 {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.about-block p {
    font-size: 16px;
    line-height: 1.7;
}

.quote-block {
    background-color: var(--color-light-bg);
    border-left: 4px solid var(--color-primary);
    padding: 30px 40px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quote-block blockquote {
    font-family: var(--font-decorative);
    font-size: 24px;
    color: var(--color-primary-dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

.quote-block cite {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    font-style: normal;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-image img {
    width: 100%;
    height: auto;
}

/* 14. CTA Banner
   ============================================ */
.cta-banner {
    background-color: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-white);
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 15. Contact Form
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-darkest);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-oval);
    background-color: var(--color-white);
    color: var(--color-body-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 125, 46, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-border);
}

.form-status {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: #e8f5e9;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.form-status.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Contact Info */
.contact-info {
    padding: 30px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-darkest);
    margin-bottom: 5px;
}

.contact-info-text p {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 0;
}

.contact-info-text a {
    color: var(--color-primary);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--color-darkest);
    color: var(--color-white);
}

/* Map */
.map-container {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* 16. Footer
   ============================================ */
.main-footer {
    background-color: var(--color-darkest);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    display: inline-block;
    padding: 2px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-business-info {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
}

/* 17. Scroll to Top
   ============================================ */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

#scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

#scroll-to-top:hover {
    background-color: var(--color-darkest);
    transform: scale(1.1);
}

/* 18. Utilities
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-white);
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* 19. Responsive
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --box-outer-padding: 40px;
    }

    h1 { font-size: 38px; }
    h2 { font-size: 32px; }

    .hero { min-height: 450px; }
    .hero-content h1 { font-size: 36px; }

    /* Header mobile */
    .mobile-menu-toggle {
        display: block;
    }

    #main-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    #main-menu.is-open {
        right: 0;
    }

    #main-menu ul.menu {
        flex-direction: column;
        gap: 0;
    }

    #main-menu ul.menu > li > a {
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--color-line);
    }

    #main-menu ul.menu > li > a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --box-outer-padding: 30px;
        --small-padding: 15px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .hero { min-height: 400px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 16px; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number { font-size: 48px; }

    .three-col {
        grid-template-columns: 1fr;
    }

    .four-col {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-header { min-height: 220px; }
    .page-header-content h1 { font-size: 32px; }

    .cta-banner h2 { font-size: 28px; }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .top-bar .limit-wrapper {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }

    .hero-content h1 { font-size: 26px; }
    .hero-content .btn { padding: 12px 28px; font-size: 14px; }

    .btn { padding: 12px 24px; font-size: 13px; }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}
