/*
Theme Name:  Cece Bowman
Theme URI:   https://cecebowman.com
Author:      Custom
Description: Official theme for Cece Bowman
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cece-bowman
Tags:        custom-menu, custom-logo, featured-images, threaded-comments, full-width-template
*/

/* =============================================================
   CUSTOM FONTS
   ============================================================= */

@font-face {
    font-family: 'Fautive';
    src: url('fonts/fautive-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fautive';
    src: url('fonts/fautive-lightitalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rational Text';
    src: url('fonts/Rational-Text-Book.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* =============================================================
   CSS CUSTOM PROPERTIES
   ============================================================= */

:root {
    --font-display: 'Fautive', serif;
    --font-body:    'Rational Text', serif;
    --font-accent:  'Fautive', serif;

    /* Palette */
    --color-bg:         #FAF8F5;
    --color-surface:    #FFFFFF;
    --color-text:       #1A1814;
    --color-text-muted: #7A7368;
    --color-accent:     #C8A882;
    --color-accent-dk:  #9A7B5A;
    --color-border:     #E8E3DC;
    --color-overlay:    rgba(26, 24, 20, 0.55);

    /* Homepage */
	--color-hp-bg: #4f6155;
    --color-hp-text: white;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  7rem;
    --space-2xl: 11rem;

    /* Layout */
    --max-width:     1280px;
    --content-width: 780px;
    --header-height: 80px;

    /* Transitions */
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 180ms;
    --dur-med:  380ms;
    --dur-slow: 700ms;

    /* Type scale */
    --font32:    32px;
    --font21:    21px;
    --font12:    12px;
    --line12:    1.9em;
    --letter12:  0.02em;
}

/* =============================================================
   RESET & BASE
   ============================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease),
                opacity var(--dur-fast) var(--ease);
}

a:hover { color: var(--color-accent-dk); }

ul, ol { list-style: none; }

button, input, textarea, select {
    font: inherit;
    border: none;
    background: none;
    outline: none;
}

button { cursor: pointer; }

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.container--narrow {
    max-width: var(--content-width);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    line-height: 1.4;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-md);
    margin-block: var(--space-md);
    color: var(--color-text-muted);
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.9em 2.2em;
    transition: background var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--color-text); color: var(--color-bg); }
.btn--primary:hover { background: var(--color-accent-dk); color: var(--color-bg); }

.btn--outline { border: 1px solid currentColor; }
.btn--outline:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }

.btn--ghost { padding-inline: 0; border-bottom: 1px solid currentColor; }

/* =============================================================
   SITE HEADER
   ============================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
    background: var(--color-surface);
    box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.site-logo { flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 42px; width: auto; }

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.primary-nav a {
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-dk);
    transition: width var(--dur-med) var(--ease);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { width: 100%; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform var(--dur-med) var(--ease),
                opacity var(--dur-fast) var(--ease);
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   MOBILE NAV
   ============================================================= */

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .primary-nav {
        position: fixed;
        inset: 0;
        background: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-med) var(--ease);
        z-index: 99;
    }

    .primary-nav.is-open { opacity: 1; pointer-events: all; }
    .primary-nav a { font-size: 1rem; }
}

/* =============================================================
   SITE FOOTER
   ============================================================= */

.site-footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding-block: var(--space-lg);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
}

.site-footer__tagline {
    font-size: 0.875rem;
    color: rgba(250,248,245,0.5);
}

.site-footer__nav ul { display: flex; flex-direction: column; gap: var(--space-xs); }

.site-footer__nav a {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250,248,245,0.7);
    transition: color var(--dur-fast) var(--ease);
}

.site-footer__nav a:hover { color: var(--color-accent); }

.site-footer__social { display: flex; gap: var(--space-sm); justify-content: flex-end; }

.social-link {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(250,248,245,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}

.social-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer__bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(250,248,245,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(250,248,245,0.4);
}

@media (max-width: 1024px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
    .site-footer__social { grid-column: span 2; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__social { grid-column: span 1; }
}

/* =============================================================
   SINGULAR / PAGE CONTENT
   ============================================================= */

.page-hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.entry-content { max-width: var(--content-width); margin-inline: auto; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.75em; margin-bottom: 0.5em; }

.entry-content ul,
.entry-content ol { list-style: revert; padding-left: 1.5em; margin-bottom: 1.25em; }

/* =============================================================
   HOMEPAGE — FULL-SCREEN LAYOUT
   ============================================================= */

body.page-template-front-page,
body.home {
    background: var(--color-hp-bg);
    overflow: hidden;
}

.hp-scene {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-hp-bg);
}

/* ── Logo — top center ───────────────────────────────────────── */
.hp-logo {
    position: fixed;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    white-space: nowrap;
	width:100%;
}

.hp-logo img {
    display: block;
    margin-inline: auto;
    width: 261px;
    height: auto;
}

.hp-logo__text {
    color: var(--color-hp-text);
    text-align: center;
    line-height: 1.1;
}

.hp-logo__text .name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: block;
}

