@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Fraunces:ital,opsz,wght@1,9..144,300..600&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Neapolitan Palette */
    --strawberry: #D96C7B;
    --vanilla: #F7EDE2;
    --cocoa: #4B2E2B;
    --cherry: #A4243B;
    --white: #ffffff;
    
    --bg-color: var(--vanilla);
    --text-color: var(--cocoa);
    --primary-color: var(--strawberry);
    --accent-color: var(--cherry);
    
    --font-head: 'Bricolage Grotesque', sans-serif;
    --font-accent: 'Fraunces', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-text { font-family: var(--font-head); font-weight: 700; }
.accent-text { font-family: var(--font-accent); font-style: italic; font-weight: 500; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* SVG Logo */
.logo-svg { height: 40px; display: inline-block; vertical-align: middle; margin-right: 0.5rem; }

/* Header */
.header { background-color: var(--vanilla); padding: 1.5rem 0; border-bottom: 2px solid var(--cocoa); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 2rem; color: var(--cocoa); text-decoration: none; display: flex; align-items: center; }
nav a { text-decoration: none; color: var(--cocoa); font-family: var(--font-head); font-size: 1.1rem; margin-left: 2rem; border-bottom: 2px solid transparent; transition: 0.2s; }
nav a:hover { border-bottom: 2px solid var(--strawberry); color: var(--strawberry); }

/* Buttons */
.btn {
    display: inline-block; padding: 1rem 2.5rem; font-family: var(--font-head); font-size: 1.2rem;
    text-decoration: none; border: 2px solid var(--cocoa); border-radius: 50px;
    background: var(--vanilla); color: var(--cocoa); transition: all 0.2s ease-out;
    cursor: pointer; box-shadow: 4px 4px 0 var(--cocoa); position: relative; font-weight: 600;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cocoa); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cocoa); }

.btn-primary { background: var(--strawberry); color: var(--vanilla); }
.btn-primary:hover { background: var(--cherry); color: var(--vanilla); }

/* Wavy Dividers */
.wavy-bottom { position: relative; padding-bottom: 4rem; z-index: 1; }
.wavy-bottom::after {
    content: ""; position: absolute; bottom: -20px; left: 0; width: 100%; height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 40" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,40 C150,0 300,0 600,40 C900,0 1050,0 1200,40 V0 H0 Z" fill="%23F7EDE2"/></svg>') repeat-x;
    background-size: 1200px 40px;
    z-index: 2;
}

/* Hero */
.hero { background: var(--vanilla); text-align: center; padding: 7rem 0 5rem 0; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--cocoa); letter-spacing: -1px; }
.hero h1 span { color: var(--strawberry); }
.hero p { font-size: 1.4rem; max-width: 700px; margin: 0 auto 3rem auto; color: var(--cocoa); font-family: var(--font-accent); font-style: italic; }
.hero .external-resource { margin-top: 5rem; font-size: 1rem; border: 2px dashed var(--cocoa); padding: 1.2rem; border-radius: 12px; display: inline-block; background: #fffdfa; transform: rotate(-1deg);}
.hero .resource-link { color: var(--cherry); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cherry); }
.hero .resource-link:hover { background: var(--cherry); color: var(--vanilla); }

/* Sections */
section { padding: 6rem 0; position: relative; }
section h3, section h2 { font-size: 3rem; text-align: center; margin-bottom: 4rem; color: inherit; }

.bg-cocoa { background-color: var(--cocoa); color: var(--vanilla); }
.bg-strawberry { background-color: var(--strawberry); color: var(--vanilla); }

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

