/*
Theme Name: OZ Homes Luxury
Theme URI: https://ozhomesltd.ca
Author: OZ Homes Ltd
Author URI: https://ozhomesltd.ca
Description: A bright luxury real estate and home transformation WordPress theme with editable before/after hero, journey cards, featured project slider, trust/results section, and consultation CTA.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oz-homes-luxury
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, theme-options, real-estate, portfolio
*/

:root {
  --oz-bg: #fbfaf7;
  --oz-surface: #ffffff;
  --oz-soft: #f3eee7;
  --oz-ink: #16191d;
  --oz-heading: #111317;
  --oz-muted: #616971;
  --oz-line: rgba(20, 22, 25, 0.12);
  --oz-accent: #b77a4b;
  --oz-accent-dark: #8f5a34;
  --oz-gold: #c99558;
  --oz-gold-light: #e6c391;
  --oz-shadow: 0 24px 60px rgba(35, 25, 16, 0.12);
  --oz-radius: 18px;
  --oz-container: min(1380px, calc(100% - 48px));
  --oz-serif: Georgia, 'Times New Roman', serif;
  --oz-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oz-bg);
  color: var(--oz-ink);
  font-family: var(--oz-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.oz-container { width: var(--oz-container); margin-inline: auto; }
.oz-section { padding: 72px 0; border-top: 1px solid var(--oz-line); position: relative; }
.oz-overline {
  color: var(--oz-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  margin-bottom: 12px;
}
.oz-title {
  margin: 0;
  color: var(--oz-heading);
  font-family: var(--oz-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(2.4rem, 5vw, 5.9rem);
}
.oz-title .accent { color: var(--oz-accent); }
.oz-copy { color: var(--oz-muted); max-width: 620px; font-size: clamp(1rem, 1.2vw, 1.18rem); }
.oz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 0;
  border: 1px solid var(--oz-accent);
  background: var(--oz-accent);
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.075em;
  font-size: 0.8rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.oz-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(183, 122, 75, 0.25); background: var(--oz-accent-dark); }
.oz-btn--outline { background: transparent; color: var(--oz-ink); border-color: rgba(20, 22, 25, 0.28); }
.oz-btn--outline:hover { background: var(--oz-ink); color: #fff; border-color: var(--oz-ink); }

/* Header */
.oz-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--oz-line);
}
.oz-nav {
  width: var(--oz-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  gap: 28px;
}
.oz-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.oz-brand img { max-height: 68px; width: auto; }
.oz-brand__fallback { line-height: 1; }
.oz-brand__fallback strong { display: block; font-family: var(--oz-serif); font-size: 2rem; letter-spacing: -0.06em; }
.oz-brand__fallback span { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--oz-muted); }
.oz-menu { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; }
.oz-menu li { list-style: none; }
.oz-menu a {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .085em;
  color: var(--oz-ink);
  transition: color .2s ease;
}
.oz-menu a:hover, .oz-menu .current-menu-item > a { color: var(--oz-accent); }
.oz-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; white-space: nowrap; }
.oz-phone { font-size: .92rem; color: var(--oz-ink); }
.oz-menu-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.oz-menu-toggle span, .oz-menu-toggle span::before, .oz-menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--oz-ink); content: ''; position: relative; transition: transform .25s ease;
}
.oz-menu-toggle span::before { position: absolute; top: -8px; }
.oz-menu-toggle span::after { position: absolute; top: 8px; }