.hp-logo__text .sub {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* ── Center text — always behind carousel ────────────────────── */
.hp-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 80px;
    color: var(--color-hp-text);
    pointer-events: none;
}
.hp-text.done-loading {
    opacity: 0.2;
    transition: 1s ease opacity;
}
.hp-text__big {
    font-family: var(--font-display);
    font-size: var(--font32);
    line-height: 1.25;
    max-width: 720px;
	max-width: 550px;
    padding-bottom: 1em;
    margin: 0;
}

.hp-text__small {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--font21);
}

/* ── Carousel layer — fades in after 2s ──────────────────────── */
.hp-carousel-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.hp-carousel-layer.is-visible {
    opacity: 1;
    pointer-events: all;
}

.hp-carousel-wrap {
    position: relative;
    width: 100%;
	max-width: calc(100% - 424px);
}

.hp-carousel .owl-item img {
    width: auto !important;
    height: calc(100vh - 24px);
    object-fit: cover;
    display: block;
    margin-inline: auto;
}

.hp-carousel .owl-nav,
.hp-carousel .owl-dots { display: none; }

/* ── Carousel slide transition — full transparent gap ────────── */
@keyframes hpSlideOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes hpSlideIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hp-fade-out {
    animation: hpSlideOut 1200ms ease forwards;
}

.hp-fade-in {
    animation: hpSlideIn 1200ms ease forwards;
    animation-delay: 1200ms;
}

/* ── Logomark — bottom center, above carousel ────────────────── */
.hp-logomark {
    position: fixed;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hp-logomark img {
    width: 50px;
    height: auto;
    display: block;
}

.hp-logomark__fallback {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(245,242,236,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-hp-text);
}

/* ── Corner info — vertically centered ───────────────────────── */
.hp-corner {
    position: fixed;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 20;
    color: var(--color-hp-text);
    font-size: var(--font12);
    letter-spacing: var(--letter12);
    text-transform: uppercase;
    line-height: var(--line12);
    display: flex;
    gap: 0 2em;
    flex-wrap: wrap;
    max-width: 210px;
    font-family: var(--font-display);
}

.hp-corner a { color: inherit; text-decoration: none; display: block; }
.hp-corner a:hover { opacity: 0.65; }

.hp-corner--bl { left: 32px; }
.hp-corner--br { right: 32px; text-align: right; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 980px) {
	.mobile-only{
		display:none;
	}
}
@media (max-width: 980px) {
    .desk-only {
    display: none;
}
	.hp-carousel-wrap {
		width: min(82vw, 400px);
		width:calc(100% - 24px);
		max-width:600px;
	}
    .hp-text__big     { font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .hp-text__small   { font-size: 0.9rem; }
	.hp-corner {
		font-size: 0.55rem;
		left: 12px;
		bottom: 15px;
	}
	.hp-corner.hp-corner--br {
		display: block;
		right: 12px;
		left: auto;
		bottom: 23px;
	}
.hp-text__big {
    font-size: 26px;
}
.hp-text {
    padding: 34px;
}
.hp-text__small {
    font-size: 18px;
    max-width: 200px;
    line-height: 1.3em;
}
.hp-corner {
    font-size: 9px;
    right: 50%;
    transform: translate(10px, 10px);
    text-align: right;
    display: flex;
    justify-content: flex-end;
    transform: translateX(-5em);
    bottom: 6em;
    left: auto;
    max-width: 140px;
    gap: 0 1em;
}
.hp-corner.hp-corner--br {
    left: 50%;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    right: auto;
    transform: translateX(5em);
    bottom: 6em;
}
.hp-carousel__slide {
    /* aspect-ratio: 355 / 445; */
    overflow: hidden;
    height: 60vh;
    margin-inline: auto;
}

.hp-carousel .owl-item img {
    height: 100%;
    width: 100%!important;
}
}
/* =============================================================
   WORDPRESS CORE
   ============================================================= */

.alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 0.5em; }

/* =============================================================
   ACCESSIBILITY & FOCUS
   ============================================================= */

:focus-visible {
    outline: 2px solid var(--color-accent-dk);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-surface);
    padding: 0.5em 1em;
    z-index: 999;
    transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus { top: var(--space-sm); }