/* ========================================
   NAIL & HAMMER CONSTRUCTION - STYLES
   Professional Construction Website
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Construction Industry Palette */
    --primary-navy: #1a365d;
    --primary-navy-dark: #0f2341;
    --primary-orange: #f97316;
    --primary-orange-dark: #ea580c;
    --primary-orange-light: #fed7aa;
    
    /* Neutral Colors */
    --charcoal: #374151;
    --gray-dark: #4b5563;
    --gray-medium: #6b7280;
    --gray-light: #9ca3af;
    --gray-lighter: #e5e7eb;
    --gray-lightest: #f3f4f6;
    --white: #ffffff;
    --black: #111827;
    
    /* Accent Colors */
    --gold: #d97706;
    --success: #059669;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1920px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-medium);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
}

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

.btn-white:hover {
    background: var(--gray-lightest);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

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

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

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 44px;
    width: auto;
    display: none;
    transition: var(--transition-medium);
}

.navbar.scrolled .logo-img {
    display: block;
}

.navbar.scrolled .logo-text {
    display: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition-medium);
}

.footer .logo-text {
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: var(--transition-medium);
}

.navbar.scrolled .nav-link {
    color: var(--charcoal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta {
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-md);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    background: var(--primary-orange-dark);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 0;
    transition: var(--transition-medium);
}

.navbar.scrolled .bar {
    background: var(--primary-navy);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(15, 35, 65, 0.9)), url('images/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}





.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.15;
}

.title-break {
    display: none;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: var(--section-padding) 0;
    background: var(--gray-lightest);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 14px 16px;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary-navy);
}

.service-card p {
    color: var(--gray-medium);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--white);
    background: var(--primary-orange);
    padding: 7px 16px;
    border-radius: var(--radius-md);
    display: inline-block;
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    background: var(--primary-orange-dark);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: var(--section-padding) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--gray-lighter) 0%, var(--gray-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-medium);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-orange);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.experience-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-text {
    color: var(--gray-medium);
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    padding: var(--section-padding) 0;
    background: var(--gray-lightest);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    color: var(--charcoal);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-navy);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    aspect-ratio: 4/3;
    width: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-medium);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-view-more {
    text-align: center;
    margin-top: 40px;
}

.portfolio-hidden {
    display: none;
}

.portfolio-grid.show-all .portfolio-hidden {
    display: block;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: var(--section-padding) 0;
    background: var(--gray-lightest);
}

.testimonials-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

.slider-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-xl);
}

.slider-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--gray-dark);
    font-style: italic;
    margin-bottom: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: 160px;
    min-height: 0;
    padding-right: 4px;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-lighter);
    margin-top: auto;
}

.review-avatar {
    width: 52px;
    height: 52px;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.review-meta strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary-navy);
    margin-bottom: 3px;
}

.review-meta span {
    font-size: 13px;
    color: var(--gray-medium);
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 2px solid var(--primary-navy);
    background: var(--white);
    color: var(--primary-navy);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: var(--gray-lighter);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.slider-dot.active {
    background: var(--primary-orange);
    transform: scale(1.3);
}




/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: var(--primary-navy);
    padding: 80px 0;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-lightest);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.7;
}

.contact-card a {
    color: var(--primary-orange);
}

.contact-card a:hover {
    color: var(--primary-orange-dark);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--primary-orange-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--primary-navy-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--primary-orange);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 100px 40px;
        gap: 25px;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--white);
        font-size: 18px;
    }

    .navbar.scrolled .nav-link {
        color: var(--white);
    }
    
    .nav-link.nav-cta {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Hero */
    .hero {
        text-align: center;
    }

    .hero-content {
        padding: 130px 16px 60px;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .title-break {
        display: inline;
    }

    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.6;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
        opacity: 0.85;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Testimonials slider */
    .testimonials-slider {
        gap: 8px;
    }

    .review-card {
        padding: 32px 24px;
    }

    .review-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 1.5px;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -20px;
        padding: 20px;
    }

    .experience-number {
        font-size: 36px;
    }
    
    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: left;
        font-size: 14px;
        line-height: 1.65;
    }
    
    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-container {
        text-align: center;
        justify-content: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .stat {
        align-items: center;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .portfolio-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Portfolio item visibility for filtering */
.portfolio-item.hidden {
    display: none;
}

/* ========================================
   SERVICE PAGES
   ======================================== */
.service-hero {
    background: var(--primary-navy);
    color: var(--white);
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 43, 60, 0.75);
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-size: 58px;
    margin-bottom: 20px;
    color: #ffffff;
}

.service-hero p {
    font-size: 22px;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff;
}

.service-detail {
    padding: 80px 0;
}

/* ── Service photos gallery ── */
.service-photos {
    padding: 60px 0;
    background: var(--gray-lightest);
}

.service-photos h3 {
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.service-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-photos-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

@media (max-width: 768px) {
    .service-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-photos-grid {
        grid-template-columns: 1fr;
    }
}

.service-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.service-content h2 {
    font-size: 32px;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin: 30px 0 15px;
}

.service-content p {
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-content ul,
.service-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.service-content ul {
    list-style: disc;
}

.service-content ol {
    list-style: decimal;
}

.service-content li {
    color: var(--charcoal);
    padding: 8px 0;
    line-height: 1.6;
}

.service-gallery {
    margin-bottom: 60px;
}

.service-gallery h3 {
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.service-cta {
    background: var(--gray-lightest);
    padding: 50px;
    text-align: center;
    border-radius: var(--radius-lg);
}

.service-cta h3 {
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-cta p {
    color: var(--gray-medium);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-cta {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: .7;
    transition: opacity .15s;
    z-index: 10;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 80px 16px;
    min-height: 0;
    box-sizing: border-box;
}
.lightbox-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 10;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    max-width: 100%;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); }

.lb-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    cursor: pointer;
    opacity: .5;
    transition: opacity .15s;
    flex-shrink: 0;
    border: 2px solid transparent;
}
.lb-thumb:hover { opacity: .8; }
.lb-thumb.active { opacity: 1; border-color: var(--primary-orange); }

@media (max-width: 600px) {
    .lightbox-main { padding: 56px 48px 12px; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 20px; }
    .lb-thumb { width: 56px; height: 40px; }
}
