/*
Theme Name: Jameson DeSantis
Description: Custom theme for jamesondesantis.com, rebuilt from the Wix site. Every page is made of normal, editable blocks.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: jameson
*/

:root {
  --jd-red: #e8322e;
  --jd-title-red: #ff0000;
  --jd-navy: #0b2b94;
  --jd-line: #424242;
  --jd-pink: #e79a9a;
  --jd-title-shadow: #c8c8c8 1px 1px 0, #b4b4b4 0 2px 0, #a0a0a0 0 3px 0,
    rgba(140, 140, 140, .5) 0 4px 0, rgba(0, 0, 0, .5) 0 5px 10px;
}

body { min-height: 100vh; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-top: auto; }

/* ---------- Page background patterns (chosen with the page's Template) ---------- */
.jd-page-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #fff center / cover no-repeat;
}
.jd-page-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .8); }
.jd-page-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
body.page-template-page-tv .jd-page-bg     { background-image: url(assets/img/vfx-bg.jpg); }
body.page-template-page-film .jd-page-bg   { background-image: url(assets/img/director-bg.jpg); }
body.page-template-page-bingo .jd-page-bg  { background-image: url(assets/img/host-bg.jpg); }
body.page-template-page-arcade .jd-page-bg { background-image: url(assets/img/writer-bg.jpg); }
body.home .jd-page-bg { background-image: url(assets/img/home-bg-poster.jpg); }
body.home .jd-page-bg::after { display: none; }

/* ---------- Neon title style (Heading block → Styles → "Neon title") ---------- */
.is-style-neon {
  font-family: Monoton, fantasy;
  font-weight: 400;
  color: var(--jd-title-red);
  text-shadow: var(--jd-title-shadow);
  line-height: 1.15;
}
h1.is-style-neon, h2.is-style-neon:not(.has-custom-font-size) { font-size: clamp(44px, 9vw, 96px); }
h2.is-style-neon.jd-section, h3.is-style-neon:not(.has-custom-font-size) { font-size: clamp(32px, 6vw, 56px); }
.is-style-neon a { text-decoration: none; color: inherit; }

/* ---------- Header: HOME link ---------- */
.jd-home-link { margin: 18px 0 0 24px; line-height: 1; }
.jd-home-link a {
  font-family: Monoton, fantasy; font-size: 40px;
  color: var(--jd-title-red); text-decoration: none; text-shadow: var(--jd-title-shadow);
}

.jd-main { padding-bottom: 48px; }