/* Cards */
.card {
    background: var(--vanilla); border: 2px solid var(--cocoa); padding: 3rem 2.5rem;
    border-radius: 20px; box-shadow: 6px 6px 0 var(--cocoa); color: var(--cocoa);
    display: flex; flex-direction: column; align-items: flex-start;
}
.card-icon { width: 56px; height: 56px; margin-bottom: 2rem; fill: var(--strawberry); }
.card h4, .card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.card p { font-size: 1.1rem; line-height: 1.6; }
.bg-cocoa .card { background: #5c3a36; border-color: var(--vanilla); box-shadow: 6px 6px 0 var(--vanilla); color: var(--vanilla); }
.bg-cocoa .card-icon { fill: var(--vanilla); }

/* Pricing */
#pricing { background: var(--vanilla); }
#pricing h3 { color: var(--cocoa); }
.price-card {
    background: #fffdfa; border: 2px solid var(--cocoa); padding: 3rem 2rem;
    border-radius: 20px; box-shadow: 6px 6px 0 var(--cocoa); text-align: center;
    position: relative; display: flex; flex-direction: column; color: var(--cocoa);
}
.price-card.popular {
    background: var(--strawberry); color: var(--vanilla); transform: translateY(-10px);
}
.price-card.popular .btn { background: var(--vanilla); color: var(--cocoa); }
.price-card.popular .btn:hover { background: var(--cocoa); color: var(--vanilla); }

.badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg);
    background: var(--cherry); color: var(--vanilla); padding: 0.5rem 1.2rem;
    font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    border: 2px solid var(--cocoa); border-radius: 12px; box-shadow: 3px 3px 0 var(--cocoa);
}
.price { font-size: 4rem; font-family: var(--font-head); font-weight: 800; margin: 1.5rem 0; line-height: 1; }
.price span { font-size: 1.2rem; font-family: var(--font-accent); font-style: italic; font-weight: normal; }
.price-card ul { list-style: none; margin-bottom: 3rem; text-align: left; }
.price-card li { margin-bottom: 1rem; display: flex; align-items: center; font-size: 1.1rem;}
.price-card li svg { width: 24px; height: 24px; margin-right: 0.8rem; fill: var(--cherry); flex-shrink: 0; }
.price-card.popular li svg { fill: var(--vanilla); }
.price-card .btn { margin-top: auto; }

/* Reviews */
.review-card {
    background: var(--vanilla); border: 2px solid var(--cocoa); border-radius: 20px;
    padding: 3rem 2.5rem; box-shadow: 4px 4px 0 var(--cocoa); position: relative; color: var(--cocoa);
}
.quote-icon { width: 40px; height: 40px; fill: var(--strawberry); margin-bottom: 1.5rem; opacity: 0.8; }
.review-card p { font-family: var(--font-accent); font-style: italic; font-size: 1.3rem; margin-bottom: 2rem; line-height: 1.6;}
.review-card .author { font-family: var(--font-head); font-weight: 700; text-align: right; font-size: 1.1rem; }
.bg-strawberry h3 { color: var(--vanilla); }
.bg-strawberry .review-card { border-color: var(--vanilla); box-shadow: 4px 4px 0 var(--vanilla); }

/* FAQ */
#faq { background: var(--vanilla); }
#faq h3 { color: var(--cocoa); }
.faq-item {
    background: #fffdfa; border: 2px solid var(--cocoa); border-radius: 16px;
    padding: 2rem; margin-bottom: 1.5rem; box-shadow: 4px 4px 0 var(--cocoa);
    transition: transform 0.2s;
}
.faq-item:hover { transform: translateX(5px); }
.faq-item h4, .faq-item h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--cherry); }
.faq-item p { color: var(--cocoa); font-size: 1.1rem; }

/* News section */
#news h3 { color: var(--cocoa); }
.news-card {
    background: #fffdfa; border: 2px solid var(--cocoa); border-radius: 16px;
    padding: 2rem; display: flex; flex-direction: column;
    box-shadow: 4px 4px 0 var(--cocoa); transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--cocoa); }
