/* Color Variables */
:root {
    --primary: #005baa;
    --primary-dark: #004a8a;
    --secondary: #f8f9fa;
    --accent: #ff6b35;
    --text: #333;
    --text-light: #6c757d;
    --white: #fff;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-section: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --dark-blue: #002b54;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    min-width: 180px;
    border: 2px solid transparent;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: #e05a2b;
    border-color: #e05a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar .contact-info a {
    color: var(--white);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.top-bar .contact-info a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.contact-info i {
    margin-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Add this to the Top Bar section */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end; /* Align items to the right */
    flex: 1; /* Take available space */
}

/* Modify existing .contact-info */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1; /* Take available space */
}

/* Keep existing top-bar-content rules */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%; /* Ensure full width */
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.sticky {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.logo-line1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-line2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-light);
}

.header-cta .btn {
  padding: 8px 16px;
  min-width: 150px;
  font-size: 0.9rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    color: var(--text);
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 500px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 20px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:nth-child(4) .dropdown-menu,
.dropdown:nth-child(5) .dropdown-menu {
    width: 200px;
    padding: 15px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-column {
    flex: 1;
    padding: 0 10px;
}

.dropdown-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--text);
    font-weight: 400;
    transition: var(--transition);
}

.dropdown-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* ======================== */
/* IMPROVED LOGO SECTION */
/* ======================== */
.page-title-section {
    background: linear-gradient(135deg, #0c2b4b 0%, #1a4a7a 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.title-content {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.page-title-section h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-title-section .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Add to contacts.css */
.page-title-section .btn-order-contacts {
    padding: 18px 36px;
    font-size: 1.4rem;
    min-width: 280px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 15px rgba(0, 91, 170, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-title-section .btn-order-contacts i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.page-title-section .btn-order-contacts:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 91, 170, 0.5);
}

.page-title-section .btn-order-contacts:hover i {
    transform: translateX(5px);
}

/* Animated pulse effect */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.page-title-section .btn-order-contacts {
    animation: pulse 2s infinite;
}

/* Gradient background effect */
.page-title-section .btn-order-contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        var(--accent) 50%, 
        var(--primary) 100%);
    background-size: 200% 200%;
    z-index: -1;
    transition: background-position 0.5s ease;
}

.page-title-section .btn-order-contacts:hover::before {
    background-position: 100% 100%;
}