/* ---------- Footer ---------- */
.jd-footer { background: #000; color: #fff; font-size: 14px; padding: 24px 16px; margin-top: 0; }
.jd-footer p { margin-top: 4px !important; margin-bottom: 4px !important; }
.jd-footer a { color: #fff; text-decoration: none; }
.jd-footer-home .jd-footer, .home .jd-footer { background: transparent; color: #000; }
.home .jd-footer a { color: #000; }

/* ---------- Handy text styles ---------- */
.jd-sans, .jd-sans p, .jd-intro, .jd-intro p { font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 15px; }
.jd-tight p, p.jd-tight { margin-top: 0 !important; margin-bottom: 4px !important; }

/* ---------- Visual FX ---------- */
.jd-banner img { width: 100%; height: clamp(160px, 26vw, 300px) !important; object-fit: cover; }
.jd-project-title { font-size: 16px; text-decoration: underline; text-align: center; margin-bottom: 14px !important; }
.jd-projects { gap: 56px !important; margin-top: 40px !important; }
.jd-projects p { font-size: 15px; line-height: 1.5; margin: 0 0 4px !important; }
.wp-block-embed iframe { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* ---------- Director ---------- */
.jd-festivals { max-width: 640px; margin-left: auto !important; margin-right: auto !important; font-size: 14px; }
.jd-festivals h3 { font-size: 16px; }
.jd-festivals p { line-height: 1.45; margin: 0 0 22px !important; }
.jd-festivals a { color: var(--jd-red); }
.jd-shadow img { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }

/* ---------- Writer: "File" button style (Button block → Styles → "File") ---------- */
.wp-block-button.is-style-file .wp-block-button__link { display: inline-flex; align-items: center; gap: 14px; }
.wp-block-button.is-style-file .wp-block-button__link::before {
  content: ""; width: 14px; height: 17px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 1h8l4 4v12H2z'/%3E%3Cpath d='M10 1v4h4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 1h8l4 4v12H2z'/%3E%3Cpath d='M10 1v4h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jd-sample { font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 13px; text-align: center; margin-top: 26px !important; }
.jd-sample p { margin: 0 !important; }
.jd-sample .wp-block-buttons { margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.jd-contact {
  background: #fff; border: 4px solid var(--jd-pink);
  padding: 22px 24px 28px; margin: 48px auto !important; max-width: 900px;
  font-family: Jost, Futura, sans-serif; position: relative;
}
.jd-contact h2 { text-align: center; font-family: inherit; font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.jd-contact .grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 18px 24px; }
.jd-contact .grid .email { grid-column: 1 / 3; }
.jd-contact .grid .msg { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; }
.jd-contact label { display: block; font-size: 12px; }
.jd-contact input, .jd-contact textarea {
  width: 100%; border: 0; border-bottom: 1px solid #000; border-radius: 0;
  font: inherit; font-size: 15px; padding: 6px 0; background: transparent;
}
.jd-contact textarea { resize: vertical; min-height: 34px; height: 34px; }
.jd-contact input:focus, .jd-contact textarea:focus { outline: none; border-bottom-width: 2px; }
.jd-contact .hp { position: absolute; left: -9999px; }
.jd-contact button {
  display: block; margin: 26px auto 0; background: #000; color: #fff;
  border: 0; border-radius: 999px; font: inherit; font-size: 14px; padding: 8px 46px; cursor: pointer;
}
.jd-contact .status { text-align: center; margin: 14px 0 0; font-size: 15px; }
.jd-contact .status.ok { color: #1c7c2e; }
.jd-contact .status.err { color: #b3261e; }

/* ---------- Home ---------- */
.jd-front { padding: 0 !important; }
.jd-stage { position: relative; width: 1000px; height: 900px; margin: 0 auto !important; }
.jd-stage > * { margin: 0 !important; }
.jd-stage .jd-photo { position: absolute; left: 293px; top: 80px; width: 415px; height: 591px; }
.jd-stage .jd-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% center;
  border: 4px solid var(--jd-navy); box-sizing: border-box; background: #fff;
}
.jd-stage .jd-name {
  position: absolute; left: 0; right: 0; top: 420px;
  font-size: 80px; line-height: 1.4; letter-spacing: -1.6px; word-spacing: .3em; text-align: center;
}
.jd-stage .jd-motto {
  position: absolute; left: 0; right: 0; top: 780px;
  font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 30px; line-height: 1.3; text-align: center;
}
.jd-stage .jd-tag { position: absolute; width: 199px; }
.jd-stage .jd-tag .wp-block-button__link {
  width: 100%; height: 40px; padding: 0; font-size: 19px;
  display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s;
}
.jd-stage .jd-tag .wp-block-button__link:hover { transform: translateY(-2px); }
.jd-stage .jd-dir   { left: 47px;  top: 190px; }
.jd-stage .jd-vfx   { left: 754px; top: 190px; }
.jd-stage .jd-host  { left: 47px;  top: 720px; }
.jd-stage .jd-write { left: 754px; top: 720px; }
/* Corner brackets drawn next to each button */
.jd-stage .jd-tag::after { content: ""; position: absolute; width: 110px; height: 95px; border: 0 solid var(--jd-line); pointer-events: none; }
.jd-stage .jd-dir::after   { left: 85px; top: 70px;   border-left-width: 3px;  border-bottom-width: 3px; }
.jd-stage .jd-vfx::after   { left: 6px;  top: 70px;   border-right-width: 3px; border-bottom-width: 3px; }
.jd-stage .jd-host::after  { left: 85px; top: -115px; border-left-width: 3px;  border-top-width: 3px; }
.jd-stage .jd-write::after { left: 6px;  top: -115px; border-right-width: 3px; border-top-width: 3px; }

/* ---------- Phones / small tablets ---------- */
@media (max-width: 781px) {
  .jd-home-link { margin-left: 16px; }
  .jd-home-link a { font-size: 30px; }
  .jd-contact { padding: 18px 16px 22px; }
  .jd-contact .grid { grid-template-columns: 1fr 1fr; }
  .jd-contact .grid .email, .jd-contact .grid .msg { grid-column: 1 / -1; grid-row: auto; }
  .jd-contact textarea { height: 80px; }
  .jd-projects { gap: 40px !important; }
}
@media (max-width: 760px) {
  .jd-stage { width: auto; height: auto; padding: 24px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
  .jd-stage .jd-photo { position: relative; left: auto; top: auto; width: min(100%, 320px); height: auto; aspect-ratio: 415 / 591; margin: 0 auto !important; }
  .jd-stage .jd-name:not(.has-custom-font-size) { font-size: clamp(34px, 12vw, 64px); }
  .jd-stage .jd-name { position: relative; top: auto; margin: -1.5em 0 .3em !important; line-height: 1.15; }
  .jd-stage .wp-block-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .jd-stage .jd-tag { position: relative; left: auto; top: auto; width: auto; }
  .jd-stage .jd-tag::after { display: none; }
  .jd-stage .jd-tag .wp-block-button__link { font-size: 16px; }
  .jd-stage .jd-motto { position: relative; top: auto; font-size: 22px; margin-top: 10px !important; }
}

.jd-samples-title { font-family: "Libre Caslon Text", Georgia, serif; font-size: 20px; font-weight: 700; margin-top: 40px !important; }
.jd-sans, .jd-intro { margin-top: 24px !important; }

/* Editor only: keep the home photo frame the right shape */
.editor-styles-wrapper .jd-stage .jd-photo .components-resizable-box__container,
.editor-styles-wrapper .jd-stage .jd-photo > div { width: 100% !important; height: 100% !important; }
