/*
Theme Name: Contribu
Theme URI: https://contribu.demo.sbarron.com
Author: Shane Barron
Description: Wedding group-funding gift registry platform. Couples create personalized registries, guests contribute toward gift goals. Warm romantic aesthetic with soft blush, sage, and gold accents.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: contribu
*/

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

:root {
    --cream: #faf8f5;
    --cream-dark: #f5f0ea;
    --blush: #e8b4b8;
    --blush-light: #f5d5d8;
    --blush-dark: #c48b8f;
    --sage: #8fae8b;
    --sage-light: #b8d4b5;
    --sage-dark: #6b8a67;
    --gold: #c5a55a;
    --gold-light: #dcc88a;
    --gold-dark: #9e7f3a;
    --navy: #2c3e50;
    --charcoal: #3a3a3a;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #999;
    --white: #ffffff;
    --border: #e8e4df;
    --border-light: #f0ece7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Utilities ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }

/* ===== Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--sage);
    color: var(--white) !important;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(143, 174, 139, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.4s;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(143, 174, 139, 0.12);
    border: 1px solid rgba(143, 174, 139, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--sage);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--sage);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(143, 174, 139, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--sage);
    background: rgba(143, 174, 139, 0.06);
}

.hero-image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.hero-float-gift {
    bottom: 15%;
    right: 55%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-float-gift .icon {
    width: 40px;
    height: 40px;
    background: rgba(143, 174, 139, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}

.hero-float-progress {
    top: 25%;
    right: -2%;
    min-width: 180px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--cream-dark);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--sage);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
    .hero-image { display: none; }
    .hero-content { max-width: 100%; }
}

/* ===== How It Works ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 56px;
    counter-reset: step;
}

.step-card {
    text-align: center;
    counter-increment: step;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 16px;
    font-family: 'Playfair Display', serif;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ===== Section Headers ===== */
.section-header {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sage);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===== Benefits Grid ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.benefit-card {
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.4s;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--sage-light);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(143, 174, 139, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--sage);
}

.benefit-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ===== Registry Preview / Gift Cards ===== */
.registry-section { background: var(--cream-dark); }

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.gift-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s;
}

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

.gift-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gift-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gift-card:hover .gift-card-img img {
    transform: scale(1.05);
}

.gift-card-priority {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gift-card-priority.high { color: var(--blush-dark); }
.gift-card-priority.medium { color: var(--gold-dark); }

.gift-card-body { padding: 20px; }

.gift-card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gift-card-body p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.55;
}

.gift-progress {
    margin-bottom: 12px;
}

.gift-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.gift-progress-raised {
    font-weight: 700;
    color: var(--sage);
}

.gift-progress-goal {
    color: var(--text-muted);
}

.gift-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--cream-dark);
    border-radius: 100px;
    overflow: hidden;
}

.gift-progress-fill {
    height: 100%;
    background: var(--sage);
    border-radius: 100px;
}

.gift-card-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--sage);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-align: center;
}

.gift-card-btn:hover {
    background: var(--sage-dark);
}

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

/* ===== Couple Showcase ===== */
.couple-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.couple-preview img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.couple-features { list-style: none; display: grid; gap: 16px; }

.couple-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.925rem;
    color: var(--text-secondary);
}

.couple-features li svg {
    flex-shrink: 0;
    color: var(--sage);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .couple-preview { grid-template-columns: 1fr; }
}

/* ===== Testimonials ===== */
.testimonials-section { background: var(--cream-dark); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
    color: var(--gold);
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* ===== CTA Band ===== */
.cta-band {
    padding: 80px 0;
    background: var(--sage);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    margin-bottom: 12px;
}

.cta-band p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--sage-dark);
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== RSVP Form ===== */
.rsvp-form {
    max-width: 500px;
    margin: 48px auto 0;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

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

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(143, 174, 139, 0.1);
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
    padding: 48px 0 24px;
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
}

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

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

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

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

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ===== Page Header ===== */
.page-header {
    padding: 140px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Reveal Animations ===== */
/* Content visible by default — GSAP handles the animation.
   Only hide when JS/GSAP is confirmed loaded via body class. */
body.gsap-ready .reveal {
    visibility: hidden;
}

/* ===== Gift Creation Form ===== */
.gift-form-card {
    max-width: 600px;
    margin: 48px auto 0;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.gift-form-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.image-upload-area:hover {
    border-color: var(--sage);
    background: rgba(143, 174, 139, 0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== Wedding Page Template ===== */
.wedding-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--blush-light) 30%, var(--cream-dark) 100%);
    padding: 120px 24px 60px;
}

.wedding-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
}

.wedding-hero .wedding-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 8px;
}

.wedding-hero .wedding-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.wedding-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.wedding-photo-grid img {
    border-radius: var(--radius-md);
    height: 260px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .wedding-photo-grid { grid-template-columns: 1fr; }
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

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

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(143, 174, 139, 0.1);
    border-radius: 10px;
    color: var(--sage);
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
