/*
 Theme Name:   Tribute - Caleb
 Theme URI:    https://caloob.com
 Description:  A memorial theme for Caleb Francis — built for Emersyn and all who loved him.
 Author:       Gregg Francis
 Author URI:   https://caloob.com
 Template:     tribute
 Version:      2.0.0
 Tags:         memorial, tribute, custom
 Text Domain:  tribute-caleb
*/

/* =============================================
   VARIABLES
   ============================================= */
:root {
    --caleb-primary:  #2C3E50;
    --caleb-accent:   #E67E22;
    --caleb-light:    #F8F4EF;
    --caleb-text:     #2C2C2C;
    --caleb-muted:    #7F8C8D;
    --caleb-gold:     #D4AC0D;
    --caleb-dark:     #1a252f;
    --caleb-white:    #ffffff;
    --font-serif:     Georgia, 'Times New Roman', serif;
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--caleb-light);
    color: var(--caleb-text);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.85;
}

#caleb-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--caleb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   HEADER
   ============================================= */
#caleb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 37, 47, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--caleb-gold);
}

.caleb-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.caleb-site-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: normal;
    color: var(--caleb-gold);
    letter-spacing: 0.04em;
    text-decoration: none;
}
.caleb-site-title:hover { text-decoration: none; opacity: 0.85; }

#caleb-nav { display: flex; align-items: center; }

.caleb-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.caleb-nav-menu li a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.2s;
}
.caleb-nav-menu li a:hover { color: var(--caleb-gold); text-decoration: none; }

.caleb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* =============================================
   HERO
   ============================================= */
#caleb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--caleb-primary);
    background-image: linear-gradient(135deg, #1a252f 0%, #2C3E50 50%, #2d4a3e 100%);
    overflow: hidden;
    padding: 80px 24px 60px;
}

#caleb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212,172,13,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(230,126,34,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.caleb-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('') center/cover no-repeat;
    opacity: 0.15;
}

.caleb-hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.caleb-hero-pre {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--caleb-gold);
    margin: 0 0 16px;
}

.caleb-hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: normal;
    color: var(--caleb-white);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.caleb-hero-dates {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
    margin: 0 0 40px;
}

.caleb-hero-quote {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: rgba(255,255,255,0.85);
    border: none;
    margin: 0 0 48px;
    padding: 0 24px;
    line-height: 1.7;
    background: transparent;
}

.caleb-hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
    animation: bob 2s ease-in-out infinite;
}
.caleb-hero-scroll:hover {
    border-color: var(--caleb-gold);
    color: var(--caleb-gold);
    text-decoration: none;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
.caleb-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.caleb-section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: normal;
    color: var(--caleb-primary);
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}
.caleb-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--caleb-accent);
    margin: 16px auto 40px;
    border-radius: 2px;
}
.caleb-title-light { color: var(--caleb-white); }
.caleb-title-light::after { background: var(--caleb-gold); }

.caleb-section-sub {
    text-align: center;
    color: var(--caleb-muted);
    font-style: italic;
    margin: -28px 0 40px;
    font-size: 1.05rem;
}
.caleb-sub-light { color: rgba(255,255,255,0.65); }

/* =============================================
   ABOUT
   ============================================= */
#caleb-about {
    background: var(--caleb-white);
}

.caleb-about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 64px;
}

.caleb-about-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.15);
}

.caleb-photo-placeholder {
    width: 100%;
    padding-bottom: 125%;
    background: var(--caleb-light);
    border-radius: 8px;
    border: 2px dashed rgba(44,62,80,0.2);
    position: relative;
}
.caleb-photo-placeholder span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--caleb-muted);
    font-size: 0.9rem;
    padding: 20px;
    line-height: 1.6;
}

.caleb-about-text p {
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--caleb-text);
}
.caleb-about-text p:last-child { margin-bottom: 0; }

/* Traits */
.caleb-traits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(44,62,80,0.1);
    padding-top: 48px;
}

.caleb-trait {
    text-align: center;
    padding: 28px 16px;
    background: var(--caleb-light);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.caleb-trait:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44,62,80,0.1);
}

.caleb-trait-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.caleb-trait h3 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--caleb-primary);
    margin: 0 0 8px;
    font-family: var(--font-serif);
}

.caleb-trait p {
    font-size: 0.9rem;
    color: var(--caleb-muted);
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   GALLERY
   ============================================= */
#caleb-gallery {
    background: var(--caleb-primary);
    background-image: linear-gradient(180deg, #1a252f 0%, #2C3E50 100%);
}

.caleb-gallery-grid .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.caleb-gallery-grid .gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s, opacity 0.3s;
}
.caleb-gallery-grid .gallery-item img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.caleb-gallery-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    padding: 48px 24px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
}

/* =============================================
   WORDS FROM MOM & DAD
   ============================================= */
#caleb-words {
    background: var(--caleb-light);
}

.caleb-eulogies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.caleb-eulogy {
    background: var(--caleb-white);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(44,62,80,0.08);
    border-top: 4px solid var(--caleb-accent);
}

.caleb-eulogy-author {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--caleb-accent);
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-weight: normal;
}

.caleb-eulogy blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.caleb-eulogy blockquote p {
    font-size: 1rem;
    font-style: italic;
    color: var(--caleb-text);
    line-height: 1.85;
    margin: 0 0 16px;
}
.caleb-eulogy blockquote p:last-child { margin-bottom: 0; }

/* =============================================
   TRIBUTES / GUESTBOOK
   ============================================= */
#caleb-tributes {
    background: var(--caleb-dark);
    background-image: linear-gradient(180deg, #1a252f 0%, #0f1b24 100%);
}

#caleb-tributes .caleb-section-inner {
    max-width: 800px;
}