.news-meta { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 1.2rem; }
.category { background: var(--strawberry); color: var(--vanilla); padding: 0.3rem 0.8rem; border-radius: 8px; font-weight: 700; border: 1px solid var(--cocoa); }
.date { color: #666; font-family: var(--font-body); display: flex; align-items: center;}
.news-card h4, .news-card h3 { font-size: 1.4rem; line-height: 1.4; margin-bottom: 1rem; }
.news-card h4 a { color: var(--cocoa); text-decoration: none; }
.news-card h4 a:hover { color: var(--cherry); text-decoration: underline; }
.excerpt { font-size: 1.05rem; color: #555; margin-bottom: 1.5rem; flex-grow: 1; }
.news-footer { border-top: 2px dashed var(--cocoa); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.read-more { font-family: var(--font-head); font-weight: 700; color: var(--cherry); text-decoration: none; display: flex; align-items: center;}
.read-more:hover { text-decoration: underline; }
.news-more { text-align: center; margin-top: 4rem; }

/* Footer */
.footer { background-color: var(--cocoa); color: var(--vanilla); text-align: center; padding: 5rem 0 3rem 0; border-top: 10px solid var(--cherry); }
.footer-links { margin-bottom: 3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.footer-links a { color: var(--vanilla); text-decoration: none; font-family: var(--font-head); font-size: 1.2rem; border-bottom: 2px solid transparent; padding-bottom: 0.2rem;}
.footer-links a:hover { color: var(--strawberry); border-color: var(--strawberry); }
.footer p { font-family: var(--font-accent); font-style: italic; opacity: 0.8; font-size: 1.1rem;}

/* Article specific styles (Keep for News pages) */
.page-content { background: #fffdfa; border: 2px solid var(--cocoa); border-radius: 20px; padding: 4rem; margin: 4rem auto; box-shadow: 8px 8px 0 var(--cocoa); }
.page-content h2 { color: var(--cherry); border-bottom: 2px dashed var(--cocoa); padding-bottom: 1rem; margin-top: 3rem; margin-bottom: 2rem; font-size: 2.2rem;}
.page-content h3 { color: var(--cocoa); margin-top: 2.5rem; margin-bottom: 1.2rem; font-size: 1.6rem; text-align: left; }
.page-content p { margin-bottom: 1.5rem; font-size: 1.15rem; line-height: 1.8;}
.page-content a { color: var(--cherry); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--cherry);}
.page-content a:hover { background: var(--cherry); color: var(--vanilla); }
.article-header { text-align: center; margin-bottom: 3rem; }
.article-header h1 { font-size: 3rem; color: var(--cocoa); margin-bottom: 1.2rem; line-height: 1.2;}
.article-meta { font-family: var(--font-accent); font-style: italic; color: #666; font-size: 1.1rem; }
.breadcrumb { margin-bottom: 2.5rem; font-family: var(--font-head); font-size: 1.1rem;}
.breadcrumb a { color: var(--cocoa); text-decoration: none; border-bottom: none;}
.breadcrumb a:hover { color: var(--strawberry); background: none;}
.related-articles { margin-top: 5rem; padding-top: 3rem; border-top: 2px dashed var(--cocoa); }
.related-articles h3 { margin-bottom: 2rem; text-align: left; color: var(--cocoa); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* Media Queries */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 1.5rem; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;}
    nav a { margin: 0; font-size: 1.1rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    .price-card.popular { transform: none; }
    .btn { display: block; width: 100%; padding: 1.2rem; text-align: center; }
    .page-content { padding: 2rem; margin: 2rem auto;}
    .grid { grid-template-columns: 1fr; }
    section { padding: 4rem 0; }
    section h3, section h2 { font-size: 2.2rem; }
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--cherry);
    color: var(--vanilla);
    border: 2px solid var(--cocoa);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0 var(--cocoa);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.floating-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--cocoa);
}
.floating-btn svg { width: 24px; height: 24px; fill: var(--vanilla); }

/* Next Article Link */
.next-article {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--strawberry);
    border: 2px solid var(--cocoa);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--cocoa);
    text-align: center;
}
.next-article h4 {
    color: var(--vanilla);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: var(--font-head);
}
.next-article a.next-btn {
    color: var(--cocoa);
    background: var(--vanilla);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--cocoa);
    box-shadow: 4px 4px 0 var(--cocoa);
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.next-article a.next-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--cocoa);
    color: var(--cocoa);
    background: var(--vanilla);
}
