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

:root {
    --primary-blue: #0066cc;
    --dark-blue: #003d7a;
    --light-blue: #e6f2ff;
    --accent-blue: #4d94ff;
    --dark-gray: #2c3e50;
    --medium-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-gray);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar {
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

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

.nav-brand {
    flex: 1;
    position: relative;
    isolation: isolate;
    background: transparent;
}

.nav-menu {
    flex: 0 0 auto;
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-brand a {
    background: transparent;
    display: inline-block;
}

.nav-brand .logo {
    height: 240px;
    width: 290px;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
    margin: -80px 0 -80px 0;
    clip-path: inset(15% 0 30% 0);
    filter: brightness(1.1) contrast(1.2);
    mix-blend-mode: multiply;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: transparent !important;
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-right: 30px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
    font-size: 14px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Full-width Client Portal button needs a larger ripple */
a[href="https://uigagency.com/mobile.html"]:hover::before {
    width: 800px;
    height: 800px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--dark-gray);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.7) 0%, 
        rgba(0, 61, 122, 0.8) 100%);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    color: white !important;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-top: 1rem;
    color: white !important;
    opacity: 1;
}

.hero-description {
    font-size: 1.2rem;
    margin: 2rem 0 3rem;
    color: white !important;
    opacity: 1;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator - Hidden */
.hero-scroll-indicator {
    display: none !important;
}

.mouse-icon {
    display: none !important;
}

.wheel {
    display: none !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1s ease-out;
}

.animate-fade-up-delay {
    animation: fadeUp 1s ease-out 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 1s ease-out 0.4s both;
}

.animate-fade-up-delay-3 {
    animation: fadeUp 1s ease-out 0.6s both;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-top: 1.5rem;
}

/* Products Section */
.products {
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden !important;
    height: auto !important;
    max-height: none !important;
    -webkit-overflow-scrolling: none !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    padding: 0 2.5rem;
}

.product-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding: 0 2.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0 2.5rem;
}

.product-card .btn {
    margin: 0 2.5rem 2.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--primary-blue);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.quote-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.quote-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

/* Claims Section */
.claims-process {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.step-content p {
    color: var(--medium-gray);
}

.claims-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.claims-phone {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.claims-phone strong {
    color: var(--primary-blue);
}

/* Resources Section */
.resources {
    background: var(--light-gray);
}

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

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.resource-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
    background: var(--primary-blue);
}

.resource-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon i {
    color: white;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.resource-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.resource-link:hover {
    gap: 1rem;
}

/* Why Us Section */
.why-us {
    position: relative;
}

.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: -1;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--light-blue), white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    color: white;
}

.feature-item h3 {
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--medium-gray);
}

/* Testimonials Section */
.testimonials {
    background: var(--light-gray);
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.stars {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--medium-gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--medium-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 240, 241, 0.95));
    z-index: -1;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.info-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 90px;
    margin-bottom: 1rem;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 2rem;
}


