/* Preston Surveyor - Main Stylesheet */

:root {
    --primary-color: #1a4d7d;
    --secondary-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    color: var(--white);
    padding: 3rem 0;
}

/* Hero Video/Image Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none; /* Hidden by default, shown only on mobile or if video fails */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 125, 0.92) 0%, rgba(26, 77, 125, 0.88) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: flex-start;
}

.hero-text {
    padding-top: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
    font-weight: 700;
    margin-top: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.125rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
}

.hero-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    margin-top: 2rem;
    align-self: flex-start;
}

.hero-form h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.hero-form p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

#hero-form-container {
    min-height: 200px;
}

#bottom-form-container {
    min-height: 200px;
}

#hero-form-container:empty::before,
#bottom-form-container:empty::before {
    content: 'Loading form...';
    display: block;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.service-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

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

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

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

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

.team-member p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

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

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

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

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.article-header {
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.faq-question:hover {
    background: var(--white);
}

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

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Areas Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.area-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

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

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

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

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

/* HubSpot Form Styling */
.hs-form-field {
    margin-bottom: 1rem !important;
}

.hs-form-field label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

.hs-input {
    width: 100% !important;
    padding: 0.875rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border-color 0.3s ease !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
}

.hs-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(26, 77, 125, 0.1) !important;
}

.hs-button {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.hs-button:hover {
    background: #153a5e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 77, 125, 0.3) !important;
}

.hs-error-msgs {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 0.25rem !important;
}

.hs-error-msg {
    color: #e74c3c !important;
    font-size: 0.875rem !important;
}

.hs-form fieldset {
    max-width: 100% !important;
}

.submitted-message {
    color: var(--success) !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 2rem !important;
}

/* ============================================ */
/* COMPREHENSIVE MOBILE RESPONSIVE STYLES */
/* ============================================ */

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

/* Large Laptops/Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 3rem 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 2.5rem 2rem;
    }
}

/* Medium Laptops (max-width: 968px) */
@media (max-width: 968px) {
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-form {
        max-width: 500px;
        margin: 0 auto;
        align-self: flex-start;
    }
    
    .cta-button {
        display: inline-block;
        width: auto;
    }
    
    /* Grids */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
        z-index: 999;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide video background on mobile for performance */
    .hero-background[src*=".mp4"],
    .hero-background[src*=".webm"],
    video.hero-background {
        display: none;
    }
    
    /* Show fallback image on mobile */
    .hero-background-fallback {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
        background: linear-gradient(135deg, rgba(26, 77, 125, 0.92) 0%, rgba(26, 77, 125, 0.88) 100%);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        width: 100%;
        max-width: 500px;
    }
    
    /* Container & Sections */
    .container {
        padding: 2rem 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Grids - Single Column */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    /* Blog Article */
    .blog-article {
        padding: 1.5rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Mobile Landscape & Small Tablets (max-width: 600px) */
@media (max-width: 600px) {
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .hero-text {
        padding-top: 0;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-form {
        padding: 1.5rem 1.25rem;
        margin: 0 0.5rem;
    }
    
    .hero-form h3 {
        font-size: 1.3rem;
    }
    
    .hero-form p {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .cta-button,
    .btn,
    .hs-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        text-align: center;
        min-height: 44px;
        display: block !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Container & Sections */
    .container {
        padding: 1.5rem 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* All Grids - Single Column */
    .services-grid,
    .features-grid,
    .team-grid,
    .blog-grid,
    .reviews-grid,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .review-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    /* Blog Article */
    .blog-article {
        padding: 1rem;
    }
    
    .blog-article h1 {
        font-size: 1.5rem;
    }
    
    .blog-article h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .blog-article h3 {
        font-size: 1.1rem;
    }
    
    .article-image {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content ul,
    .article-content ol {
        margin-left: 1.5rem;
    }
    
    /* FAQ */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    /* HubSpot Forms */
    .hs-form-field {
        margin-bottom: 0.75rem !important;
    }
    
    .hs-input {
        padding: 0.6rem !important;
        font-size: 16px !important;
    }
    
    .hs-form-field label {
        font-size: 0.9rem !important;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem !important;
    }
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    /* Logo */
    .logo {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 1rem 0.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.25rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    .hero-form {
        padding: 1.25rem 1rem;
        margin: 0 0.5rem;
    }
    
    .hero-form h3 {
        font-size: 1.1rem;
    }
    
    /* Container */
    .container {
        padding: 1rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .review-card,
    .area-item {
        padding: 1rem;
    }
    
    /* Team Members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact */
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Blog */
    .blog-content {
        padding: 1rem;
    }
    
    /* Article */
    .article-image {
        height: 180px;
        border-radius: 6px;
    }
    
    /* Forms */
    .hs-input {
        padding: 0.5rem !important;
    }
    
    .hs-button {
        padding: 0.7rem 1rem !important;
    }
    
    /* Typography */
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}

/* CTA Sections - All Breakpoints */
@media (max-width: 600px) {
    [class*="cta-"] {
        padding: 2rem 1.5rem;
        border-radius: 10px;
        margin: 1rem;
    }
    
    [class*="cta-"] h2 {
        font-size: 1.3rem;
    }
    
    [class*="cta-"] p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}
