/*
Theme Name:  WeddingFlow PH
Theme URI:   https://yourdomain.com
Author:      Jomar Gamboga
Description: Custom theme for WeddingFlow PH — matches the wedding invitation app aesthetic.
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: weddingflow
*/

/* ═══════════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold:       #c5a059;
    --gold-dark:  #8a6d3b;
    --gold-light: #e6d2a5;
    --text:       #2c3e50;
    --text-soft:  #666;
    --bg:         #ffffff;
    --bg-warm:    #fdf8f0;
    --bg-light:   #f5f0e8;
    --border:     #ede5d8;
    --font-head:  'Cormorant Garamond', serif;
    --font-body:  'Montserrat', sans-serif;
    --radius:     14px;
    --shadow:     0 4px 24px rgba(0,0,0,.07);
    --shadow-lg:  0 12px 48px rgba(0,0,0,.12);
    --max-w:      1100px;
    --max-w-text: 720px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); transition: color .2s; }
a:hover { color: var(--gold-dark); }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.2;
    font-weight: 600;
}
h1 { font-size: clamp(2rem,   5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.2rem; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; color: var(--text-soft); }
li { margin-bottom: .4rem; }

blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    background: var(--bg-warm);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn, .btn-outline {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s;
    border: 2px solid transparent;
    line-height: 1;
}
.btn {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(197,160,89,.35);
}
.btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(197,160,89,.4); }

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-white {
    background: #fff;
    color: var(--gold-dark);
    border-color: #fff;
}
.btn-white:hover { background: var(--gold-light); color: var(--gold-dark); }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-text {
    width: 100%;
    max-width: var(--max-w-text);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* ═══════════════════════════════════════════
   SITE HEADER / NAV
═══════════════════════════════════════════ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height, 72px);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: nowrap;
}
/* Make the <nav> wrapper WP outputs behave as an inline flex item */
.nav-wrap > nav {
    display: flex;
    align-items: center;
}
.site-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}
.site-logo:hover { color: var(--gold-dark); }

/* Primary nav menu */
.primary-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.primary-nav li a {
    display: block;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s;
}
.primary-nav li a:hover,
.primary-nav li.current-menu-item > a { color: var(--gold); background: var(--bg-warm); }

/* CTA buttons in nav */
.nav-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: 1rem;
}
.nav-login {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all .2s;
}
.nav-login:hover { color: var(--gold); }
.nav-register {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 50px;
    transition: all .2s;
    box-shadow: 0 2px 10px rgba(197,160,89,.35);
}
.nav-register:hover { background: var(--gold-dark); transform: translateY(-1px); color: #fff; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-wrap {
        display: none;
        position: absolute;
        top: var(--header-height, 72px);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
    }
    .nav-wrap.open { display: block; }
    .primary-nav { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .primary-nav li { width: 100%; }
    .primary-nav li a { padding: 10px 14px; }
    .nav-cta { margin: 1rem 0 0; flex-direction: column; align-items: stretch; }
    .nav-login, .nav-register { text-align: center; }
    .nav-register { padding: 12px; }
}

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */
#site-footer {
    background: #1a252f;
    color: rgba(255,255,255,.65);
    padding: var(--footer-padding-top, 4rem) 0 var(--footer-padding-bottom, 2rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand-name {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: .5rem;
}
.footer-desc { font-size: .82rem; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer-col h4 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: rgba(255,255,255,.3);
    flex-wrap: wrap;
    gap: .5rem;
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   HERO (front-page)
═══════════════════════════════════════════ */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 60%, #3a2a1a 100%);
    padding: 6rem 1.5rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .25;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    padding: 6px 18px;
    border: 1px solid rgba(197,160,89,.3);
    border-radius: 50px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.3);
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ═══════════════════════════════════════════
   HOW IT WORKS SECTION
═══════════════════════════════════════════ */
.how-it-works { background: var(--bg-light); }
.section-eyebrow {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}
.section-title { margin-bottom: .5rem; }
.section-sub { font-size: .9rem; color: var(--text-soft); margin-bottom: 3rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bg-warm);
    border: 2px solid var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 auto 1.2rem;
}
.step-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.step-card p { font-size: .85rem; margin: 0; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   FEATURES / SAMPLE SECTION
═══════════════════════════════════════════ */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.feature-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--bg-warm);
    border: 1px solid var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.feature-item h4 { font-size: .9rem; margin-bottom: 4px; }