/* Mobile Optimization for 375x667 resolution */
@media (max-width: 768px) {
    /* Logo optimization for mobile */
    .nav-brand .logo {
        height: 60px;
        width: auto;
        max-width: 150px;
        margin: -10px 0;
        clip-path: none;
        object-fit: contain;
    }

    /* Navbar mobile optimization */
    .navbar {
        padding: 0.25rem 0;
        min-height: 70px;
    }

    .nav-container {
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile hamburger menu */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 100%;
        height: 3px;
        background: var(--dark-gray);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Removed conflicting mobile navigation CSS - using proper sidebar below */

    /* Fix products section overflow on mobile */
    .products, .products-grid, .container {
        overflow: visible !important;
        overflow-x: hidden !important;
    }

    /* Removed conflicting mobile login/logout styling - using proper styles below */

    /* Hero section mobile optimization */
    .hero {
        min-height: 70vh;
        max-height: 70vh;
        height: 70vh;
        padding-top: 0px !important;
        overflow: hidden;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .hero-content {
        padding: 0 15px 40px 15px !important;
        text-align: center;
        width: 100% !important;
    }

    .hero-title {
        font-size: 1.3rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-top: 0.5rem;
    }

    .hero-description {
        display: none !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding: 0 15px;
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Section spacing optimization */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Typography adjustments */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
    }

    /* Button optimizations */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Form optimizations */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Remove sidebar white space */
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    * {
        max-width: 100vw !important;
    }

    html {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Fix white line on right side */
    .container,
    .nav-container,
    .hero-content,
    section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .quote-wrapper {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    /* Prevent multiple scroll bars on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    /* Prevent horizontal scroll on all elements - exclude specific elements that need flexibility */
    body > *, section, .container, .hero, .nav-container {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Duplicate mobile styles for broader coverage */
    .hero-description {
        display: none !important;
    }

    .nav-brand .logo {
        height: 180px !important;
        width: auto !important;
        max-width: 450px !important;
        margin: -30px 0 !important;
        clip-path: inset(15% 0 15% 0) !important;
        object-fit: contain !important;
    }

    /* Mobile header height optimization */
    .navbar {
        padding: 0.125rem 0 !important;
        min-height: 30px !important;
    }

    .nav-container {
        padding: 0 10px !important;
        min-height: 30px !important;
        align-items: center !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    /* Floating Navigation Box Override - Vertical Menu */
.nav-menu.active {
    position: fixed !important;
    top: calc(100vh - 700px) !important;
    right: 10px !important;
    transform: none !important;
    width: 125px !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 999999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 25px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nav-menu.active .nav-list {
    flex-direction: column !important;
    padding: 0 !important;
    gap: 1rem !important;
    margin: 0 !important;
}

.nav-menu.active .nav-item {
    width: 100% !important;
}

.nav-menu.active .nav-link {
    padding: 0.5rem 0 !important;
    font-size: 14px !important;
    display: block !important;
    color: var(--dark-gray) !important;
    text-align: center !important;
}

/* Hide logout link in navigation on desktop view (since we have logout button in header) */
@media (min-width: 769px) {
    .nav-list .nav-item .nav-link.logout-link {
        display: none !important;
    }
}

    /* Hide login button on mobile */
    .nav-actions .btn-primary {
        display: none !important;
    }

    /* Hide product icons on mobile */
    .product-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -200px;
        width: 120px;
        height: 100vh;
        background: white;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999999;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        padding: 16rem 0.2rem 1rem 0.2rem;
        gap: 0.6rem;
        list-style: none;
        margin: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 500;
        font-size: 12px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
        text-align: center;
    }

    .nav-link:hover {
        background-color: var(--light-gray);
    }

    /* Ensure logout doesn't overlap other items */
    .nav-item:first-child .nav-link {
        margin-bottom: 8px;
    }

    /* Override any inline styles that might cause issues */
    .nav-link[style] {
        display: block !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    /* Login link styling - blue color */
    .nav-menu .nav-item:first-child .nav-link[href*="login"] {
        color: var(--primary-blue) !important;
        font-weight: 600 !important;
    }

    /* Logout link styling - red color */
    .nav-menu .nav-item:first-child .nav-link[style*="color: rgb(231, 76, 60)"],
    .nav-menu .nav-item:first-child .nav-link.logout-link {
        color: #e74c3c !important;
        font-weight: 600 !important;
    }

    /* Profile link styling - blue color */
    .nav-menu .nav-item .nav-link[href*="policyholder-dashboard"],
    .nav-menu .nav-item .nav-link.nav-link-profile {
        color: var(--primary-blue) !important;
        font-weight: 600 !important;
    }

    /* Force hide all dropdown content in mobile navigation */
    .nav-menu .dropdown-content,
    .nav-menu .dropdown .dropdown-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .products-grid,
    .resources-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}
/* Top Performing Agents Section */
.top-agents {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.agent-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
}

.agent-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,102,204,0.2);
    border-color: var(--primary-blue);
}

.agent-card-featured {
    transform: scale(1.08);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 3px solid var(--primary-blue);
}

.agent-card-featured:hover {
    transform: scale(1.1) translateY(-15px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004c99 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
    z-index: 1;
}

.featured-badge i {
    margin-right: 5px;
}

.agent-photo-container {
    margin-bottom: 2rem;
}

.agent-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,102,204,0.2);
    transition: all 0.3s ease;
}

.agent-card-featured .agent-photo {
    width: 200px;
    height: 200px;
    border-width: 6px;
    box-shadow: 0 15px 40px rgba(0,102,204,0.3);
}

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

.agent-photo-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004c99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-initials {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.agent-card-featured .agent-initials {
    font-size: 4.5rem;
}

.agent-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.agent-card-featured .agent-info h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004c99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-title {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.agent-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004c99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.agent-card-featured .stat-value {
    font-size: 2.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

/* Responsive Design for Agents Section */
@media (max-width: 1024px) {
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .agent-card-featured {
        transform: scale(1);
    }

    .agent-card-featured:hover {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .top-agents {
        padding: 3rem 0;
    }

    .agents-grid {
        gap: 2rem;
    }

    .agent-card {
        padding: 2rem 1.5rem;
    }

    .agent-photo {
        width: 150px;
        height: 150px;
    }

    .agent-card-featured .agent-photo {
        width: 160px;
        height: 160px;
    }

    .agent-initials {
        font-size: 3rem;
    }

    .agent-stats {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Location Section Styles */
.location {
    padding: 80px 0;
    background: var(--light-gray);
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-map iframe {
    display: block;
    border-radius: 12px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.location-image-large {
    flex: 1;
    min-height: 280px;
}

.location-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.location-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.location-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.location-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.location-image-large img {
    min-height: 280px;
}

.location-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Location Section */
@media (max-width: 968px) {
    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-map iframe {
        height: 350px;
    }
    
    .location-image-large {
        min-height: 250px;
    }
    
    .location-image-large img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .location {
        padding: 60px 0;
    }
    
    .location-image-row {
        grid-template-columns: 1fr;
    }
    
    .location-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .location-image-large {
        min-height: 200px;
    }
    
    .location-image-large img {
        min-height: 200px;
    }
}

/* Hide Google Maps UI elements for cleaner look */
.location-map {
    position: relative;
}

.location-map iframe {
    pointer-events: auto;
}

/* Optional: Add overlay to reduce map interactivity if needed */
.location-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Hide mobile-only login nav item on desktop — must be top-level, not nested */
@media (min-width: 901px) {
    #mobileLoginNavItem {
        display: none !important;
    }
}
