/* Pearl Photography & Co. — custom theme styles */

:root {
    --blush: #d0aea9;
    --blush-soft: #e9d8d4;
    --charcoal: #282828;
    --cream: #faf7f5;
    --white: #ffffff;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 1rem;
}

/* ---------- Layout with side nav ---------- */

.side-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 270px;
    background: var(--white);
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
    z-index: 60;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.brand { text-decoration: none; text-align: center; margin-bottom: 3rem; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: .04em;
    color: var(--charcoal);
}
.brand-name em { font-style: normal; color: var(--blush); }

.nav-list { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav-list li { margin: 1.1rem 0; }
.nav-list a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    font-weight: 400;
    color: var(--charcoal);
    transition: color .25s;
}
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--blush); }

.nav-social { margin-top: auto; display: flex; gap: 1.2rem; }
.nav-social a { color: var(--charcoal); transition: color .25s; }
.nav-social a:hover { color: var(--blush); }

.site-main { margin-left: 270px; min-height: 100vh; transition: margin-left .45s cubic-bezier(.2,.7,.2,1); }

/* Desktop collapsible nav */
body.nav-collapsed .side-nav { transform: translateX(-100%); }
body.nav-collapsed .site-main { margin-left: 0; }

/* Menu toggle — mobile only */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1.1rem; left: 1.1rem;
    z-index: 100;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.92);
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--charcoal); transition: transform .3s, opacity .3s; }

.menu-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(40,40,40,.45);
    z-index: 70;
    opacity: 0;
    transition: opacity .35s;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 92vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--charcoal);
}
.hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
	    object-position: center 25%;
    opacity: .82;
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 0 1.5rem; }
.hero-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    letter-spacing: .06em;
    margin-bottom: .6rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-content p {
    text-transform: uppercase;
    letter-spacing: .34em;
    font-size: .8rem;
    margin: 0 0 2rem;
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: .95rem 2.6rem;
    border: 1px solid var(--blush);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .75rem;
    text-decoration: none;
    transition: background .3s, color .3s;
    cursor: pointer;
    font-family: var(--sans);
}
.btn:hover { background: var(--blush); color: var(--white); }
.btn-dark { color: var(--charcoal); }
.btn-dark:hover { color: var(--white); }
.btn-solid { background: var(--blush); color: var(--white); }
.btn-solid:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* ---------- Sections ---------- */

.section { padding: 5rem 8vw; }
.section-narrow { max-width: 780px; margin: 0 auto; text-align: center; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .72rem;
    color: var(--blush);
    margin-bottom: 1rem;
}
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.lede { font-size: 1.08rem; color: #555; }

/* Portfolio tiles (home) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
}
.tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.tile:hover img { transform: scale(1.05); }
.tile span {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.4rem 1rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: .78rem;
}

/* Page banner */
.page-banner {
    position: relative;
    height: 46vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}
.page-banner img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .8;
}
.page-banner h1 {
    position: relative; z-index: 2;
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: .08em;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

/* Gallery sessions */
.gallery-session { padding: 3.5rem 8vw 1rem; }
.gallery-session:first-of-type { padding-top: 4.5rem; }
.session-title {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 2.2rem;
}
.session-title::after {
    content: "";
    display: block;
    width: 56px; height: 2px;
    background: var(--blush);
    margin: 1rem auto 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
}
.gallery-item { overflow: hidden; display: block; }
.gallery-item img {
    width: 100%; height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.6,.2,1), opacity .3s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
    margin-top: 2.5rem;
    text-align: center;
}
.price-card {
    border: 1px solid #ececec;
    padding: 2.4rem 1.6rem;
    background: var(--white);
    transition: box-shadow .3s, transform .3s;
}
.price-card:hover { box-shadow: 0 18px 44px rgba(208,174,169,.22); transform: translateY(-4px); }
.price-card.featured { border-color: var(--blush); }
.price-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.price-amount { font-family: var(--serif); font-size: 2rem; color: var(--blush); margin: .6rem 0 1.2rem; }
.price-card ul { list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .94rem; color: #555; }
.price-card li { margin: .5rem 0; }

/* About */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
.about-wrap figure { margin: 0; }
.about-wrap figcaption {
    font-size: .85rem;
    color: #888;
    font-style: italic;
    margin-top: .8rem;
    text-align: center;
}

/* Book page */
.book-hero {
    background: var(--blush-soft);
    text-align: center;
    padding: 5rem 8vw;
}
.book-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.book-options {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

/* Footer */
.site-footer { margin-top: 4rem; }
.footer-cta {
    background: var(--blush);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 8vw;
}
.footer-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.6rem; }
.footer-cta .btn {
    border-color: var(--white);
    background: var(--white);
    color: var(--blush);
    font-weight: 600;
}
.footer-cta .btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.footer-social { margin-top: 1.8rem; display: flex; gap: 1.4rem; justify-content: center; }
.footer-social a { color: var(--white); transition: opacity .25s; }
.footer-social a:hover { opacity: .75; }
.footer-base {
    background: var(--charcoal);
    color: #bbb;
    text-align: center;
    padding: 1.4rem 1rem;
    font-size: .82rem;
    letter-spacing: .06em;
}
.footer-base a { color: #bbb; text-decoration: none; }
.footer-base a:hover { color: var(--white); }

/* 404 */
.error-404 { text-align: center; padding: 7rem 8vw; }
.error-404 h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(20,20,20,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
    padding: 4vh 4vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 1.2rem; right: 1.6rem;
    background: none; border: none;
    color: var(--white);
    font-size: 2.6rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .side-nav {
        transform: translateX(-100%);
        transition: transform .45s cubic-bezier(.2,.7,.2,1);
        width: min(320px, 84vw);
        box-shadow: 8px 0 40px rgba(0,0,0,.12);
    }
    body.menu-open .side-nav { transform: translateX(0); }
    body.menu-open .menu-backdrop { display: block; opacity: 1; }
    body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .menu-toggle { display: flex; }
    .site-main { margin-left: 0; }

    .about-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 3.5rem 6vw; }
    .gallery-session { padding: 2.5rem 6vw .5rem; }
}

/* Ninja Forms — match Pearl Photography theme */
.nf-form-content {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 1rem;
}
.nf-field-label label {
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: .4rem;
}
.nf-field-element input[type=text],
.nf-field-element input[type=email],
.nf-field-element input[type=tel],
.nf-field-element textarea,
.nf-field-element select {
    width: 100%;
    padding: 1.1rem 1.3rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 1.1rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color .25s;
}
.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
    outline: none;
    border-color: var(--blush);
}
.nf-field-element textarea { min-height: 170px; resize: vertical; }
.nf-field-container { margin-bottom: 1.4rem; }
.nf-field-element input[type=submit],
.nf-field-element input[type=button],
.nf-form-content button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--blush);
    background: var(--blush);
    color: var(--white);
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 12px;
    transition: background .3s, border-color .3s, transform .2s;
}
.nf-field-element input[type=submit]:hover,
.nf-field-element input[type=button]:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    transform: translateY(-1px);
}
.nf-error-msg, .nf-error .nf-error-msg {
    color: #b04a3a;
    font-size: .85rem;
}
.nf-response-msg { text-align: center; font-size: 1.1rem; color: var(--charcoal); }