.caleb-tributes-wrap #comments {
    color: var(--caleb-white);
}

.caleb-tributes-wrap .comments-title,
.caleb-tributes-wrap #reply-title {
    color: var(--caleb-white);
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 24px;
    font-family: var(--font-serif);
}

.caleb-tributes-wrap .comment-body {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border-left: 3px solid var(--caleb-accent);
}

.caleb-tributes-wrap .comment-author .fn {
    color: var(--caleb-gold);
    font-style: normal;
    font-weight: bold;
}

.caleb-tributes-wrap .comment-metadata a,
.caleb-tributes-wrap .comment-metadata {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.caleb-tributes-wrap .comment-content p {
    color: rgba(255,255,255,0.85);
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.caleb-tributes-wrap label {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.caleb-tributes-wrap input[type="text"],
.caleb-tributes-wrap input[type="email"],
.caleb-tributes-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 14px;
    color: white;
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.caleb-tributes-wrap input:focus,
.caleb-tributes-wrap textarea:focus {
    outline: none;
    border-color: var(--caleb-accent);
}

.caleb-tributes-wrap #submit,
.caleb-tributes-wrap input[type="submit"] {
    background: var(--caleb-accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
    margin-bottom: 0;
}
.caleb-tributes-wrap #submit:hover { background: #cf6d17; }

.caleb-tributes-note {
    color: rgba(255,255,255,0.5);
    font-style: italic;
    text-align: center;
}

/* =============================================
   INNER PAGES
   ============================================= */
.caleb-inner-page { display: flex; flex-direction: column; min-height: 100vh; }

.caleb-inner-hero {
    background: var(--caleb-primary);
    background-image: linear-gradient(135deg, #1a252f 0%, #2C3E50 100%);
    padding: 120px 24px 60px;
    text-align: center;
    border-bottom: 3px solid var(--caleb-gold);
}

.caleb-inner-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: normal;
    color: var(--caleb-white);
    margin: 0;
    letter-spacing: 0.03em;
}
.caleb-inner-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--caleb-accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.caleb-inner-body {
    flex: 1;
    background: var(--caleb-white);
    padding: 60px 24px 80px;
}

.caleb-inner-content {
    max-width: 820px;
    margin: 0 auto;
}

.caleb-page-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--caleb-text);
    margin: 0 0 20px;
}

.caleb-page-content h2,
.caleb-page-content h3 {
    color: var(--caleb-primary);
    font-weight: normal;
    margin: 40px 0 16px;
}

.caleb-page-content blockquote {
    border-left: 4px solid var(--caleb-accent);
    background: var(--caleb-light);
    padding: 20px 28px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--caleb-primary);
}

/* Gallery page */
.caleb-page-content .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}
.caleb-page-content .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s, opacity 0.3s;
}
.caleb-page-content .gallery-item img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Comments on inner pages (Memories) */
.caleb-page-comments {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid rgba(44,62,80,0.12);
}

.caleb-page-comments .comments-title,
.caleb-page-comments #reply-title {
    font-size: 1.4rem;
    font-weight: normal;
    color: var(--caleb-primary);
    margin-bottom: 24px;
    font-family: var(--font-serif);
}

.caleb-page-comments .comment-body {
    background: var(--caleb-light);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border-left: 3px solid var(--caleb-accent);
}

.caleb-page-comments .comment-author .fn {
    color: var(--caleb-primary);
    font-style: normal;
    font-weight: bold;
}

.caleb-page-comments .comment-metadata a {
    color: var(--caleb-muted);
    font-size: 0.85rem;
}

.caleb-page-comments .comment-content p {
    color: var(--caleb-text);
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.caleb-page-comments label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--caleb-text);
}

.caleb-page-comments input[type="text"],
.caleb-page-comments input[type="email"],
.caleb-page-comments textarea {
    width: 100%;
    border: 1px solid rgba(44,62,80,0.2);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--caleb-text);
    background: var(--caleb-white);
    transition: border-color 0.2s;
}
.caleb-page-comments input:focus,
.caleb-page-comments textarea:focus {
    outline: none;
    border-color: var(--caleb-accent);
}

.caleb-page-comments #submit,
.caleb-page-comments input[type="submit"] {
    background: var(--caleb-accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.caleb-page-comments #submit:hover { background: #cf6d17; }

@media (max-width: 640px) {
    .caleb-page-content .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   FOOTER
   ============================================= */
#caleb-footer {
    background: #0a131a;
    text-align: center;
    padding: 48px 24px;
    border-top: 2px solid var(--caleb-gold);
}

.caleb-footer-flame {
    font-size: 1.8rem;
    color: var(--caleb-accent);
    margin-bottom: 12px;
}

.caleb-footer-name {
    font-size: 1.3rem;
    color: var(--caleb-white);
    margin: 0 0 4px;
    letter-spacing: 0.06em;
}

.caleb-footer-dates {
    color: var(--caleb-gold);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.caleb-footer-dedication {
    font-style: italic;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.caleb-footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
    margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
    .caleb-about-grid {
        grid-template-columns: 1fr;
    }
    .caleb-about-photo {
        max-width: 320px;
        margin: 0 auto;
    }
    .caleb-traits {
        grid-template-columns: repeat(2, 1fr);
    }
    .caleb-eulogies {
        grid-template-columns: 1fr;
    }
    .caleb-gallery-grid .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .caleb-nav-toggle { display: block; }

    .caleb-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--caleb-dark);
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 2px solid var(--caleb-gold);
    }
    .caleb-nav-menu.open { display: flex; }

    .caleb-traits {
        grid-template-columns: 1fr 1fr;
    }

    .caleb-gallery-grid .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .caleb-section-inner { padding: 60px 20px; }
}
