/* WTS Towing - Professional CSS Styles - Updated Cache Buster v11 */

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    min-height: 100vh;
    padding-top: 120px;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 65px;
    width: auto;
    max-width: 320px;
    transition: var(--transition);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-slogan {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1;
    text-align: center;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.25rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mobile-actions,
.mobile-social {
    display: none;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
    background-color: rgba(30, 64, 175, 0.1);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Emergency Call Button */
.emergency-btn {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
}

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

/* Main Content */
main {
    margin-top: 0;
    min-height: calc(100vh - 120px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #333333);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

/* Mobile First - Phone Screens (320px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Header adjustments */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    /* Hero section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-card ul {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }
    
    .service-card ul li {
        margin-bottom: 0.3rem;
        word-wrap: break-word;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    /* Service Areas responsive */
    .service-areas-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    /* Section spacing */
    .section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Tablet Screens (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 750px;
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* Laptop Screens (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1000px;
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .service-card[style*="grid-column: span 2"] {
        grid-column: span 2;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Update existing desktop layout to work with new responsive system */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-header h2 {
        font-size: 3.5rem;
    }
}

/* Additional Cross-Device Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Logo responsive sizing for all devices */
.logo img {
    height: 65px;
    width: auto;
    max-width: 320px;
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding-top: 110px;
    }
    
    main {
        min-height: calc(100vh - 110px);
    }
    
    .logo img {
        height: 70px;
        max-width: 350px;
    }
    
    .logo-slogan {
        font-size: 1rem;
        margin-top: 0.4rem;
        letter-spacing: 0.6px;
    }
    
    .navbar {
        padding: 1.2rem 0;
    }
    
    .container {
        max-width: 900px;
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Laptop/Small Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    body {
        padding-top: 130px;
    }
    
    main {
        min-height: calc(100vh - 130px);
    }
    
    .logo img {
        height: 75px;
        max-width: 380px;
    }
    
    .logo-slogan {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        letter-spacing: 0.7px;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .container {
        max-width: 1100px;
        padding: 0 1.8rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    body {
        padding-top: 140px;
    }
    
    main {
        min-height: calc(100vh - 140px);
    }
    
    .logo img {
        height: 80px;
        max-width: 400px;
    }
    
    .logo-slogan {
        font-size: 1.2rem;
        margin-top: 0.6rem;
        letter-spacing: 0.8px;
    }
    
    .navbar {
        padding: 1.8rem 0;
    }
    
    .container {
        max-width: 1300px;
        padding: 0 2.5rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    body {
        padding-top: 110px !important;
    }
    
    main {
        min-height: calc(100vh - 110px) !important;
    }
    
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .logo img {
        height: 45px !important;
        margin-bottom: 0.3rem !important;
    }
    
    .logo h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .logo-slogan {
        font-size: 0.75rem !important;
        margin-top: 0 !important;
    }
    
    .navbar {
        padding: 0.4rem 0 !important;
    }
    
    .hamburger {
        position: absolute !important;
        top: 15px !important;
        right: 1rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
    
    .logo img {
        height: 55px;
        max-width: 280px;
    }
    
    .logo-slogan {
        font-size: 0.75rem;
        margin-top: 0.2rem;
        letter-spacing: 0.4px;
    }
    
    .navbar {
        padding: 1rem 0;
    }
}

/* Fix for very small screens (320px) */
@media (max-width: 320px) {
    body {
        padding-top: 120px !important;
    }
    
    main {
        min-height: calc(100vh - 120px) !important;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .logo h1 {
        font-size: 1.1rem !important;
    }
    
    .logo-slogan {
        font-size: 0.65rem !important;
    }
    
    .hamburger {
        top: 12px !important;
    }
    
    .service-card {
        margin: 0;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section {
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 50px;
        max-width: 250px;
    }
    
    .logo-slogan {
        font-size: 0.65rem;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Features Section */
.features {
    background: var(--light-color);
    padding: 4rem 0;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    flex-direction: column;
}

.feature-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

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

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.team-member h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
    margin-top: auto;
    clear: both;
}

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

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

/* Section Utilities */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

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

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

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 110px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
        height: auto;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu li a {
        padding: 1rem;
        display: block;
    }
    
    .mobile-actions {
        display: block !important;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        margin-top: 1rem;
        text-align: center;
    }
    
    .mobile-emergency-btn {
        background: linear-gradient(135deg, var(--error-color), #dc2626) !important;
        color: white !important;
        padding: 0.8rem 1.5rem !important;
        border-radius: 2rem !important;
        font-weight: bold !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0.5rem auto !important;
        transition: var(--transition) !important;
        box-shadow: var(--shadow) !important;
    }
    
    .mobile-emergency-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    .mobile-social {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 1rem 0 !important;
        border-top: 1px solid var(--border-color) !important;
        margin-top: 1rem !important;
    }
    
    .mobile-social a {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.8rem 1rem !important;
        color: var(--text-color) !important;
        text-decoration: none !important;
        border-radius: 0.5rem !important;
        transition: var(--transition) !important;
    }
    
    .mobile-social a:hover {
        background-color: var(--light-color) !important;
        color: var(--primary-color) !important;
    }

    .header-actions {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: flex-end;
        position: relative;
    }

    .social-links {
        display: none;
    }

    .emergency-btn {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }
    
    .logo-slogan {
        font-size: 0.75rem;
        margin-top: 0.2rem;
        letter-spacing: 0.4px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .features-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo img {
        height: 40px;
        max-width: 160px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .hamburger,
    .emergency-btn,
    .nav-menu {
        display: none !important;
    }

    header {
        position: static;
        box-shadow: none;
    }

    main {
        margin-top: 0;
    }

    .hero {
        background: none;
        color: var(--text-color);
    }

    .btn {
        border: 1px solid var(--text-color);
        background: none;
        color: var(--text-color);
    }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .logo img {
        height: 45px;
        max-width: 180px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo img {
        height: 30px;
        max-width: 120px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .social-links a {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .emergency-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Focus styles for better accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
