/* 
   Shyan Health - Premium Design System
   Color Palette: Deep Forest Green, Sage, Gold, Ivory
*/

:root {
    --primary: #1b3022;
    --primary-light: #2d503b;
    --secondary: #84a98c;
    --secondary-light: #cad2c5;
    --accent: #d4af37;
    --accent-hover: #b8962d;
    --bg-light: #faf9f6;
    --bg-ivory: #fefae0;
    --text-dark: #2d2d2d;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 15px;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-light);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--accent);
    transform: rotate(15deg);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
}

.logo-text span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(27, 48, 34, 0.8), rgba(27, 48, 34, 0.2));
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.hero-scroll span {
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    transition: var(--transition);
}

.stat-icon {
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Articles Section */
.articles-section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--secondary-light);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

.article-header {
    padding: 30px 30px 10px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.article-body {
    padding: 0 30px 30px;
    flex-grow: 1;
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.load-more-container {
    text-align: center;
    margin-top: 60px;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--primary);
    color: var(--white);
}

.products-section .section-title {
    color: var(--white);
}

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

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.product-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-placeholder {
    font-size: 80px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 24px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .current {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.product-price .old {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.5;
    margin-left: 10px;
}

.view-all-products {
    text-align: center;
    margin-top: 50px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.text-link:hover {
    gap: 15px;
}

/* About Section */
.about-section {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-features {
    list-style: none;
    margin-top: 40px;
}

.about-features li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    color: var(--accent);
}

.about-features h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.about-features p {
    font-size: 14px;
    color: var(--text-muted);
}

.image-stack {
    position: relative;
}

.main-img {
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.accent-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: var(--accent);
    z-index: -1;
    border-radius: 30px;
}

/* Consultation Section */
.consult-section {
    padding: 100px 0;
    background-color: var(--bg-ivory);
}

.consult-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.consult-info {
    padding: 60px;
    background-color: var(--primary);
    color: var(--white);
}

.consult-info .section-title {
    color: var(--white);
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method i {
    color: var(--accent);
}

.consult-form-box {
    padding: 60px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background-color: #0f1a13;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 24px;
}

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

.social-links a {
    color: var(--white);
    opacity: 0.6;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-links h4, .footer-newsletter h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 10px;
    color: var(--accent);
}

.footer-newsletter p {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.5;
}

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

.footer-legal a {
    color: var(--white);
    text-decoration: none;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal="bottom"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .consult-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 30px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 60px 60px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.modal-header .tag {
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.8;
}

.modal-body {
    padding: 60px;
    overflow-y: auto;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.modal-body h3 {
    font-size: 24px;
    color: var(--primary);
    margin: 40px 0 20px;
}

.modal-body h4 {
    font-size: 20px;
    color: var(--primary-light);
    margin: 30px 0 15px;
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body ul, .modal-body ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
}

.shyan-note {
    background: var(--bg-ivory);
    border-left: 5px solid var(--accent);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    font-style: italic;
    color: var(--primary);
}

.modal-footer {
    padding: 30px 60px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.footer-brand strong {
    color: var(--primary);
    font-size: 18px;
}

.footer-brand span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Category Tags */
.tag-wl { background-color: #e8f5d0; color: #2d5016; }
.tag-pcos { background-color: #fde8f0; color: #8b1a4a; }
.tag-thy { background-color: #e8effe; color: #1a3a8b; }

.article-tag.tag-wl { background: #e8f5d0; color: #2d5016; }
.article-tag.tag-pcos { background: #fde8f0; color: #8b1a4a; }
.article-tag.tag-thy { background: #e8effe; color: #1a3a8b; }

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .modal-header, .modal-body, .modal-footer {
        padding: 30px;
    }
    .modal-header h2 {
        font-size: 24px;
    }
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}

