/*
Theme Name: J2 Real Estate Media
Author: J2 Real Estate Media
Description: Custom theme for J2 Real Estate Media. Creates the Home, About Us, Services, Gallery and Book Now pages on activation, with a portfolio gallery and a booking request form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.2
License: GPLv2 or later
Text Domain: j2
*/

/* Layout: black stage for the work, ivory pages for reading; gold only for rules, labels and actions. */
:root {
  color-scheme: dark;
  --black: #000;
  --char: #121212;
  --char-2: #1b1a18;
  --line: #2e2a22;
  --gold: #d6a640;
  --gold-hi: #f3d27a;
  --gold-lo: #a87a1c;
  --gold-grad: linear-gradient(120deg, #b8862a, #f3d27a 48%, #c9952c);
  --white: #fff;
  --mute: #b3ada2;
  --ivory: #f7f4ec;
  --ivory-2: #ece7da;
  --ink: #17150f;
  --ink-mute: #5c5648;
  --display: "Marcellus", "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.lede { font-size: 1.1rem; color: var(--mute); max-width: 58ch; }
.center { text-align: center; align-items: center; }
.center .lede { margin-inline: auto; }

/* Eyebrow: the ruled "MEDIA" line from the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 38px; height: 1px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--gold-hi);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn-gold { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-dark { border-color: var(--black); color: var(--black); }
.btn-dark:hover { background: var(--black); color: var(--gold-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; align-self: flex-start; }
.text-link:hover { color: var(--gold-hi); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.admin-bar .site-header { top: 32px; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--display); font-weight: 400; font-size: 1.02rem; letter-spacing: .2em; }
.brand-name i { font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .42em; color: var(--gold); margin-top: 4px; }
.site-nav .menu { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--gold-hi); border-bottom-color: var(--gold); }
.header-cta { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--white); font: 600 .72rem var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-ivory .lede, .section-ivory .muted { color: var(--ink-mute); }
.section-ivory .eyebrow { color: var(--gold-lo); }
.section-ivory .eyebrow::before, .section-ivory .eyebrow::after { background: var(--gold-lo); }
.section-char { background: var(--char); }
.muted { color: var(--mute); }
.head { margin-bottom: 44px; }

/* Home hero */
.hero { padding-block: clamp(48px, 7vw, 96px); background: radial-gradient(900px 480px at 82% 30%, rgba(214, 166, 64, .13), transparent 70%), var(--black); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Viewfinder frame: placeholder for hero photo or reel */
.finder { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(160deg, #23201a, #0c0c0c 70%); display: grid; place-items: center; overflow: hidden; }
.finder img.finder-logo { width: 62%; mix-blend-mode: lighten; }
.finder::before, .finder::after, .finder-c::before, .finder-c::after { content: ""; position: absolute; width: 30px; height: 30px; border: 0 solid var(--gold); }
.finder::before { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.finder::after { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.finder-c::before { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.finder-c::after { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.finder-hud { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 18px; font-size: .68rem; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; }
.finder-note { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* Fact strip */
.facts { border-block: 1px solid var(--line); background: var(--char); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--gold-hi); }
.facts span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ivory-2); border: 1px solid var(--ivory-2); }
.card { background: var(--ivory); padding: 34px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: background .2s; }
.card:hover { background: var(--white); }
.card svg, .icon { width: 38px; height: 38px; fill: none; stroke: var(--gold-lo); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: .94rem; color: var(--ink-mute); flex: 1; }
.price { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card .text-link { color: var(--gold-lo); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.steps p { color: var(--mute); font-size: .95rem; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--mute); font: 600 .72rem var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 11px 18px; cursor: pointer; }
.filters button:hover { color: var(--white); border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { margin: 0; position: relative; min-width: 0; }
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; overflow: hidden; }
.tile-btn img, .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.tile-btn:hover img, .tile-btn:hover .ph { transform: scale(1.04); }
.tile figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.tile figcaption b { color: var(--gold); font-weight: 600; }
.section-ivory .tile figcaption { color: var(--ink-mute); }
.section-ivory .tile figcaption b { color: var(--gold-lo); }

/* Image placeholders */
.ph { display: grid; place-items: center; background: linear-gradient(150deg, #2a261d, #101010 75%); color: var(--mute); position: relative; }
.ph[data-kind="aerial"] { background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(214, 166, 64, .12) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(214, 166, 64, .12) 38px 39px), linear-gradient(150deg, #1d2420, #0d0f0e); }
.ph[data-kind="tour"] { background: radial-gradient(circle at 50% 50%, rgba(214, 166, 64, .2), transparent 55%), #121212; }
.ph[data-kind="plan"] { background: #17150f; }
.ph-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; text-align: center; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.ph-in svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.ph-in small { font-size: .64rem; color: var(--gold); letter-spacing: .14em; }
.ph-tall { aspect-ratio: 4 / 5; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--white); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img, .lightbox .ph { width: 100%; max-height: 82vh; object-fit: contain; aspect-ratio: 3 / 2; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--black); color: var(--gold-hi); border: 1px solid var(--gold); font: 600 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; cursor: pointer; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { margin: 0; padding: 30px 26px; border: 1px solid var(--ivory-2); background: var(--white); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.quote p { font-family: var(--display); font-size: 1.12rem; line-height: 1.5; }
.quote footer { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

/* CTA band */
.band { background: var(--gold-grad); color: var(--black); padding-block: 58px; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band p { font-weight: 500; }

/* Inner page hero */
.page-hero { padding-block: clamp(56px, 8vw, 104px); background: radial-gradient(700px 320px at 50% 0, rgba(214, 166, 64, .14), transparent 70%), var(--black); border-bottom: 1px solid var(--line); }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.split > * { min-width: 0; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.flip > :first-child { order: 2; }
.checks { display: flex; flex-direction: column; gap: 9px; }
.checks li { padding-left: 26px; position: relative; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--gold-lo); border-bottom: 2px solid var(--gold-lo); transform: rotate(-45deg); }
.section-char .checks li::before, .plan .checks li::before { border-color: var(--gold); }

/* Values, team */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.trio > * { min-width: 0; border-top: 1px solid var(--gold); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.trio p { color: var(--mute); font-size: .95rem; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.member .role { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.member p { font-size: .93rem; color: var(--ink-mute); }

/* Packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { border: 1px solid var(--line); background: var(--char); padding: 34px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan.featured { border-color: var(--gold); background: var(--char-2); }
.plan .tag { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.plan .amount { font-family: var(--display); font-size: 2.3rem; color: var(--gold-hi); line-height: 1; }
.plan .amount small { font-family: var(--body); font-size: .72rem; letter-spacing: .1em; color: var(--mute); margin-left: 6px; }
.plan .checks { flex: 1; }
.fine { font-size: .82rem; color: var(--mute); margin-top: 26px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--ivory-2); }
.faq details { border-bottom: 1px solid var(--ivory-2); }
.faq summary { cursor: pointer; padding: 20px 34px 20px 0; font-family: var(--display); font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--gold-lo); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--ink-mute); max-width: 65ch; }

/* Booking */
.book { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.book > * { min-width: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); border: 1px solid var(--ivory-2); padding: clamp(22px, 3vw, 38px); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .form legend { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfc8b6; border-radius: 0; background: var(--ivory); color: var(--ink);
  font: 400 1rem var(--body); color-scheme: light;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold-lo); outline-offset: 0; border-color: var(--gold-lo); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #cfc8b6; background: var(--ivory); cursor: pointer; font-size: .93rem; }
.opt input { color-scheme: light; accent-color: var(--gold-lo); width: 17px; height: 17px; }
.hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--gold-lo); background: #fbf3dc; color: var(--ink); font-size: .95rem; }
.aside { display: flex; flex-direction: column; gap: 26px; }
.aside-box { border-top: 2px solid var(--gold-lo); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.aside-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.aside-box dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 4px; }
.aside-box dd { margin: 0; overflow-wrap: anywhere; }
.aside-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot > * { min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot img { width: 210px; }
.foot h3 { font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.foot a { text-decoration: none; color: var(--mute); }
.foot a:hover { color: var(--gold-hi); }
.foot p, .foot li { color: var(--mute); overflow-wrap: anywhere; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Default WordPress pages and posts */
.plain { max-width: 760px; }
.plain h1 { margin-bottom: 24px; }
.plain p, .plain ul, .plain ol { margin-bottom: 1.1em; }
.plain a { color: var(--gold-hi); }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-nav .menu { gap: 20px; }
  .brand-name { display: none; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav .menu { flex-direction: column; gap: 0; padding: 8px 22px 18px; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .bar { gap: 12px; min-height: 66px; }
  .brand img { height: 40px; }
  .header-cta { padding: 10px 14px; letter-spacing: .1em; }
  .hero-grid, .split, .book, .foot { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .quotes, .trio, .team, .plans { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards, .form, .opts { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Photos dropped in where a placeholder was */
.split img, .member img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.member img, .split img.tall { aspect-ratio: 4 / 5; }
.finder img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
