/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Appealing to female audience */
    --primary-color: #ff6b9d;
    --primary-dark: #e55a8c;
    --primary-light: #ff8fb3;
    
    /* Secondary Colors */
    --secondary-color: #4ecdc4;
    --secondary-dark: #3db8b0;
    --secondary-light: #6dd4cd;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #1a1a1a;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --hero-gradient: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --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: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-logo h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: var(--font-size-2xl);
    margin: 0;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .nav-logo img {
        height: 40px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 35px;
        max-width: 140px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.cta-button {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    padding: 120px 0 var(--spacing-3xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-promo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.hero-promo i {
    font-size: var(--font-size-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-xl);
}

.hero-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
}

.hero-placeholder p {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Sections */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon i {
    font-size: var(--font-size-2xl);
    color: white;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Services Preview */
.services-preview {
    padding: var(--spacing-3xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.service-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    border: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.service-icon i {
    font-size: var(--font-size-xl);
    color: white;
}

.service-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.service-card p {
    color: var(--medium-gray);
}

.services-cta {
    text-align: center;
}

/* Quote Section */
.quote-section {
    background: var(--primary-gradient);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    color: white;
}

.quote-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.quote-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.quote-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

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

.quote-buttons .btn-primary:hover {
    background: var(--light-gray);
}

.quote-buttons .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

.quote-note {
    opacity: 0.8;
}

.quote-note a {
    color: white;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-section h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-xl);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-section ul li i {
    color: var(--primary-light);
    width: 16px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--dark-gray);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Calculator Specific Styles */
.calculator-container {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-2xl) 0;
}

.calculator-result {
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    border-left: 4px solid var(--primary-color);
}

.calculator-result h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.price-breakdown {
    display: grid;
    gap: var(--spacing-sm);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.price-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-placeholder {
        width: 300px;
        height: 300px;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .quote-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* About page mobile adjustments */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        width: 100% !important;
        max-width: 250px;
        height: auto !important;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto;
        display: block;
    }
    
    /* Hero image mobile optimization */
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        order: -1;
        max-width: 100%;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 150px;
        max-height: 220px;
        object-fit: cover;
        border-radius: var(--border-radius-lg);
    }
    
    /* Gallery mobile optimization */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .gallery-item img {
        height: 140px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Team profile images mobile optimization */
    .profile-image-container {
        width: 60px;
        height: 60px;
    }
    
    .team-profile, 
    .profile-image,
    [src*="IMG_1650"] {
        max-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    /* Small screen image optimizations */
    .hero-image img {
        min-height: 120px;
        max-height: 180px;
        border-radius: var(--border-radius-md);
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .team-profile, 
    .profile-image,
    [src*="IMG_1650"] {
        max-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .profile-image-container {
        width: 50px;
        height: 50px;
    }
    
    .about-image img {
        max-width: 100px !important;
    }

    .hero-placeholder {
        width: 250px;
        height: 250px;
    }

    .hero-placeholder i {
        font-size: 3rem;
    }

    /* Enhanced mobile optimizations */
    .calculator-container {
        padding: var(--spacing-lg);
        margin: var(--spacing-lg) 0;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer-content {
        gap: var(--spacing-lg);
    }

    .footer-section {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Make tables and grids more mobile-friendly */
    .price-breakdown {
        font-size: var(--font-size-sm);
    }

    .price-item {
        padding: var(--spacing-xs) 0;
        flex-wrap: wrap;
    }

    /* Better spacing for mobile */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Improve touch targets */
    .nav-menu a {
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Google Form iframe responsive styling */
iframe {
    border: none;
    border-radius: var(--border-radius-lg);
    background: white;
}

/* Image styles for lawn care photos */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Responsive images for iPhone compatibility */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

/* Hero image responsive styles */
.hero-image {
    flex: 1;
    max-width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Gallery responsive improvements */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* About page specific images */
.about-main-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 180px;
    max-height: 250px;
    object-fit: cover;
}

/* Team profile images */
.profile-image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-profile, 
.profile-image,
[src*="IMG_1650"] {
    max-width: 100px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

/* BuildersCrack badge responsive */
.builders-crack-badge img,
[src*="builderscrack"] {
    max-width: 90px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.builders-crack-badge-large {
    max-width: 120px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* Very small screens (phones in portrait) */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-xl);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .calculator-container {
        padding: var(--spacing-md);
    }

    .quote-buttons {
        gap: var(--spacing-md);
    }

    .quote-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Very small screen image optimizations */
    .hero-image img {
        min-height: 100px;
        max-height: 150px;
        border-radius: var(--border-radius-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .gallery-item img {
        height: 100px;
    }
    
    /* Team profile images very small screen optimization */
    .profile-image-container {
        width: 40px;
        height: 40px;
    }
    
    .team-profile, 
    .profile-image,
    [src*="IMG_1650"] {
        max-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .about-image img {
        max-width: 120px !important;
    }
    
    /* BuildersCrack badge very small screens */
    .builders-crack-badge img,
    [src*="builderscrack"] {
        max-width: 70px;
    }
    
    .builders-crack-badge-large {
        max-width: 90px;
    }

    iframe {
        height: 1800px; /* Smaller height for very small screens */
    }
}

/* iPhone and Safari specific optimizations */
@supports (-webkit-touch-callout: none) {
    /* iPhone specific styles */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        -webkit-appearance: none;
        appearance: none;
        -webkit-border-radius: var(--border-radius-md);
        border-radius: var(--border-radius-md);
    }
    
    .btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Prevent zoom on form inputs for iPhone */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px !important;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

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