/*
Theme Name: Oz Journey
Theme URI: https://ozjourney.com.au/
Author: Oz Journey Caravans & Campers
Description: Premium dark charcoal and gold block theme for Oz Journey Caravans & Campers. Every page, menu, phone number and photo can be edited in the WordPress editor.
Version: 1.1.3
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: oz-journey
*/

/* ---------- Basics ---------- */
body { margin: 0; -webkit-font-smoothing: antialiased; }
.oz-main { margin-block-start: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
.oz-eyebrow { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--gold); margin: 0; }
.oz-lede { font-size: 1.15rem; color: #e6e3dc; max-width: 46ch; }
.oz-small, .oz-crumbs { font-size: .85rem; color: var(--wp--preset--color--muted); }
.oz-crumbs a { color: var(--wp--preset--color--muted); text-decoration: none; }
.oz-crumbs a:hover { color: var(--wp--preset--color--gold); }
.oz-rule { width: 46px; height: 3px; min-height: 3px; background: var(--wp--preset--color--gold); padding: 0 !important; margin-bottom: 6px; }
:where(.wp-block-button.is-style-outline) > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--fg); border: 1.5px solid rgba(243,241,236,.7); padding: calc(.95em - 1.5px) calc(1.4em - 1.5px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(243,241,236,.08); color: var(--wp--preset--color--fg); }
a:focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

/* ---------- Sections ---------- */
.oz-section { padding-top: clamp(48px, 7vw, 80px) !important; padding-bottom: clamp(48px, 7vw, 80px) !important; }
.oz-section > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.oz-strip { padding-top: 34px !important; padding-bottom: 34px !important; border-block: 1px solid var(--wp--preset--color--line); }

/* ---------- Section rail (keeps every section on one 1200px grid) ---------- */
.oz-section.is-layout-constrained > * { max-width: 1200px !important; }
.oz-section.is-layout-constrained > .oz-rule,
.oz-section.is-layout-constrained > .oz-intro { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.oz-section.is-layout-constrained > .oz-intro { max-width: 58ch !important; }
.oz-section .wp-block-buttons { justify-content: flex-start; }

/* ---------- Header ---------- */
.oz-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: rgba(13,18,25,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); transition: background .25s ease, border-color .25s ease; }
.home .oz-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(13,18,25,.75), rgba(13,18,25,0)); border-color: transparent; backdrop-filter: none; }
.home .oz-header { margin-bottom: -96px; }
.oz-header-inner { max-width: 1260px; margin: 0 auto; padding-top: 14px !important; padding-bottom: 14px !important; gap: 24px; }
.oz-brand { gap: 12px; align-items: center; }
.oz-brand:has(.wp-block-site-logo img) .oz-site-title { display: none; }
.oz-brand .wp-block-site-logo img { width: 64px !important; height: auto; }
.oz-site-title { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; margin: 0; }
.oz-site-title a { color: var(--wp--preset--color--fg); text-decoration: none; }
.oz-nav { flex-wrap: nowrap; white-space: nowrap; }
.oz-nav { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; gap: 26px; margin-left: auto; }
.oz-nav a { color: var(--wp--preset--color--fg); text-decoration: none; }
.oz-nav a:hover, .oz-nav .current-menu-item > a { color: var(--wp--preset--color--gold); }
.oz-nav .wp-block-navigation__submenu-container { background: var(--wp--preset--color--panel) !important; border: 1px solid var(--wp--preset--color--line) !important; padding: 8px 0; }
.oz-nav .wp-block-navigation__submenu-container a { padding: 8px 16px; }
.oz-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--fg) !important; }
.oz-head-btns { flex-wrap: nowrap; gap: 10px; }
.oz-head-btns .wp-block-button__link { padding: .8em 1.1em; font-size: .72rem; }
@media (max-width: 1080px) { .oz-head-btns { display: none !important; } }

/* ---------- Hero ---------- */
.oz-hero { min-height: clamp(560px, 56vw, 820px) !important; padding-bottom: 64px !important; padding-top: 140px !important; }
.oz-hero .wp-block-cover__image-background { object-position: 60% 60%; }
.oz-hero .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(13,18,25,.9) 0%, rgba(13,18,25,.66) 30%, rgba(13,18,25,.12) 58%, rgba(13,18,25,0) 100%), linear-gradient(0deg, rgba(13,18,25,.95) 0%, rgba(13,18,25,0) 30%) !important; }
.oz-hero .wp-block-cover__inner-container { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; width: 100%; }
.oz-hero .wp-block-cover__inner-container > * { max-width: 720px; margin-left: 0 !important; }
.oz-hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem) !important; }
@media (max-width: 640px) {
  .oz-hero { min-height: 640px !important; }
  .oz-hero .wp-block-cover__image-background { object-position: 66% 40%; }
  .oz-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(13,18,25,.97) 0%, rgba(13,18,25,.75) 45%, rgba(13,18,25,.1) 75%) !important; }
}

