/*
Theme Name: Michael White Painter & Decorator
Description: Custom child theme for Michael White Painter & Decorator business
Template: twentytwentyfive
Version: 1.1
*/

/* Cache buster - Updated at 2:18 PM */

@import url("../twentytwentyfive/style.css");

/* Custom styles for Michael White Painter & Decorator */

/* Clean color scheme using provided palette */
html {
    color-scheme: light only !important;
    background-color: var(--secondary-color) !important;
}

body {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override any dark mode styles */
@media (prefers-color-scheme: dark) {
    html,
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
        color-scheme: light only !important;
    }
    
    .site-header {
        background: #ffffff !important;
        color: #333333 !important;
    }
    
    .services-section {
        background: #f8f9fa !important;
    }
    
    .gallery-section {
        background: #f8f9fa !important;
    }
    
    .service-card,
    .review-card {
        background: #ffffff !important;
        color: #333333 !important;
    }
    
    .main-navigation a {
        color: #333333 !important;
    }
    
    .main-navigation a:hover {
        color: #2c5aa0 !important;
    }
    
    .about-text,
    .about-text p,
    .about-text h2 {
        color: #333333 !important;
    }
    
    .section-title,
    .section-subtitle {
        color: #333333 !important;
    }
}

/* Force light theme on WebKit browsers */
:root {
    color-scheme: light only !important;
}

/* Override system dark mode preferences */
html[data-theme="dark"],
body[data-theme="dark"],
.dark-mode,
.dark {
    background-color: #ffffff !important;
    color: #333333 !important;
    color-scheme: light only !important;
}

/* Mobile-first responsive fixes */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #1d3557;
    --secondary-color: #ffffff;
    --accent-color: #e63946;
    --tertiary-color: #457b9d;
    --quaternary-color: #a8dadc;
    --text-dark: #1d3557;
    --text-light: #457b9d;
    --white: #ffffff;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: block;
    max-width: 200px;
}

