/* Main Landing Page Styles */

/* Hero Section */
/* TODO: Add hero background image */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-base) 100%);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

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

.product-card .btn::after {
    content: "";
    position: absolute;
    inset: 0;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-section);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.product-features {
    margin: 1.5rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card h3 {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary);
}

.product-price {
    color: var(--primary);
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary);
}

.pricing-card ul {
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
}

/* About Page */
.about-story {
    max-width: 760px;
    margin: 0 auto;
}

.about-story p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.mission-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--primary);
    border-radius: 0.3rem;
    text-align: center;
}

.mission-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 0;
}

.mission-values {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.mission-values span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1rem;
    font-style: normal;
    letter-spacing: 0.02em;
}

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

.team-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--border);
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-name a {
    color: var(--primary);
}

.team-name a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.team-card:hover .team-name a {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lift bio links above the card overlay so they remain independently clickable */
.team-bio a {
    position: relative;
    z-index: 2;
}

.team-title {
    font-style: italic;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    text-align: left;
}

.about-footnotes {
    max-width: 760px;
    margin: 2rem auto 0;
    font-size: 0.9rem;
    color: var(--secondary);
}

.about-footnotes p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

/* Page Sidebar */
.sidebar-layout {
    display: flex;
    align-items: flex-start;
}

.page-sidebar {
    position: sticky;
    top: 5rem;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 2.5rem 0 2rem 1.5rem;
    background: var(--bg-base);
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.page-sidebar nav ul {
    border-left: 2px solid var(--border);
}

.page-sidebar nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.2s;
}

.page-sidebar nav a:hover {
    color: var(--dark);
}

.page-sidebar nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .sidebar-layout {
        display: block;
    }

    .page-sidebar {
        display: none;
    }
}

/* Contact Page */
.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-section);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Blog */
.blog-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    padding: 2rem;
    transition: all 0.2s;
    cursor: pointer;
}

.blog-post-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.blog-post-title a {
    color: var(--dark);
    transition: color 0.2s;
}

.blog-post-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.blog-post-item:hover .blog-post-title a {
    color: var(--primary);
}

.blog-post-meta {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Topic tags (used in listing and post header) */
.post-topics {
    margin-bottom: 0.75rem;
}

.topic-tag {
    display: inline-block;
    background: var(--bg-section);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    margin-right: 0.4rem;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-hero .topic-tag {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Blog post body */
.post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body h2,
.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
}

.post-back {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

.post-meta {
    font-size: 1rem;
    margin-top: 0.5rem;
}