/* ---------- Feature strip ---------- */
.oz-feats { gap: 0 !important; }
.oz-feat { text-align: center; padding-inline: 12px; border-left: 1px solid var(--wp--preset--color--line); }
.oz-feat:first-child { border-left: 0; }
.oz-feat h3 { font-size: .9rem; margin-top: 8px; }
.oz-feat p { color: var(--wp--preset--color--muted); font-size: .86rem; margin-top: 6px; }
.oz-icon { margin: 0 auto !important; }
.oz-icon img { width: 40px; height: 40px; }
@media (max-width: 781px) { .oz-feats { flex-wrap: wrap !important; row-gap: 26px !important; } .oz-feat { flex-basis: 50% !important; } .oz-feat:nth-child(3) { border-left: 0; } }

/* ---------- Range cards ---------- */
.oz-range-cols { gap: 40px; }
.oz-range-intro p { color: var(--wp--preset--color--muted); }
.oz-cards { gap: 18px !important; }
.oz-card { background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.oz-card > * { margin: 0 !important; }
.oz-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.oz-card-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.oz-card-body > * { margin: 0 !important; }
.oz-card-body p { color: var(--wp--preset--color--muted); font-size: .88rem; }
.oz-card-body .oz-tag { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gold); }
.oz-card-body .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.oz-keyspecs table, .oz-specs table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.oz-keyspecs td, .oz-specs td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 8px 0; vertical-align: top; }
.oz-keyspecs td:first-child, .oz-specs td:first-child { color: var(--wp--preset--color--muted); padding-right: 12px; }
.oz-keyspecs td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.oz-specs { margin: 0; }
.oz-specs td { padding: 12px 0; font-size: .95rem; }
.oz-specs td:first-child { width: 42%; font-weight: 600; }

/* ---------- Why ---------- */
.oz-why { background: radial-gradient(ellipse 60% 70% at 92% 30%, rgba(240,150,60,.45), rgba(240,150,60,0) 60%), linear-gradient(180deg, #3a3b4d 0%, #5b4a45 38%, #2b2a26 70%, #151a1f 100%); }
.oz-why .oz-intro { color: #e6e3dc; max-width: 54ch; }
.oz-why-grid { gap: 28px !important; }
.oz-why-item { border-bottom: 1px solid rgba(243,241,236,.15); padding-bottom: 14px; }
.oz-why-item h3 { font-size: .95rem; text-transform: none; font-family: var(--wp--preset--font-family--body); font-weight: 600; }
.oz-why-item h3::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--wp--preset--color--gold); vertical-align: middle; margin-right: 10px; }
.oz-why-item p { color: #cfd3d9; font-size: .85rem; margin-top: 4px; }

/* ---------- Gallery band ---------- */
.oz-gallery { margin: 0 !important; }
.oz-gal-cols { gap: 0 !important; margin: 0 !important; }
.oz-gal-cols > .wp-block-column { margin: 0 !important; }
.oz-gal-lead { position: relative; min-height: 420px; }
.oz-gal-lead .oz-gal-img { position: absolute; inset: 0; margin: 0; }
.oz-gal-lead .oz-gal-img img { width: 100%; height: 100%; object-fit: cover; }
.oz-gal-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,40,.88) 0%, rgba(10,12,40,.4) 50%, rgba(10,12,40,0) 78%); pointer-events: none; }
.oz-gal-copy { position: absolute; z-index: 2; left: max(16px, 4vw); bottom: 12%; max-width: 330px; }
.oz-gal-side { display: flex; flex-direction: column; }
.oz-gal-side .oz-gal-img { margin: 0 !important; }
.oz-gal-side .oz-gal-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
@media (max-width: 781px) { .oz-gal-lead { min-height: 0; aspect-ratio: 4/3; } }

