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

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Header Styles */
.main-header {
    background-color: #15282F;
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    height: 100%;
    overflow: visible;
}

.logo {
    position: fixed;
    left: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 2;
    text-decoration: none;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

.logo-image {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-title {
    text-align: center;
    flex: 1;
}

.header-title h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-title h1 a {
    text-decoration: none;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.header-title h1 a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    margin-top: 0;
    overflow: hidden;
    padding-top: 100px;
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/georgian-bay.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform var(--transition-slow);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(21, 40, 47, 0.5),
        rgba(21, 40, 47, 0.3)
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-subheader {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--background-color);
}

.hero-subheader h2 {
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero-subheader p {
    color: var(--text-secondary);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    margin: 0 var(--spacing-sm);
}

.cta-button:hover {
    background-color: var(--hover-primary);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--text-white);
}

.cta-button.secondary:hover {
    background-color: var(--text-white);
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.feature-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    transform: translateY(-5px);
}

.feature-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.footer-content p {
    margin: var(--spacing-xs) 0;
}

.footer-content a {
    color: var(--text-white);
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.footer-content a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

/* Menu Toggle */
.hero-menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1008;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.hero-menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hero-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.hero-menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 1003;
}

.language-icon {
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--text-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
    display: none;
    min-width: 150px;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.language-option:hover {
    background-color: #475D2E;
    color: var(--text-white);
}

.language-option.active {
    color: var(--text-primary);
}

/* Header Phone Number */
.header-phone {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1003;
    text-align: center;
}

.header-phone a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-secondary);
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: var(--primary-color);
}

/* Hide language selector when menu is open */
.hero-menu-toggle.active ~ .language-selector {
    opacity: 0;
    pointer-events: none;
}

/* Hide header phone when menu is open */
.hero-menu-toggle.active ~ .header-phone {
    opacity: 0;
    pointer-events: none;
}

/* Expanded Content */
.hero-expanded-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #114643;
    z-index: 1004;
    padding: var(--spacing-xl) var(--spacing-md);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.hero-expanded-content.active {
    right: 0;
}

.expanded-menu-content {
    text-align: left;
    color: #ffffff;
}

.expanded-section {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.section-toggle {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.section-toggle a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.section-toggle a:hover {
    color: var(--primary-color);
}

.section-content {
    display: none;
    padding: var(--spacing-sm) 0;
}

.section-content.active {
    display: block;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-content li {
    margin-bottom: var(--spacing-sm);
}

.section-content a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
}

.section-content a:hover {
    color: var(--primary-color);
}

/* Hide language selector when menu is open */
.hero-expanded-content.active + .language-selector {
    display: none;
}

/* Expanded Section */
.expanded-section {
    margin-bottom: var(--spacing-lg);
}

.expanded-section h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.expanded-section h3 a {
    color: var(--text-white);
    text-decoration: none;
}

.toggle-icon {
    margin-right: var(--spacing-sm);
    font-size: var(--text-xl);
    transition: var(--transition-normal);
    color: #ffffff;
}

.section-content {
    display: none;
    padding-left: var(--spacing-lg);
}

.section-content.active {
    display: block;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-content li {
    margin-bottom: var(--spacing-sm);
}

.section-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: var(--text-3xl);
    }
    
    .hero-content p {
        font-size: var(--text-lg);
    }
    
    .cta-button {
        display: block;
        margin: var(--spacing-sm) 0;
    }
    
    .language-selector {
        right: 80px;
        top: 20px;
    }
    
    .header-phone {
        right: 20px;
        top: 20px;
    }
    
    .hero-expanded-content {
        right: -100%;
        width: 100%;
    }
    
    .header-title h1 {
        font-size: 2.5rem;
    }
    
    .logo {
        left: 15px;
        height: 70px;
    }
    
    .logo-image {
        height: 65px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        right: 70px;
        top: 20px;
    }
    
    .header-phone {
        right: 10px;
        top: 60px;
    }
    
    .header-phone a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .language-icon {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .header-title h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        left: 10px;
        height: 60px;
    }
    
    .logo-image {
        height: 55px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Remove banner styles */
.top-banner,
.banner-content,
.banner-left,
.banner-logo,
.banner-title,
.banner-right {
    display: none;
}

/* Adjust main content padding to account for taller header */
main {
    padding-top: 0;
}

/* Adjust provider hero section padding */
.provider-hero {
    padding-top: 100px;
} 