/* Book Your Session page — full pink background */
body.page-id-148 .site-main {
    background: var(--blush-soft);
}

/* Eyebrow text needs dark contrast on pink */
body.page-id-148 .eyebrow {
    color: var(--charcoal);
}

/* Move select dropdown arrow left */
.nf-field-element select {
    padding-right: .8rem;
}

/* Footer menu */
.footer-menu {
    background: var(--white);
    padding: 1.6rem 8vw;
    text-align: center;
    border-top: 1px solid #eee;
}
.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.8rem;
}
.footer-menu a {
    color: var(--charcoal);
    font-size: .82rem;
    letter-spacing: .06em;
    text-decoration: none;
    transition: color .25s;
}
.footer-menu a:hover { color: var(--blush); }

/* Desktop sidebar collapse */
.nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    opacity: .5;
    transition: opacity .25s, transform .25s;
    z-index: 5;
}
.nav-close:hover { opacity: 1; transform: rotate(90deg); }
.nav-close svg { display: block; }

.nav-reopen {
    position: fixed;
    top: 50%; left: 0;
    transform: translateY(-50%) translateX(-100%);
    z-index: 60;
    width: 36px; height: 72px;
    background: var(--white);
    border: 1px solid #eee;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), color .25s;
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
}
.nav-reopen:hover { color: var(--blush); }
body.nav-collapsed .nav-reopen { transform: translateY(-50%) translateX(0); }

@media (max-width: 900px) {
    .nav-close, .nav-reopen { display: none; }
}

/* Rounded corners on all buttons / CTAs */
.wp-block-button__link,
.wp-element-button,
button:not(.menu-toggle):not(.nav-close):not(.nav-reopen),
input[type="submit"],
input[type="button"] {
    border-radius: 12px;
}

/* Book page social icons — outline style matching the menu */
.book-social {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 2.5rem;
}
.book-social a { color: var(--charcoal); transition: color .25s, transform .25s; }
.book-social a:hover { color: var(--blush); transform: translateY(-2px); }
.book-social svg { display: block; }

/* Noticeable call/text callout on booking page */
.call-text-callout {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5rem auto 0;
    max-width: 640px;
}
.call-text-callout a {
    color: var(--blush);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--blush);
    transition: color .25s, border-color .25s;
}
.call-text-callout a:hover {
    color: var(--charcoal);
    border-color: var(--charcoal);
}

/* Hide Ninja Forms form title on booking page */
.nf-form-title { display: none; }

/* Page content wrapper — keeps content off screen edges */
.page-content-wrap {
    padding: 3rem 8vw;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .page-content-wrap { padding: 2rem 6vw; }
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem auto 1rem;
    max-width: 1080px;
}
.price-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.price-card.featured {
    border: 2px solid var(--blush);
    box-shadow: 0 12px 32px rgba(208,174,169,.25);
    position: relative;
}
.price-card .price-tier {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .75rem;
    color: var(--blush);
    margin-bottom: .8rem;
}
.price-card .price-amount {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}
.price-card ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: .92rem;
    line-height: 2;
    color: #555;
}
.price-card .price-note {
    font-size: .85rem;
    font-style: italic;
    color: #888;
}
.pricing-footnote {
    text-align: center;
    font-size: .88rem;
    color: #888;
    margin-top: 1.5rem;
}
@media (max-width: 700px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* Blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1080px;
    margin: 2.5rem auto 0;
}
.blog-card {
    display: block;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.1);
}
.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card-body { padding: 1.8rem; }
.blog-card-body h2 {
    font-size: 1.4rem;
    margin-bottom: .8rem;
    color: var(--charcoal);
}
.blog-card-body p { color: #666; font-size: .95rem; line-height: 1.7; }
.blog-card-link {
    display: inline-block;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
    color: var(--blush);
    border-bottom: 1px solid var(--blush);
    padding-bottom: 2px;
}