/* Hero */
.oz-hero { background: #fff; overflow: hidden; border-bottom: 1px solid var(--oz-line); }
.oz-hero__wrap { display: grid; grid-template-columns: minmax(340px, 0.68fr) minmax(420px, 1.32fr); min-height: clamp(620px, 62vw, 820px); }
.oz-hero__content { position: relative; z-index: 3; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.oz-hero__content::after {
  content: '';
  position: absolute; inset: 0 -22% 0 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 68%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}
.oz-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.oz-trust-row { display: flex; align-items: center; gap: 18px; margin-top: 42px; color: var(--oz-muted); font-size: .9rem; }
.oz-trust-dots { display: flex; }
.oz-trust-dot { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--oz-gold), var(--oz-soft)); border: 2px solid #fff; margin-left: -10px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.oz-trust-dot:first-child { margin-left: 0; }

.oz-hero__visual { position: relative; min-width: 0; overflow: hidden; }
.oz-ba {
  --position: 50%;
  position: relative;
  min-height: 100%;
  background: #f1eee9;
  overflow: hidden;
}
.oz-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oz-ba__before { filter: saturate(.45) contrast(.9) brightness(1.1); }
.oz-ba__after { clip-path: inset(0 0 0 var(--position)); }
.oz-ba__divider {
  position: absolute;
  top: -6%; bottom: -6%; left: var(--position);
  width: 4px;
  transform: translateX(-50%) rotate(4deg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 0 35px rgba(183,122,75,.38);
  z-index: 5;
}
.oz-ba__handle {
  position: absolute;
  top: 50%; left: var(--position); z-index: 6;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(255,255,255,.95);
  color: var(--oz-ink); display: grid; place-items: center; font-weight: 900;
  box-shadow: var(--oz-shadow);
}
.oz-ba__range {
  position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; opacity: 0; cursor: ew-resize;
}
.oz-ba__label {
  position: absolute; top: 28px; z-index: 9;
  padding: 8px 18px; background: rgba(255,255,255,.92); border: 1px solid var(--oz-line);
  color: var(--oz-ink); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .75rem;
}
.oz-ba__label--before { left: 28px; }
.oz-ba__label--after { right: 28px; background: var(--oz-accent); color: #fff; border-color: var(--oz-accent); }
.oz-hero__side-notes { position: absolute; right: 28px; top: 92px; z-index: 9; color: #fff; mix-blend-mode: difference; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; display: grid; gap: 22px; }
.oz-scroll-note { position: absolute; right: 38px; bottom: 42px; z-index: 9; color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.24); }

/* Journey */
.oz-journey { padding: 46px 0 58px; background: linear-gradient(180deg, #fff 0%, var(--oz-bg) 100%); }
.oz-section-heading { text-align: center; margin-bottom: 28px; }
.oz-section-heading h2 { margin: 0; font-family: var(--oz-serif); font-size: clamp(1.6rem, 2.8vw, 3rem); line-height: 1; font-weight: 400; letter-spacing: -.02em; }
.oz-section-heading .accent { color: var(--oz-accent); }
.oz-journey__grid { display: grid; grid-template-columns: 260px repeat(5, minmax(130px, 1fr)); gap: 18px; align-items: stretch; }
.oz-sketch-card { position: relative; min-height: 184px; border: 1px solid var(--oz-line); background: rgba(255,255,255,.62); overflow: hidden; }
.oz-sketch-card img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: sepia(.2); }
.oz-sketch-card span { position: absolute; left: 20px; top: 20px; text-transform: uppercase; letter-spacing: .12em; color: var(--oz-muted); font-size: .76rem; }
.oz-step-card {
  position: relative;
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  padding: 24px 18px 22px;
  min-height: 184px;
  box-shadow: 0 10px 35px rgba(0,0,0,.035);
  transition: transform .25s ease, box-shadow .25s ease;
}
.oz-step-card:hover { transform: translateY(-6px); box-shadow: var(--oz-shadow); }
.oz-step-card__num { position: absolute; top: 10px; left: 14px; font-size: 2.9rem; line-height: 1; color: rgba(22,25,29,.16); font-family: var(--oz-serif); }
.oz-step-card__icon { position: relative; color: var(--oz-accent); font-size: 2.1rem; margin-bottom: 16px; }
.oz-step-card h3 { margin: 0 0 8px; font-size: .88rem; text-transform: uppercase; letter-spacing: .07em; }
.oz-step-card p { margin: 0; color: var(--oz-muted); font-size: .88rem; line-height: 1.45; }

/* Featured */
.oz-featured { background: #fff; }
.oz-featured__grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: center; }
.oz-featured__visual { min-height: 320px; border: 1px solid var(--oz-line); box-shadow: var(--oz-shadow); }
.oz-featured__visual .oz-ba__label { top: 18px; }
.oz-featured__visual .oz-ba__label--before { left: 18px; }
.oz-featured__visual .oz-ba__label--after { right: 18px; }
.oz-featured__visual .oz-ba__handle { width: 48px; height: 48px; }
.oz-card-title { margin: 0 0 10px; font-family: var(--oz-serif); font-weight: 400; line-height: 1; font-size: clamp(2rem, 3.6vw, 4.4rem); }

/* Build luxury */
.oz-build { background: var(--oz-bg); padding: 46px 0; }
.oz-build__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.oz-feature { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 24px 18px; background: #fff; border: 1px solid var(--oz-line); }
.oz-feature__icon { color: var(--oz-accent); font-size: 2rem; }
.oz-feature h3 { margin: 0 0 6px; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.oz-feature p { margin: 0; color: var(--oz-muted); font-size: .92rem; line-height: 1.45; }

/* Results */
.oz-results { background: #fff; padding: 48px 0; }
.oz-results__grid { display: grid; grid-template-columns: 1fr 2fr 1fr 1.3fr; border: 1px solid var(--oz-line); background: linear-gradient(135deg, #fff 0%, var(--oz-soft) 100%); }
.oz-result-block { padding: 30px; border-right: 1px solid var(--oz-line); display: flex; flex-direction: column; justify-content: center; min-height: 160px; }
.oz-result-block:last-child { border-right: 0; }
.oz-stat { font-family: var(--oz-serif); font-size: clamp(2.7rem, 4vw, 4.8rem); color: var(--oz-accent); line-height: 1; }
.oz-stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; margin-top: 10px; }
.oz-quote { margin: 0; font-family: var(--oz-serif); font-size: clamp(1.45rem, 2vw, 2.4rem); line-height: 1.18; color: var(--oz-ink); }
.oz-quote + p { margin-bottom: 0; color: var(--oz-muted); }
.oz-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.oz-badge { display: grid; place-items: center; min-height: 82px; border: 1px solid var(--oz-line); background: #fff; text-align: center; padding: 12px; font-weight: 800; color: var(--oz-muted); font-size: .78rem; }
.oz-stars { color: var(--oz-accent); letter-spacing: .14em; font-size: 1rem; margin-top: 6px; }

/* CTA */
.oz-cta { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.82)), url('assets/img/livingroom.svg') center/cover no-repeat; padding: 76px 0; }
.oz-cta__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 40px; align-items: center; }
.oz-cta h2 { margin: 0; font-family: var(--oz-serif); font-size: clamp(2.2rem, 4vw, 4.8rem); line-height: 1; font-weight: 400; }
.oz-cta h2 .accent { color: var(--oz-accent); }
.oz-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.oz-cta__icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oz-mini { background: rgba(255,255,255,.8); border: 1px solid var(--oz-line); padding: 20px 16px; text-align: center; }
.oz-mini strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.oz-mini span { display: block; margin-top: 6px; color: var(--oz-muted); font-size: .82rem; }
.oz-mini__icon { color: var(--oz-accent); font-size: 2rem; margin-bottom: 8px; }

/* Footer and simple pages */
.oz-site-footer { background: #121416; color: rgba(255,255,255,.74); padding: 46px 0; }
.oz-site-footer .oz-container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.oz-site-footer strong { color: #fff; }
.oz-page { width: min(980px, calc(100% - 48px)); margin: 64px auto; background: #fff; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--oz-line); }
.oz-page h1 { font-family: var(--oz-serif); font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; font-weight: 400; margin-top: 0; }

/* Reveal animations */
[data-oz-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-oz-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .oz-nav { grid-template-columns: 150px auto auto; }
  .oz-menu { gap: 16px; }
  .oz-header-actions .oz-phone { display: none; }
  .oz-hero__wrap { grid-template-columns: 1fr; min-height: auto; }
  .oz-hero__content { min-height: 450px; }
  .oz-hero__visual { min-height: 520px; }
  .oz-journey__grid { grid-template-columns: repeat(2, 1fr); }
  .oz-sketch-card { grid-column: 1 / -1; }
  .oz-build__grid { grid-template-columns: repeat(2, 1fr); }
  .oz-results__grid { grid-template-columns: repeat(2, 1fr); }
  .oz-result-block:nth-child(2) { border-right: 0; }
}
@media (max-width: 820px) {
  :root { --oz-container: min(100% - 30px, 720px); }
  .oz-site-header { position: sticky; }
  .oz-nav { grid-template-columns: 1fr auto; min-height: 74px; }
  .oz-brand img { max-height: 58px; }
  .oz-menu-toggle { display: inline-flex; }
  .oz-primary-menu { position: absolute; left: 0; right: 0; top: 74px; background: #fff; border-bottom: 1px solid var(--oz-line); box-shadow: var(--oz-shadow); display: none; }
  .oz-primary-menu.is-open { display: block; }
  .oz-menu { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .oz-header-actions { display: none; }
  .oz-hero__content { padding: 48px 24px; min-height: auto; }
  .oz-hero__content::after { inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.82)); }
  .oz-hero__visual { min-height: 430px; }
  .oz-hero__side-notes, .oz-scroll-note { display: none; }
  .oz-featured__grid, .oz-cta__grid { grid-template-columns: 1fr; }
  .oz-featured__visual { min-height: 260px; }
  .oz-results__grid { grid-template-columns: 1fr; }
  .oz-result-block { border-right: 0; border-bottom: 1px solid var(--oz-line); }
  .oz-result-block:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .oz-journey__grid, .oz-build__grid, .oz-cta__icons, .oz-badges { grid-template-columns: 1fr; }
  .oz-ba__handle { width: 46px; height: 46px; }
  .oz-ba__label { top: 16px; font-size: .65rem; padding: 6px 10px; }
  .oz-hero__buttons, .oz-cta__buttons { align-items: stretch; flex-direction: column; }
  .oz-btn { width: 100%; }
}