.feature-item p { font-size: .8rem; margin: 0; }
@media (max-width: 560px) { .features-list { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   PRICING SECTION
═══════════════════════════════════════════ */
.pricing { background: var(--bg-warm); }
.pricing-card {
    max-width: 480px;
    margin: 3rem auto 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: center;
}
.pricing-card-top {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 2.5rem 2rem;
    color: #fff;
}
.pricing-card-top h3 { color: #fff; font-size: 1.4rem; margin-bottom: .25rem; }
.price-amount {
    font-size: 3.5rem;
    font-family: var(--font-head);
    line-height: 1;
    margin: 1rem 0 .25rem;
}
.price-currency { font-size: 1.5rem; vertical-align: super; }
.price-label { font-size: .75rem; opacity: .8; letter-spacing: 2px; text-transform: uppercase; }
.pricing-card-body { padding: 2rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; }
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .85rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    text-align: center;
    padding: 6rem 1.5rem;
}
.cta-banner h2 { color: var(--gold-light); font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto 2.5rem; }

/* ═══════════════════════════════════════════
   PAGE / SINGLE POST
═══════════════════════════════════════════ */
.page-hero {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero .post-meta { font-size: .78rem; color: #bbb; }

.entry-content {
    padding: 4rem 0;
}
.entry-content h2, .entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content p { color: var(--text-soft); line-height: 1.9; margin-bottom: 1.5rem; }
.entry-content img { border-radius: var(--radius); margin: 2rem 0; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--border); font-size: .88rem; }
.entry-content th { background: var(--bg-warm); font-weight: 600; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.entry-content .wp-caption-text { font-size: .78rem; color: #aaa; text-align: center; margin-top: .5rem; }

/* Featured image */
.featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 3rem;
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.post-nav-item {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all .2s;
    color: var(--text);
}
.post-nav-item:hover { border-color: var(--gold); background: var(--bg-warm); }
.post-nav-label { font-size: .65rem; text-transform: uppercase; letter-spacing: 2px; color: #bbb; margin-bottom: 4px; }
.post-nav-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.post-nav-item:nth-child(2) { text-align: right; }
@media (max-width: 480px) { .post-nav { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   BLOG ARCHIVE / INDEX
═══════════════════════════════════════════ */
.archive-header {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.5rem;
    text-align: center;
}
.archive-header h1 { margin-bottom: .25rem; }
.archive-desc { color: var(--text-soft); font-size: .9rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}
.post-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--gold-light);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
}
.post-card-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: .5rem;
    line-height: 1.3;
    text-decoration: none;
}
.post-card-title:hover { color: var(--gold); }
.post-card-excerpt { font-size: .83rem; color: var(--text-soft); line-height: 1.7; flex: 1; }
.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
    font-size: .72rem;
    color: #bbb;
}
.read-more {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}
.read-more:hover { color: var(--gold-dark); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 0 4rem;
}
.pagination a, .pagination .current {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.pagination a { color: var(--text); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #fff; border: 1px solid var(--gold); }

/* ═══════════════════════════════════════════
   NO POSTS / 404
═══════════════════════════════════════════ */
.no-content {
    text-align: center;
    padding: 6rem 1.5rem;
}
.no-content h2 { margin-bottom: 1rem; }
.no-content p { color: var(--text-soft); margin-bottom: 2rem; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.gold { color: var(--gold); }
.divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 1.5rem auto;
}
.tag {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--gold-dark);
    border: 1px solid var(--gold-light);
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    margin-bottom: 1rem;
}

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide { width: 100%; }
.clearfix::after { content: ''; display: table; clear: both; }

/* WordPress admin bar fix */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
