/* Longevita - Educational Resource on Healthy Lifestyle for Men 40+ */
/* Deep Teal Accent Color Theme */

:root {
    --primary-color: #006d6d;
    --primary-dark: #005252;
    --primary-light: #008080;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-cream: #f5f7f6;
    --border-color: #e0e4e3;
    --shadow-light: rgba(0, 109, 109, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

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

/* Header / Navbar */
.navbar-custom {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-medium) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23006d6d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Offset for Fixed Header */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow-medium);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section:nth-child(even) {
    background-color: var(--bg-cream);
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

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

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

/* Two Column Layout */
.two-column {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.two-column.reverse {
    flex-direction: row-reverse;
}

.two-column .text-content {
    flex: 1;
}

.two-column .image-content {
    flex: 1;
}

.two-column .image-content img {
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* Info Cards */
.info-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-card .icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    fill: none;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Image Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
}

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

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

/* Example Block / Routine */
.routine-block {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.routine-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.routine-item:last-child {
    border-bottom: none;
}

.routine-time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 100px;
}

.routine-desc {
    color: var(--text-medium);
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list .tip-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.tips-list .tip-icon svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

/* FAQ Accordion */
.faq-section .card {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .card-header {
    background: var(--bg-white);
    border: none;
    padding: 0;
}

.faq-section .btn-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-section .btn-link:hover {
    color: var(--primary-color);
}

.faq-section .btn-link::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-section .btn-link[aria-expanded="true"]::after {
    content: '-';
}

.faq-section .card-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-medium);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
}

.contact-section h2 {
    color: white;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    margin-bottom: 2rem;
}

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

.contact-info-item svg {
    width: 24px;
    height: 24px;
    stroke: white;
    min-width: 24px;
}

.contact-info-item span {
    color: rgba(255, 255, 255, 0.9);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 8px;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: white;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: var(--bg-cream);
    color: var(--primary-dark);
}

/* Soft CTA Section */
.soft-cta {
    background-color: var(--bg-cream);
    padding: 4rem 0;
    text-align: center;
}

.soft-cta h2 {
    margin-bottom: 1rem;
}

.soft-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Disclaimer Block */
.disclaimer-block {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-block h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-block h4 svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
}

.disclaimer-block p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-disclaimer {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px var(--shadow-medium);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.cookie-content a {
    color: var(--primary-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Policy Pages */
.policy-page {
    padding: 6rem 0 4rem;
    min-height: 70vh;
}

.policy-page h1 {
    margin-bottom: 2rem;
}

.policy-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.policy-page ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-page ul li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    padding: 6rem 0 4rem;
}

/* Animations - Fade In on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .two-column {
        flex-direction: column;
        gap: 2rem;
    }
    
    .two-column.reverse {
        flex-direction: column;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    main {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-white {
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
    }
}
