:root {
    --primary-blue: #113484;
    --deep-blue: #155b72;
    --secondary-blue: #4a90e2;
    --primary-green: #4caf50;
    --secondary-green: #66bb6a;
    --light-blue: #e3f2fd;
    --light-green: #e8f5e8;
    --warm-gray: #f8f9fa;
    --white: #ffffff;
    --off-white: #ebfeff;
    --bs-btn-color: #083344;
}

body {
    font-family: Marcellus, sans-serif;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--primary-blue) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-blue) !important;
}

.nav-link.active {
    color: var(--primary-green) !important;
}

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

/* Button Styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
}

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

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

.btn-success:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 100%);
    padding: 80px 0;
    margin-top: -80px;
    padding-top: 160px;
}

.hero-title {
    color: var(--white);
    font-family: 'Marcellus', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
}

.hero-text {
    color: var(--off-white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-card p {
    flex: 1;
    margin-bottom: 1rem;
}

.service-card .mt-4 {
    margin-top: auto !important;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    font-size: 1rem;
    border-radius: 4px;
    overflow-wrap: anywhere;
    line-height: 28px;
    position: relative;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    overflow: clip;
    height: 240px;
}

.service-icon img {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    vertical-align: middle;
    overflow-y: clip;
    overflow-x: clip;
    object-fit: cover;
    width: 100%;
    height: auto;
    
}

/* Video Section */
.video-section {
    padding: 60px 0;
    background-color: var(--warm-gray);
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Section */
.gallery-section {
    padding: 20px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* FAQ Section */
.faq-section {
    padding: 20px 0;
    background-color: var(--warm-gray);
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.6;
    display: none;
}

/* Contact Section */
.contact-section {
    padding: 20px 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-image {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Floating Label Styles */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 0.75rem 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    min-height: 3.5rem;
}

.form-floating .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    outline: none;
}

.form-floating .form-control:focus + .floating-label,
.form-floating .form-control:not(:placeholder-shown) + .floating-label,
.floating-label.active {
    transform: translateY(-0.5rem) scale(0.85);
    color: var(--primary-blue);
    font-weight: 500;
}

.floating-label {
    position: absolute;
    top: 0 !important; 
    left: 0;
    color: #6c757d;
    transition: all 0.2s ease;
    pointer-events: none;
    background: none;
    padding: 0 0.25rem;
    font-size: 0.875rem;
}

.form-floating textarea.form-control {
    min-height: 6rem;
    resize: vertical;
}

.form-floating textarea.form-control + .floating-label {
    top: 1.25rem;
}

/* Error states for floating labels */
.form-floating .form-control.is-invalid {
    border-color: #dc3545;
}

.form-floating .form-control.is-invalid + .floating-label {
    color: #dc3545;
}

.form-floating .form-control.is-invalid:focus + .floating-label {
    color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Social Media Links */
.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-green) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
        padding-top: 140px;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Perimenopause Quiz */
div.peri {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

.peri h1, .peri h2 {
    color: #c85a54;
}

.peri .question, .peri .form-group {
    margin-bottom: 15px;
}

.peri label {
    display: block;
    margin: 5px 0;
}

.peri input[type="email"] {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.peri .result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.peri .low { background-color: #d9fdd3; }

.peri .moderate { background-color: #fff4c2; }

.peri .high { background-color: #ffe0e0; }

/*
.peri button {
    background-color: #c85a54;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
*/

.peri button:hover {
    background-color: #a64840;
}

.peri .cta {
    margin-top: 20px;
    text-align: center;
}

.peri .cta a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #c85a54;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.peri .cta a:hover {
    background-color: #a64840;
}

/* Footer Acknowledgment */
.acknowledgment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 10px 0;
}

.acknowledgment-image {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    margin-top: -24px;
    margin-bottom: -24px;
}

.acknowledgment-heading {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c85a54;
    display: block;
    margin-bottom: 0.3rem;
}

.acknowledgment-text {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #adb5bd;
}

/* Adjust footer padding to accommodate larger image */
footer {
    padding: 20px 0 !important;
}

.step {
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
}

.step span {
    font-weight: bold;
    text-decoration: underline;
}

.step div {
    margin-left: 20px;
}

.contact-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
}

.logo {
    margin-right: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
    display: inline-block;
}

.logo img {
    width: 100px;
    height: 100px;
}

.small-logo {
    margin: 4px;
    background-color: white;

}
.small-logo img {
    width: 2rem;
    height: 2rem;
}