/*
Theme Name: EOC Custom
Theme URI: https://eoceventsct.com/
Author: Eve Site Design
Description: Bespoke editorial event-services theme for Elements of Celebration LLC.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: eoc
*/

:root {
  --ink: #080807;
  --ink-soft: #12110f;
  --ivory: #f3eee4;
  --paper: #fbf8f1;
  --gold: #c7a15a;
  --gold-bright: #e0bd74;
  --bronze: #75572d;
  --smoke: #b9b1a4;
  --line: rgba(199, 161, 90, .32);
  --serif: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --page: min(1240px, calc(100vw - 48px));
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-main { overflow: clip; }
.shell { width: var(--page); margin-inline: auto; }
.section { padding: clamp(86px, 10vw, 150px) 0; position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--soft { background: var(--ink-soft); }
.section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.3rem, 8.4vw, 8rem); line-height: .91; letter-spacing: -.045em; }
.title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; letter-spacing: -.035em; }
.lead { max-width: 720px; margin: 26px 0 0; color: #514c44; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.5; }
.body-copy { max-width: 660px; color: #615b52; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.gold { color: var(--gold); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 15px; padding: 0 24px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s, transform .25s; }
.button:hover { background: var(--gold-bright); transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--ivory); }
.button--ghost:hover { background: var(--gold); color: var(--ink); }
.text-link { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 5px; color: var(--bronze); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.site-header { position: absolute; z-index: 50; top: 0; left: 0; width: 100%; color: #fff; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.18); }
.header-inner { width: min(1440px, calc(100vw - 44px)); min-height: 104px; margin: auto; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 30px; }
.custom-logo-link { width: 164px; height: 78px; display: grid; place-items: center; overflow: hidden; padding: 0; }
.custom-logo, .footer-brand img { filter: invert(1) grayscale(1) brightness(3) sepia(1) saturate(2); mix-blend-mode: screen; }
.custom-logo { max-height: 68px; width: auto; }
.brand-word { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 35px); list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; padding: 12px 0; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--gold); transition: right .25s; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { right: 0; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 1px; background: #fff; margin: 5px auto; transition: transform .25s, opacity .25s; }
.header-cta { white-space: nowrap; }

.hero { min-height: min(920px, 100svh); display: grid; align-items: end; position: relative; background: #090806; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center 42% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,4,3,.92) 0%, rgba(4,4,3,.62) 43%, rgba(4,4,3,.12) 76%), linear-gradient(0deg, rgba(5,5,4,.75), transparent 55%); }
.hero-content { width: var(--page); margin: 0 auto; padding: 190px 0 clamp(80px, 10vw, 130px); }
.hero .eyebrow { color: var(--gold-bright); margin-bottom: 25px; }
.hero h1 { max-width: 900px; color: #fff; }
.hero h1 em { display: block; color: var(--gold-bright); font-weight: 400; }
.hero-summary { max-width: 580px; margin: 30px 0 36px; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stamp { position: absolute; right: max(24px, calc((100vw - 1240px)/2)); bottom: 48px; width: 138px; height: 138px; border: 1px solid rgba(224,189,116,.65); border-radius: 50%; display: grid; place-items: center; color: var(--gold-bright); text-align: center; font-family: var(--serif); font-size: .9rem; line-height: 1.25; transform: rotate(7deg); }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c0b09; color: var(--gold-bright); }
.ticker-track { width: max-content; display: flex; gap: 36px; padding: 18px 0; animation: ticker 28s linear infinite; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker-track span::after { content: "✦"; margin-left: 36px; font-size: .7em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 10vw, 150px); align-items: start; }
.intro-number { font-family: var(--serif); color: var(--gold); font-size: clamp(6rem, 14vw, 12rem); line-height: .8; letter-spacing: -.06em; }
.intro-note { margin-top: 24px; color: #6e675c; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.intro-copy p { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.42; }

.services-heading { display: grid; grid-template-columns: 1fr .6fr; align-items: end; gap: 40px; margin-bottom: 60px; }
.services-heading p { margin: 0; color: var(--smoke); }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.service-card { grid-column: span 4; min-height: 520px; position: relative; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; background: #17140f; }
.service-card:nth-child(1), .service-card:nth-child(5) { grid-column: span 8; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.75,.2,1); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,4,3,.96), rgba(5,4,3,.04) 70%); }
.service-card:hover img { transform: scale(1.045); }
.service-card-content { width: 100%; padding: 30px; }
.service-card .eyebrow { color: var(--gold-bright); }
.service-card h3 { margin: 8px 0 9px; font: 400 clamp(1.65rem, 2.8vw, 2.6rem)/1.05 var(--serif); }
.service-card p { max-width: 560px; margin: 0; color: rgba(255,255,255,.72); font-size: .92rem; }

.feature-split { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 760px; }
.feature-image { min-height: 580px; background: var(--image) center / cover no-repeat; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 120px); background: var(--gold); color: var(--ink); }
.feature-copy .section-kicker { color: #533d1b; }
.feature-copy p { max-width: 560px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 25px; margin: 30px 0 36px; padding: 0; list-style: none; }
.feature-list li { border-top: 1px solid rgba(8,8,7,.3); padding-top: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.collection-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.collection { min-height: 290px; padding: 34px 28px; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; transition: background .25s; }
.collection:hover { background: #18150f; }
.collection-index { color: var(--gold); font-family: var(--serif); font-size: 2.1rem; }
.collection h3 { margin: 0 0 8px; font: 400 1.85rem/1 var(--serif); }
.collection p { margin: 0; color: var(--smoke); font-size: .88rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 90px; gap: 14px; margin-top: 55px; }
.gallery-item { overflow: hidden; position: relative; background: #d8d0c3; }
.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 6; }
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 4; }
.gallery-item:nth-child(3) { grid-column: span 5; grid-row: span 5; }
.gallery-item:nth-child(4) { grid-column: span 4; grid-row: span 5; }
.gallery-item:nth-child(5) { grid-column: span 3; grid-row: span 5; }
.gallery-item:nth-child(6) { grid-column: span 5; grid-row: span 5; }
.gallery-item:nth-child(7) { grid-column: span 7; grid-row: span 5; }
.gallery-item:nth-child(8) { grid-column: span 5; grid-row: span 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery-item:hover img { transform: scale(1.035); }

.page-hero { min-height: 560px; padding: 190px 0 90px; display: flex; align-items: end; position: relative; isolation: isolate; background: #0b0a08; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,4,.91), rgba(5,5,4,.32)), linear-gradient(0deg, rgba(5,5,4,.72), transparent); }
.page-hero p { max-width: 610px; margin: 26px 0 0; color: rgba(255,255,255,.75); }
.page-content { max-width: 820px; }
.page-content h2, .page-content h3 { font-family: var(--serif); font-weight: 400; }

.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,9vw,130px); align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold); z-index: 0; }
.about-image-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy blockquote { margin: 0 0 35px; font: 400 clamp(2rem,4vw,3.8rem)/1.06 var(--serif); }
.about-copy p { color: #655f55; }

.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 52px; background: #d5ccbc; border: 1px solid #d5ccbc; }
.detail-card { background: var(--paper); padding: clamp(28px,4vw,55px); }
.detail-card-media { height: clamp(240px, 26vw, 360px); margin: calc(clamp(28px,4vw,55px) * -1) calc(clamp(28px,4vw,55px) * -1) 30px; overflow: hidden; background: #18140f; }
.detail-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.detail-card-media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.detail-card-media--duo img { min-width: 0; }
.detail-card:hover .detail-card-media img { transform: scale(1.025); }
.detail-card .number { color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.detail-card h3 { margin: 14px 0 12px; font: 400 2rem/1 var(--serif); }
.detail-card p { margin: 0; color: #675f54; }

.form-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px,8vw,110px); align-items: start; }
.contact-panel { position: sticky; top: 30px; }
.contact-panel h2 { margin-bottom: 25px; }
.contact-lines { list-style: none; margin: 35px 0 0; padding: 0; }
.contact-lines li { border-top: 1px solid #d4cab9; padding: 18px 0; }
.contact-lines small { display: block; color: #847b6d; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-lines a { font-family: var(--serif); font-size: 1.35rem; }
.eoc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1/-1; }
.field label, .group-label { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid #b9ad9b; border-radius: 0; background: transparent; color: var(--ink); min-height: 52px; padding: 8px 0; outline: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.check { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.field .check input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--gold); }
.field .check input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.check-grid { column-gap: 28px; }
.form-status { grid-column: 1/-1; padding: 14px 18px; border: 1px solid #9a7b42; background: #fff8e9; }
.hp { position: absolute !important; left: -9999px !important; }

.contract-note { padding: 30px; border-left: 3px solid var(--gold); background: #eee6d8; margin: 36px 0; }
.cta-band { background: var(--gold); color: var(--ink); }
.cta-inner { min-height: 390px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 45px; }
.cta-inner h2 { max-width: 800px; }
.cta-band .button { background: var(--ink); border-color: var(--ink); color: #fff; }

.site-footer { background: #050504; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.2fr .75fr .75fr; gap: 70px; padding: 80px 0 55px; }
.footer-brand img { width: 230px; max-height: 160px; object-fit: contain; padding: 0; }
.footer-brand p { max-width: 400px; color: #a9a195; }
.footer-title { margin: 0 0 18px; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-contact li { margin-bottom: 10px; }
.footer-menu a, .footer-contact a { color: #c8c0b4; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--gold-bright); }
.footer-contact a[target="_blank"] { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); color: #7e786f; font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open { display: block; position: fixed; inset: 0; z-index: -1; padding: 145px 28px 40px; background: rgba(5,5,4,.98); }
  .main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main-nav.is-open a { font-family: var(--serif); font-size: clamp(2rem,8vw,4rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
  .intro-grid, .about-story, .form-layout { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(5) { grid-column: span 6; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-image { min-height: 620px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  :root { --page: min(100% - 34px, 1240px); }
  .section { padding: 76px 0; }
  .header-inner { width: calc(100vw - 30px); min-height: 86px; }
  .custom-logo-link { width: 135px; height: 66px; }
  .hero { min-height: 790px; }
  .hero-content { padding-top: 155px; padding-bottom: 100px; }
  .hero::after { background: linear-gradient(90deg,rgba(4,4,3,.88),rgba(4,4,3,.28)),linear-gradient(0deg,rgba(5,5,4,.9),transparent 65%); }
  .hero-stamp { display: none; }
  .services-heading { grid-template-columns: 1fr; margin-bottom: 38px; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(5) { grid-column: 1/-1; min-height: 430px; }
  .feature-image { min-height: 440px; }
  .feature-copy { padding: 65px 24px; }
  .feature-list, .collection-grid, .detail-grid, .eoc-form, .check-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: 1/-1; }
  .cta-inner { min-height: 430px; grid-template-columns: 1fr; align-content: center; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
