/* Hampstead Surveyors - Professional CSS Stylesheet */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1a4d8f;
    --secondary-color: #c5a572;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --accent-color: #e67e22;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #27ae60;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Colorful gradients for service boxes */
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    --gradient-orange: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-teal: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-red: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    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);
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--light-color);
    border-radius: 5px;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: var(--white);
    padding: 2rem 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 143, 0.88), rgba(44, 62, 80, 0.82));
    z-index: 0;
}

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

.hero-text h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.badge:hover {
    background-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-form {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-height: none;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.hero-form h3 {
    color: #1a4d8f;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero-form p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Hero Form Container */
#heroForm {
    max-width: 100%;
    width: 100%;
}

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

#heroForm .hs-form-field {
    margin-bottom: 1rem !important;
}

#heroForm .hs-input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 0.95rem !important;
}

#heroForm .hs-button {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 0.5rem !important;
}

#heroForm .hs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.section {
    padding: 4rem 0;
}

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

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* ===== PAGE HEADER SECTIONS ===== */
.section.bg-light:first-of-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section.bg-light:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" 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.5;
}

.section.bg-light:first-of-type .section-header {
    position: relative;
    z-index: 1;
}

.section.bg-light:first-of-type .section-header::after {
    background: linear-gradient(90deg, #ffffff 0%, #f0f0f0 100%);
}

.section.bg-light:first-of-type .section-header h1,
.section.bg-light:first-of-type .section-header h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.section.bg-light:first-of-type .section-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Same beautiful purple gradient for all page headers */
.page-header-about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.page-header-services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.page-header-areas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.page-header-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.page-header-blog {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Add decorative shapes to headers */
.page-header-about::after,
.page-header-services::after,
.page-header-areas::after,
.page-header-contact::after,
.page-header-blog::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    z-index: 1;
}

.page-header-about .section-header,
.page-header-services .section-header,
.page-header-areas .section-header,
.page-header-contact .section-header,
.page-header-blog .section-header {
    position: relative;
    z-index: 2;
}

/* Add subtle pattern overlay */
.page-header-about::before,
.page-header-services::before,
.page-header-areas::before,
.page-header-contact::before,
.page-header-blog::before {
    opacity: 0.15;
}

/* Make headers more vibrant with glow effects */
.page-header-about,
.page-header-services,
.page-header-areas,
.page-header-contact,
.page-header-blog {
    box-shadow: inset 0 -50px 100px rgba(0, 0, 0, 0.1);
}

.page-header-about h1,
.page-header-services h1,
.page-header-areas h1,
.page-header-contact h1,
.page-header-blog h1 {
    animation: fadeInUp 0.8s ease-out;
}

.page-header-about p,
.page-header-services p,
.page-header-areas p,
.page-header-contact p,
.page-header-blog p {
    animation: fadeInUp 1s ease-out;
}

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

/* ===== CARDS & GRID ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.card:nth-child(1) {
    border-top-color: #667eea;
}

.card:nth-child(2) {
    border-top-color: #56ab2f;
}

.card:nth-child(3) {
    border-top-color: #f5576c;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

/* ===== SERVICES ===== */
.service-item {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--secondary-color);
}

.service-item > * {
    position: relative;
    z-index: 1;
}

/* Colorful service boxes for home page */
.service-item:nth-child(1) {
    background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 100%);
    border-left-color: #4facfe;
}

.service-item:nth-child(2) {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #56ab2f;
}

.service-item:nth-child(3) {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #f5576c;
}

.service-item:nth-child(4) {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left-color: #764ba2;
}

.service-item:nth-child(5) {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-left-color: #fa709a;
}

.service-item:nth-child(6) {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-left-color: #00f2fe;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== TEAM ===== */
.team-member {
    text-align: center;
}

.team-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--secondary-color);
}

.team-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

/* ===== TESTIMONIALS ===== */
.testimonial {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
    border-left-color: #f5576c;
}

.testimonial:nth-child(3n) {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    border-left-color: #56ab2f;
}

.testimonial:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.15;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

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

.testimonial-stars {
    color: #ffa726;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(255, 167, 38, 0.3);
}

/* ===== FAQ ===== */
.faq-section {
    background-color: var(--light-color);
    padding: 4rem 2rem;
}

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

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

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

.blog-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.blog-card:nth-child(3n+1) {
    border-top-color: #667eea;
}

.blog-card:nth-child(3n+2) {
    border-top-color: #56ab2f;
}

.blog-card:nth-child(3n+3) {
    border-top-color: #f5576c;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #764ba2;
}

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

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-article-meta {
    color: #888;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.blog-article img {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

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

.blog-article h3 {
    color: var(--dark-color);
    margin-top: 1.5rem;
}

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

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 2rem 1rem;
}

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

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