/* Improved brand logo styling */
.lens-brands {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    padding: 0 15px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 220px;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.brand-item .logo-container {
    width: 180px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-item .logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-item:hover .logo-container img {
    transform: scale(1.08);
}

/* Add this to contacts.css */
/* Fix for Bausch & Lomb logo visibility */
.brand-item .logo-container.bausch {
  background-color: #002b54; /* Dark blue background for contrast */
  padding: 15px; /* Increased padding for better framing */
}

/* Make the Bausch & Lomb logo white */
.brand-item .logo-container.bausch img {
  filter: brightness(0) invert(1); /* Converts to white */
}

/* Adjust hover effect for white logo */
.brand-item:hover .logo-container.bausch img {
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

/* For the tabs section */
.tab-btn .bausch-logo-container {
  background-color: #002b54; /* Match the brand-item style */
  padding: 10px;
  border-radius: 8px;
}

.tab-btn .bausch-logo-container img {
  filter: brightness(0) invert(1); /* White logo */
}

.brand-item span {
    color: #002b54;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.brand-item:hover span {
    background: #005baa;
    color: white;
}

.cta-container {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title-section h1 {
        font-size: 2.2rem;
    }
    
    .brand-item {
        padding: 1.2rem;
        width: 180px;
    }
    
    .lens-brands {
        gap: 1.2rem;
    }
    
    .brand-item .logo-container {
        width: 140px;
        height: 70px;
    }
    
    .brand-item span {
        font-size: 1rem;
    }
}

/* ======================== */
/* LENS BRANDS SECTION */
/* ======================== */
.lens-brands-section {
    padding: 5rem 0;
    background-color: #f0f7ff;
}

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

.lens-brands-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.lens-brands-header h2 {
    font-size: 2.5rem;
    color: #005baa;
    margin-bottom: 0.8rem;
}

.lens-brands-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Lens Tabs - Fixed Styles */
.lens-tabs {
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 91, 170, 0.15);
  overflow: hidden;
  margin-top: 2rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(0, 43, 84, 0.1);
  background: linear-gradient(to bottom, #f8f9fa, #eef7ff);
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}

.tab-btn {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  padding: 1.2rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  margin: 0.5rem;
  border-radius: 8px;
}

.tab-btn:hover {
  background: rgba(0, 91, 170, 0.05); /* Subtle hover effect */
}

.tab-btn.active {
  background: rgba(0, 91, 170, 0.08); /* Active state background */
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-btn.active::after,
.tab-btn:hover::after {
    background: #005baa;
    height: 4px;
}

/* Fixed logo container styles */
.tab-btn .logo-container {
  width: 180px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Brand-specific background fixes */
.tab-btn .cooper { background: white; }
.tab-btn .johnson { background: white; }
.tab-btn .bausch { background: #002b54; }

.tab-btn .logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tab-btn.active img,
.tab-btn:hover img {
    transform: scale(1.1);
}

.tab-btn span {
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.tab-btn.active span,
.tab-btn:hover span {
    color: #005baa;
    font-weight: 700;
}

/* Fix for Johnson & Johnson logo visibility */
.brand-item .logo-container.johnson {
  background-color: #002b54; /* Dark blue background for contrast */
  padding: 15px; /* Increased padding for better framing */
  border-radius: 8px;
}

/* Make the Johnson & Johnson logo white */
.brand-item .logo-container.johnson img {
  filter: brightness(0) invert(1); /* Converts to white */
}

/* Adjust hover effect for white logo */
.brand-item:hover .logo-container.johnson img {
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

/* For the tabs section */
.tab-btn .johnson-logo-container {
  background-color: #002b54; /* Match the brand-item style */
  padding: 10px;
  border-radius: 8px;
}

.tab-btn .johnson-logo-container img {
  filter: brightness(0) invert(1); /* White logo */
}

.tab-pane {
    display: none;
    padding: 0;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

.tab-content-inner {
  display: flex;
  padding: 2rem; /* Reduced padding */
  gap: 2rem; /* Reduced gap */
  background: #ffffff; /* Ensure white background */
}

.tab-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

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

.tab-image:hover img {
    transform: scale(1.03);
}

.tab-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tab-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

.tab-features {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.feature-col {
    flex: 1;
}

.feature-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #005baa;
    position: relative;
    padding-bottom: 0.5rem;
}

.feature-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff6b35;
}

.feature-col ul {
    list-style: none;
    padding: 0;
}

.feature-col li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.feature-col li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-size: 1.2rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .tab-content-inner {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .tab-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .tabs-header {
        padding: 0.25rem;
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: 150px;
        padding: 0.8rem 0.5rem;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .tab-btn .logo-container {
        width: 160px;
        height: 50px;
    }
    
    .tab-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    .tab-content-inner {
        padding: 1.5rem;
        flex-direction: column;
    }    
    .tab-text .btn {
        align-self: center;
    }
    
    .lens-brands-section {
        padding: 3rem 0;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

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

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.375rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

.service-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* Insurance Section */
.insurance-section {
    padding: 80px 0;
    text-align: center;
}

.insurance-content h2 {
    margin-bottom: 20px;
}

.insurance-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.insurance-image {
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--secondary);
}

/* Remove border from the Verify Coverage button */
.insurance-section .btn-outline {
    border: none;
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stars {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    color: var(--accent);
    font-size: 24px;
    line-height: 0;
}

.testimonial-text::before {
    margin-right: 5px;
    vertical-align: -0.4em;
}

.testimonial-text::after {
    margin-left: 5px;
    vertical-align: -0.6em;
}

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

.testimonials-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/comprehensive_eye_exam.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7); /* Slightly transparent white */
    background-color: transparent;
}

.cta-section .btn-outline:hover {
    color: var(--primary);
    background-color: var(--white);
    border-color: var(--white); /* Solid white on hover */
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 0;
    position: relative;
}

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

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
/*
.hours-list span {
    font-weight: 500;
}
*/
.footer-about {
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--accent);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-grid .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-grid .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-grid .social-icons a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific icon colors on hover if you want platform-specific colors */
.footer-grid .social-icons a[aria-label="Facebook"]:hover {
    background-color: #3b5998; /* Facebook blue */
}

.footer-grid .social-icons a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-grid .social-icons a[aria-label="Twitter"]:hover {
    background-color: #1da1f2; /* Twitter blue */
}

.footer-grid .social-icons a[aria-label="Nextdoor"]:hover {
    background-color: #00B246; /* Nextdoor green */
}

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

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: var(--transition);
}

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

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 400px;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .logo-container img {
        height: 60px;
    }
    
    .logo-line1 {
        font-size: 14px;
    }
    
    .logo-line2 {
        font-size: 12px;
    }

    .main-nav {
        width: 100%;
        margin-left: 50px;
    }
        
    .main-nav a {
        font-size: 13px;
        padding: 0.5px 1px;
    }

    .dropdown-column a {
        font-size: 13px;
    }
    
    .header-cta .btn {
        padding: 6px 12px;
        min-width: 150px;
        font-size: 0.7rem;
    }

    .section-routine:first-of-type .section-text {
        padding: 0 2%;
    }

    .adult-content {
        padding: 0 2%;
    }

    .vision-health-section {
        width: 100%;
        height: auto;
    }
    
    .vision-health-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .section-text{
        text-align: left;
    }
}    

@media (max-width: 820px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav a {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        width: 100%;
        order: 2;
        margin: 15px 0;
        display: flex;
        justify-content: center;
    }
    
    .header-cta .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100% !important;
        box-shadow: none;
        padding: 0;
        display: none;
        opacity: 1;
        transform: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-column {
        padding: 0;
        margin-bottom: 1rem;
    }

    .section-flex {
        flex-direction: column;
    }
    
    .section-text, 
    .section-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .section-image img {
        max-width: 100%;
    }

    .page-title-section {
        padding: 3rem 0;
    }
    
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .page-title-section p {
        font-size: 1.1rem;
    }    
    .section-routine,
    .cee_rooutine1{
        padding: 2rem 0rem;
    }
    
    .section-routine .section-flex,
    .section-flex.reverse,
    .cee_routine1 .section-flex {
        flex-direction: column;
    }
    
    .section-routine .section-image,
    .cee_routine1 .section-image,
    .section-routine .section-text,
    .cee_routine1 .section-text {
        order: 0;
    }
    .cee_routine1 .section-flex {
        flex-direction: row;
    }
    .cee_routine1 .section-image {
        order: 2;
    }
    .cee_routine1 .section-text {
        order: 1;
    }
    
    .btn, .w3-button {
        width: 100%;
        max-width: 300px;
    }
    
    .w3-auto {
        padding: 2rem;
    }
    
    .testimonials-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .section-routine, .cee_routine1 {
        padding: 2rem 2rem;
    }

    .vision-health-section {
        width: 100%;
        height: auto;
    }
    
    .vision-health-content {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .section-text{
        text-align: left;
    }
    
    .w3-auto {
        padding: 1.5rem;
    }

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

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

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

.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

/* === Optimized Styles for Children Eye Exam Sections === */
.section-routine ul,
.cee_routine1 ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-routine ul li,
.cee_routine1 ul li {
    margin-bottom: 0.75rem;
}

.section-routine p,
.cee_routine1 p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.h2-text {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.btn-secondary {
    background-color: GoldenRod;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #daa520;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .section-routine,
    .cee_sec1 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .h2-text {
        font-size: 1.5rem;
    }

    .w3-button {
        font-size: 1rem;
        width: 90%;
        max-width: 250px;
    }
}

/* Force two rows of services with spacing */
.services-section .services-row {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern flex layout for first 3 sections */
.section-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.section-text {
    flex: 1 1 400px;
}

.section-image {
    flex: 1 1 400px;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-md);
}

/* Stack on small screens */
@media (max-width: 768px) {
    .section-flex {
        flex-direction: column;
        text-align: center;
    }
}


/* Alternate image/text position */
.section-flex.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .section-flex.reverse {
        flex-direction: column;
    }
}

/* Fade-in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-flex.animated {
    animation: fadeInUp 0.8s ease-out both;
}

@media (max-width: 600px) {
    .intro-box {
        padding: 24px 8vw;
    }
}

/* Vision Health Section */
.vision-health-section {
    padding: 1rem 1rem;
    margin: 0;
}

.vision-health-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    margin: 40px auto;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .vision-health-content {
        padding: 18px 4vw;
        margin: 16px 0;
    }
}