.site-branding .custom-logo {
    max-height: 150px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-title a:hover {
    color: var(--accent-color);
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d72 60%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section.has-background-image {
    background-blend-mode: overlay;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Features */
.hero-features {
    margin-top: 2rem;
    color: var(--white) !important;
}

.hero-features p {
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 4rem 0 2rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details {
    opacity: 0.9;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.25rem;
    align-self: flex-start;
}

.review-stars i {
    color: #ffd700;
    font-size: 1.3rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: auto;
    align-self: flex-end;
}

/* Desktop specific styling for horizontal layout */
@media (min-width: 769px) {
    .review-card {
        padding: 3rem 4rem;
        min-height: 180px;
    }
    
    .review-text {
        font-size: 1.15rem;
        line-height: 1.8;
        max-width: none;
    }
    
    .review-author {
        font-size: 1.25rem;
    }
    
    .review-stars i {
        font-size: 1.4rem;
    }
}

/* Google Reviews Button */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.btn-primary i {
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: var(--text-dark) !important;
    color: var(--white) !important;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-section h3 {
    color: var(--accent-color) !important;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a,
.footer-section li,
.footer-section {
    color: #ffffff !important;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--accent-color) !important;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-color) !important;
    color: var(--white) !important;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.social-link:hover {
    background: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin-top: 2rem;
    color: #ffffff !important;
}

.footer-bottom p {
    color: #ffffff !important;
}

/* Mobile Responsive Design */

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .site-branding .custom-logo {
        max-height: 100px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .hamburger {
        width: 20px;
        height: 2px;
    }
    
    .hero-section {
        padding: 2.5rem 0;
        background-attachment: scroll !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .services-section,
    .about-section,
    .gallery-section,
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        text-align: center;
    }
    
    .contact-icon {
        font-size: 1.75rem;
        color: var(--accent-color) !important;
    }
    
    .contact-title {
        font-size: 1.1rem;
        color: #ffffff !important;
    }
    
    .contact-details,
    .contact-details a {
        color: #ffffff !important;
    }
    
    /* Contact section mobile text visibility */
    .contact-section .section-title,
    .contact-section .section-subtitle {
        color: #ffffff !important;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 1.1rem;
    }
    
    .footer-content {
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0 0.5rem;
    }
}

/* Medium phones and small tablets */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    /* Hide hamburger menu completely */
    .menu-toggle {
        display: none !important;
    }
    
    /* Show navigation menu always on mobile */
    .menu-primary-container {
        display: block !important;
        position: static;
        width: 100%;
        margin-top: 0;
    }
    
    .main-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    .main-navigation li {
        border-bottom: none;
        margin: 0;
    }
    
    /* Hide Gallery link on mobile */
    .main-navigation li:nth-child(4) {
        display: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        background: var(--tertiary-color) !important;
        color: #ffffff !important;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 600;
    }
    
    .main-navigation a:hover {
        background-color: var(--accent-color) !important;
        color: #ffffff !important;
    }
    
    .hero-section {
        padding: 3rem 0;
        background-attachment: scroll !important;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    /* Reviews section mobile styles */
    .reviews-section {
        padding: 2.5rem 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .review-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }
    
    .review-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .review-author {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large tablets and small desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile container fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure all sections stay within viewport */
    .hero-section,
    .services-section,
    .about-section,
    .gallery-section,
    .contact-section,
    .reviews-section {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix any potential width issues */
    .header-content,
    .about-content,
    .services-grid,
    .gallery-grid,
    .contact-info,
    .footer-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure text doesn't overflow */
    .hero-title,
    .section-title,
    .service-title,
    .about-text h2 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix any margin/padding issues that could cause horizontal scroll */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Background Image Support */
.hero-section[style*="background-image"] {
    background-blend-mode: overlay;
}

/* EASY IMAGE EDITING - Change URLs below to update your website images */

/* Hero Background Image - EDIT THIS URL */
.hero-section.has-custom-bg {
    background: linear-gradient(rgba(44, 90, 160, 0.6), rgba(30, 61, 114, 0.6)), url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/hero1.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
}

/* Remove the overlay for custom background */
.hero-section.has-custom-bg::before {
    display: none !important;
}

/* Gallery Project Images - EDIT THESE URLs */
.gallery-item:nth-child(1) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/bathroom.jpg');
}

.gallery-item:nth-child(2) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/image8.jpg');
}

.gallery-item:nth-child(3) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/image5.jpg');
}

.gallery-item:nth-child(4) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/image4.jpg');
}

.gallery-item:nth-child(5) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/image2.jpg');
}

.gallery-item:nth-child(6) img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/image3.jpg');
}

/* About Section Image - EDIT THIS URL */
.about-image img {
    content: url('https://michaelwhitedecorating.co.uk/wp-content/uploads/2025/07/aboutcropped.png');
}

/* Custom Logo Support */
.custom-logo {
    max-height: 150px;
    width: auto;
}

/* Touch and Mobile Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .hero-cta:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Add touch feedback instead */
    .service-card:active,
    .gallery-item:active,
    .hero-cta:active,
    .btn:active,
    .social-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Improved touch targets */
@media (max-width: 768px) {
    /* Ensure all interactive elements are at least 44px */
    .main-navigation a,
    .hero-cta,
    .btn,
    .social-link,
    .contact-details a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-details a {
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .contact-details a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Better spacing for touch */
    .main-navigation li {
        margin: 0.25rem 0;
    }
    
    .social-links {
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    /* Improved readability */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Better form elements on mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .services-section,
    .about-section,
    .gallery-section,
    .contact-section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .custom-logo,
    .gallery-item img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Focus improvements for accessibility */
.menu-toggle:focus,
.hero-cta:focus,
.btn:focus,
.social-link:focus,
.main-navigation a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero-cta,
    .menu-toggle,
    .social-links {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: var(--text-dark);
    }
}
