/* CSS Variables */
:root {
    --red: #c41e3a;
    --red-dark: #a01830;
    --gold: #d4af37;
    --gold-light: #e8c860;
    --green: #165b33;
    --green-light: #1e7a42;
    --cream: #fef9f0;
    --cream-dark: #f5efe0;
    --white: #fff;
    --dark: #2d2d2d;
    --gray: #666;
    --gray-light: #999;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--cream);
    min-height: 100vh;
}

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

a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

.logo i {
    font-size: 2rem;
    color: var(--gold);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--red);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 0.5rem;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    font-weight: 600;
    border-bottom: 1px solid var(--cream-dark);
}

.nav-mobile a:hover {
    background: var(--cream);
    color: var(--red);
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(22, 91, 51, 0.85) 100%);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.85) 0%, rgba(22, 91, 51, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-decorations {
    position: absolute;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    color: var(--dark);
}

.btn-tertiary {
    background: var(--green);
    color: var(--white);
}

.btn-tertiary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    color: var(--white);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.section-cream {
    background: var(--cream);
}

.section-white {
    background: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--cream);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--dark);
}

.card-title a:hover {
    color: var(--red);
}

.card-excerpt {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--cream);
}

.card-date {
    font-size: 0.8125rem;
    color: var(--gray-light);
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--red);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.tool-card .btn {
    margin-top: 0.5rem;
}

/* Article Cards */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card .card-image {
    height: 180px;
}

.article-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-excerpt {
    flex: 1;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--red) 0%, var(--green) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--gold);
    color: var(--dark);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* Gift Categories */
.category-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.category-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 1.5rem;
    width: 100%;
}

.category-content h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.category-content span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

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

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Article Page Styles */
.article-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.article-content {
    padding: 3rem 0;
}

.article-content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.article-content h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 2rem; margin-bottom: 0.75rem; }

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--gray);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.article-content ul li::before {
    content: '❄';
    position: absolute;
    left: -1.5rem;
    color: var(--gold);
}

.article-content ol {
    counter-reset: list;
}

.article-content ol li {
    counter-increment: list;
}

.article-content ol li::before {
    content: counter(list);
    position: absolute;
    left: -1.5rem;
    width: 1.5rem;
    text-align: center;
    color: var(--gold);
    font-weight: 700;
}

/* Tool Page Styles */
.tool-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    text-align: center;
}

.tool-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.tool-content {
    padding: 3rem 0;
}

.tool-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.tool-output {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
}

.tool-output h3 {
    color: var(--green);
    margin-bottom: 1rem;
}

.result-item {
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

/* List Tracker Styles */
.list-tracker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.list-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.list-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
}

.list-item .remove-btn {
    margin-left: auto;
    color: var(--red);
    font-size: 1.25rem;
    opacity: 0.6;
    transition: var(--transition);
}

.list-item .remove-btn:hover {
    opacity: 1;
}

/* Countdown Styles */
.countdown-display {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--green) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Page Headers */
.page-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--green) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* 404 Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

/* Legal Pages */
.legal-content {
    padding: 3rem 0;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none;
    }
}