/* ---------- Quote band ---------- */
.oz-quote { border-block: 1px solid var(--wp--preset--color--line); }
.oz-quote-cols { gap: 36px; align-items: center; }
.oz-quote-head { border-left: 3px solid var(--wp--preset--color--gold); padding-left: 20px !important; }
.oz-quote-head p:last-child { color: var(--wp--preset--color--muted); }
.oz-contact { font-size: .95rem; color: var(--wp--preset--color--muted); }
.oz-contact strong { color: var(--wp--preset--color--fg); font-weight: 600; }
.oz-contact a { color: var(--wp--preset--color--muted); text-decoration: none; }
.oz-contact a:hover { color: var(--wp--preset--color--gold); }
.oz-quote-btns { flex-direction: column; align-items: stretch; }
.oz-quote-btns .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Inner pages ---------- */
.oz-page-head { background: linear-gradient(180deg, #1b2431 0%, var(--wp--preset--color--ink) 100%); border-bottom: 1px solid var(--wp--preset--color--line); }
.oz-head-cols { gap: 40px; align-items: center; }
.oz-head-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--wp--preset--color--line); }
.oz-block + .oz-block { padding-top: 0 !important; }
.oz-two { gap: 48px; }
.oz-two p { color: var(--wp--preset--color--muted); }
.oz-feat-list { padding: 0; list-style: none; }
.oz-feat-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.oz-feat-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--wp--preset--color--gold); }
.oz-shots { gap: 12px !important; }
.oz-shot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; border: 1px solid var(--wp--preset--color--line); display: block; }
.oz-shot figcaption { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.oz-std { padding-top: 48px; padding-bottom: 64px; }

/* ---------- Footer ---------- */
.oz-footer { border-top: 1px solid var(--wp--preset--color--line); padding-bottom: 28px !important; }
.oz-foot-cols { gap: 40px; }
.oz-foot-h { font-size: .8rem !important; letter-spacing: .1em; color: var(--wp--preset--color--gold) !important; }
.oz-foot-nav { flex-direction: column; align-items: flex-start !important; gap: 8px !important; font-size: .92rem; }
.oz-foot-nav a { color: var(--wp--preset--color--fg); text-decoration: none; }
.oz-foot-nav a:hover { color: var(--wp--preset--color--gold); }
.oz-copy { font-size: .78rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); padding-top: 20px; margin-top: 32px !important; }

/* ---------- Mobile action bar ---------- */
.oz-mobile-bar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .oz-mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--wp--preset--color--ink); border-top: 1px solid var(--wp--preset--color--line); padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .oz-mobile-bar .wp-block-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .oz-mobile-bar .wp-block-button__link { width: 100%; text-align: center; padding: .9em .4em; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .oz-header { transition: none; } }

/* v1.1.1: readable dropdown menu */
.oz-nav .wp-block-navigation__submenu-container,
.oz-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.oz-nav .wp-block-navigation__submenu-container a { color: #f3f1ec !important; }
.oz-nav .wp-block-navigation__submenu-container a:hover,
.oz-nav .wp-block-navigation__submenu-container a:focus { color: #e4bf5c !important; background: rgba(243,241,236,.06); }
.oz-nav .wp-block-navigation__submenu-container { min-width: 240px !important; }
.oz-feat .oz-feat-h { font-size: .9rem !important; margin-top: 8px; }

/* ---------- Quote form (Contact Form 7) ---------- */
.oz-quote-form .oz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; padding: 24px; }
.oz-quote-form .oz-full { grid-column: 1 / -1; }
.oz-quote-form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oz-quote-form input:not([type=submit]), .oz-quote-form select, .oz-quote-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--fg); background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line); border-radius: 4px; padding: 11px 12px; }
.oz-quote-form textarea { min-height: 110px; max-height: 260px; }
.oz-quote-form input:focus, .oz-quote-form select:focus, .oz-quote-form textarea:focus { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 1px; }
.oz-quote-form input[type=submit] { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-ink); border: 0; border-radius: 4px; padding: .95em 1.6em; cursor: pointer; }
.oz-quote-form .wpcf7-not-valid-tip { color: #ff9b8a; font-size: .8rem; text-transform: none; letter-spacing: 0; }
.oz-quote-form .wpcf7-response-output { border-radius: 4px; color: var(--wp--preset--color--fg); margin: 14px 0 0 !important; }
@media (max-width: 640px) { .oz-quote-form .oz-form-grid { grid-template-columns: 1fr; padding: 18px; } }