.footer-section p,
.footer-section a {
    color: var(--light-color);
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

.accreditation-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.accreditation-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ===== FORMS ===== */
.contact-form-wrapper {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

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

/* ===== RESPONSIVE DESIGN ===== */
/* Comprehensive Mobile-First Responsive Design */

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

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

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

/* ===== EXTRA LARGE DESKTOP (≥1400px) ===== */
@media (min-width: 1400px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 1400px;
        align-items: start;
    }
    
    .hero-form {
        max-height: none;
        height: auto;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* ===== LARGE DESKTOP (≥1200px) ===== */
@media (min-width: 1200px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 1400px;
        align-items: start;
    }
    
    .hero-form {
        max-height: none;
        height: auto;
    }
}

/* ===== TABLET & SMALL LAPTOP (≤968px) ===== */
@media (max-width: 968px) {
    /* Typography - Slightly smaller */
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Grid Layouts */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-form {
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
        max-height: none;
        height: auto;
        overflow: visible;
    }
    
    .hero-form h3 {
        font-size: 1.5rem;
    }
    
    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* Video Background - Hide on tablet for performance */
    .hero-video {
        display: none;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(26, 77, 143, 0.95), rgba(44, 62, 80, 0.9));
    }
    
    /* Navigation - Mobile Menu */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        z-index: 999;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--light-color);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
    }
    
    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Service Items */
    .service-item {
        padding: 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    /* CTA Sections */
    .cta-section {
        padding: 2.5rem 2rem;
        margin: 1.5rem 1rem;
    }
    
    /* Feature Grid */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Areas Grid */
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ===== MEDIUM TABLET (≤768px) ===== */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* All grids become single column */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Hero adjustments */
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-form h3 {
        font-size: 1.4rem;
    }
    
    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    /* Service cards full width */
    .service-card {
        width: 100%;
    }
}

/* ===== SMALL MOBILE (≤600px) ===== */
@media (max-width: 600px) {
    /* Typography - Mobile optimized */
    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;
    }
    
    /* Hero Section - Mobile */
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    /* Hero Form - Mobile optimized */
    .hero-form {
        padding: 1.25rem;
        max-height: none;
        height: auto;
        overflow: visible;
        margin: 0;
        width: 100%;
    }
    
    .hero-form h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-form p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Badges - Mobile friendly */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-badges {
        gap: 0.5rem;
    }
    
    /* HubSpot Forms - Mobile optimization */
    #heroForm .hs-form,
    #bottomForm .hs-form,
    #contactForm .hs-form {
        max-width: 100% !important;
    }
    
    #heroForm .hs-input,
    #bottomForm .hs-input,
    #contactForm .hs-input {
        padding: 0.6rem !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    #heroForm .hs-button,
    #bottomForm .hs-button,
    #contactForm .hs-button {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 1rem !important;
        min-height: 48px;
    }
    
    .hs-form-field {
        margin-bottom: 0.75rem !important;
    }
    
    .hs-form-field label {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !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;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    /* Footer - Mobile single column */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .accreditation-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Blog Grid - Single column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    /* Blog Article Page */
    .blog-article {
        padding: 1rem;
    }
    
    .blog-article h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .blog-article h2 {
        font-size: 1.25rem;
    }
    
    .blog-article img {
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    /* FAQ Section - Mobile */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.4;
        min-height: 48px;
    }
    
    .faq-answer {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-toggle {
        font-size: 1.25rem;
        min-width: 24px;
    }
    
    /* Container & Spacing */
    .container {
        padding: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* CTA Sections */
    .cta-section {
        padding: 2rem 1.5rem;
        border-radius: 10px;
        margin: 1rem 0.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Feature Sections */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Service Items */
    .service-item {
        padding: 1.25rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
    }
    
    /* Areas Grid */
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .area-card {
        padding: 1rem;
    }
    
    /* Contact Form */
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    /* Navigation adjustments */
    .nav-container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

/* ===== EXTRA SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
    /* Typography - Very small screens */
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1.15rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    /* Hero - Compact */
    .hero-text h1 {
        font-size: 1.25rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-form {
        padding: 1rem;
    }
    
    .hero-form h3 {
        font-size: 1.1rem;
    }
    
    .hero-form p {
        font-size: 0.85rem;
    }
    
    /* Form inputs - Compact */
    #heroForm .hs-input,
    #bottomForm .hs-input,
    #contactForm .hs-input {
        padding: 0.5rem !important;
    }
    
    /* Badges - Very compact */
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* Buttons - Compact */
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Section headers - Compact */
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    /* Container - Tighter padding */
    .container {
        padding: 0.75rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* ===== MOBILE MENU ANIMATION ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Add floating decorative circles to headers */
.page-header-about::before,
.page-header-services::before,
.page-header-areas::before,
.page-header-contact::before,
.page-header-blog::before {
    animation: float 6s ease-in-out infinite;
}

/* ===== SCHEMA MARKUP & SEO ===== */
.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;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
