/* Snaggins Surveyors - Main Stylesheet */
/* ===================================== */

/* CSS Variables for Consistent Design */
:root {
    --primary-color: #1a5490;
    --secondary-color: #f7941d;
    --accent-color: #2c3e50;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

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

.nav-menu li a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.85), rgba(247, 148, 29, 0.75));
    z-index: 1;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
    padding-top: 4rem;
}

.hero-text {
    color: white;
    padding-right: 3rem;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-feature i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.hero-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

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

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

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

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

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

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

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

.team-bio {
    color: var(--text-light);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-slider {
    max-width: 1000px;
    margin: 3rem auto;
    position: relative;
}

.review-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 0 1rem;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-location {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Areas Covered */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.area-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.area-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.area-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 3rem auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 1rem;
}

/* Blog Article Page */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.article-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-weight: 600;
}

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

.footer-bottom a {
    color: #ffffff !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-sm);
}

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

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

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

/* ========================================= */
/* COMPREHENSIVE MOBILE RESPONSIVE DESIGN */
/* ========================================= */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Better tap highlighting */
* { 
    -webkit-tap-highlight-color: transparent; 
}

/* Prevent text size adjustment */
html { 
    -webkit-text-size-adjust: 100%; 
}

/* Table responsiveness */
table {
    width: 100%;
    border-collapse: collapse;
}

/* ========================================= */
/* BREAKPOINT: Large Laptops (1200px) */
/* ========================================= */
@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* ========================================= */
/* BREAKPOINT: Tablets & Small Laptops (968px) */
/* ========================================= */
@media (max-width: 968px) {
    /* Navigation - Mobile Menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 1rem;
        min-height: 44px; /* Touch-friendly */
    }

    .menu-toggle {
        display: flex;
        width: 44px; /* Touch-friendly */
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .menu-toggle span {
        width: 25px;
        height: 3px;
    }
    
    /* Animated Hamburger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hero-form-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 2rem;
    }

    /* Grid Layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 1.5rem;
    }
}

/* ========================================= */
/* BREAKPOINT: Tablets Portrait (768px) */
/* ========================================= */
@media (max-width: 768px) {
    /* Typography - Fluid Scaling */
    html { 
        font-size: 15px; 
    }
    
    h1 { 
        font-size: 1.75rem; 
    }
    h2 { 
        font-size: 1.5rem; 
    }
    h3 { 
        font-size: 1.25rem; 
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-feature {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-feature i {
        font-size: 1.25rem;
    }
    
    /* Hide video background on mobile for performance */
    .hero-background video {
        display: none;
    }
    
    /* Forms */
    .hero-form-container {
        padding: 1.5rem;
    }
    
    .hero-form-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Grid Layouts - Stack on Tablet */
    .services-grid,
    .team-grid,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Service Cards */
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    /* Stats Section */
    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }

    /* Blog Article */
    .blog-article {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-meta {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* CTA Sections */
    .cta-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 10px;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* FAQ Section */
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem;
    }
    
    .faq-icon {
        font-size: 1.25rem;
    }
}

/* ========================================= */
/* BREAKPOINT: Mobile Landscape (600px) */
/* ========================================= */
@media (max-width: 600px) {
    /* Typography */
    html { 
        font-size: 14px; 
    }
    
    h1 { 
        font-size: 1.5rem; 
    }
    h2 { 
        font-size: 1.3rem; 
    }
    h3 { 
        font-size: 1.1rem; 
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Navigation */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo span {
        display: none; /* Hide text on very small screens */
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-form-container {
        padding: 1.25rem;
    }
    
    .hero-form-container h3 {
        font-size: 1.1rem;
    }

    /* Forms - All Forms */
    .hero-form,
    .contact-form-wrapper,
    .hero-form-container {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    /* HubSpot Form Overrides */
    .hs-form-field {
        margin-bottom: 0.75rem !important;
    }
    
    .hs-input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 0.6rem !important;
        font-size: 16px !important; /* Prevents iOS zoom */
        width: 100% !important;
    }
    
    .hs-button,
    .btn {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 1rem !important;
        min-height: 44px;
    }
    
    .hs-form-field label {
        font-size: 0.9rem !important;
    }

    /* Buttons - Touch Friendly */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: block;
        margin: 0.5rem 0;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem !important;
    }

    /* Grid Layouts */
    .services-grid,
    .team-grid,
    .areas-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }

    /* Stats */
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }

    /* Feature Items */
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Areas Cards */
    .area-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    /* Blog */
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }

    /* Blog Article */
    .blog-article {
        padding: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-header h2 {
        font-size: 1.25rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .accreditation-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        padding: 1rem;
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }

    /* FAQ */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        font-size: 0.9rem;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-form-wrapper {
        padding: 1rem;
    }

    /* CTA Sections */
    .cta-section {
        padding: 2rem 1.5rem;
        border-radius: 10px;
        margin: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Review Cards */
    .review-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

/* ========================================= */
/* BREAKPOINT: Mobile Portrait (480px) */
/* ========================================= */
@media (max-width: 480px) {
    /* Extra small adjustments */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1.15rem;
    }
    
    h3 {
        font-size: 1rem;
    }

    /* Hero */
    .hero-text h1 {
        font-size: 1.25rem;
    }
    
    .hero-form-container h3 {
        font-size: 1rem;
    }
    
    .hero-form-container {
        padding: 1rem;
    }

    /* Forms */
    input, textarea, select {
        padding: 0.6rem !important;
        font-size: 16px !important;
    }
    
    button,
    .btn {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Service Cards */
    .service-card {
        padding: 1rem;
    }

    /* Stats */
    .stat-item h3 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-container {
        padding: 1.5rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================= */
/* BREAKPOINT: Extra Large Desktops (1400px+) */
/* ========================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
}

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

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Print Styles */
@media print {
    .navbar,
    .hero-form-container,
    footer {
        display: none;
    }
}