/*
Theme Name: Jreissati Group
Theme URI: https://jreissatigroup.com.au
Author: Jreissati Group
Description: Custom theme for Jreissati Group — a privately held family office. Built from the approved site wireframes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jreissati-group
*/

:root {
  --black: #111010;
  --gold: #B8965A;
  --gold-light: #D4B278;
  --gold-dark: #8B6E3A;
  --white: #FFFFFF;
  --grey-light: #F4F2EE;
  --grey-mid: #E0DDD8;
  --grey-dark: #888078;
  --grey-darker: #3A3835;
  --text-dark: #1A1917;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: #F4F2EE;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ─── SITE NAV ─── */
.site-nav {
  position: relative;
  top: 0;
  z-index: 100;
  background: rgba(17,16,16,0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  border-bottom: 1px solid rgba(184,150,90,0.3);
}
.site-nav .logo-wrap {
  display: flex;
  align-items: center;
}
.site-nav .logo-wrap img {
  height: 40px;
  width: auto;
}
.site-nav .nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.site-nav .nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 400;
  transition: color 0.2s;
  cursor: pointer;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active,
.site-nav .nav-links .current-menu-item a { color: var(--gold); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background: var(--black);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 80px 0;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.8;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── PAGE HERO (non-home) ─── */
.page-hero {
  background: var(--black);
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero.with-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,rgba(184,150,90,0.03) 0px,rgba(184,150,90,0.03) 1px,transparent 1px,transparent 80px);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.page-hero .section-label,
.page-hero .gold-rule,
.page-hero p { position: relative; z-index: 1; }

/* ─── FULL-BLEED IMAGE HERO (founder / house) ─── */
.image-hero {
  background: var(--black);
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.image-hero.tall { min-height: 75vh; }
.image-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.image-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.image-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.image-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 80px;
  background: linear-gradient(to top, rgba(17,16,16,0.95) 0%, transparent 100%);
  width: 100%;
}
.image-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold);
  color: var(--black);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  color: rgba(255,255,255,0.65);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost::after { content: '→'; }
.btn-ghost.on-light { color: var(--gold-dark); }

/* ─── SECTION BASE ─── */
.section {
  padding: 100px 80px;
}
.section-light { background: var(--white); }
.section-grey { background: var(--grey-light); }
.section-dark { background: var(--black); }
.section-dark-alt { background: var(--grey-darker); }

.section-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}
h2.section-title.light { color: var(--white); }
h2.section-title.dark { color: var(--text-dark); }
h3.sub-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-dark);
}
h3.sub-title.light { color: var(--white); }

p.body-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--grey-darker);
  font-family: var(--sans);
  font-weight: 300;
  max-width: 640px;
}
p.body-text.light {
  color: rgba(255,255,255,0.6);
  max-width: 560px;
}
p.body-text.wide { max-width: 800px; }

/* generic prose fallback so WP editor content always looks right */
.entry-content p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--grey-darker);
  font-family: var(--sans);
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 1.4em;
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 32px 0;
}

/* ─── TWO COL ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ─── IMAGE BLOCKS ─── */
.img-block {
  background: var(--grey-mid);
  position: relative;
  overflow: hidden;
}
.img-block.tall { aspect-ratio: 3/4; }
.img-block.wide { aspect-ratio: 16/9; }
.img-block.square { aspect-ratio: 1; }
.img-block.portrait { aspect-ratio: 4/5; }
.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-block.top img { object-position: center top; }
.img-block-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grey-mid);
}
.img-block-placeholder .ph-icon {
  width: 36px;
  height: 36px;
  border: 1px dashed rgba(184,150,90,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(184,150,90,0.6);
  font-size: 16px;
}
.img-block-placeholder span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
}

/* ─── STAT ROW ─── */
.stat-row {
  display: flex;
  gap: 60px;
  margin-top: 60px;
  border-top: 1px solid var(--grey-mid);
  padding-top: 40px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-top: 8px;
}

/* ─── CARDS ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}
.card {
  background: var(--white);
  padding: 40px 36px;
}
.card.dark-card { background: var(--grey-darker); }
.card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--gold);
}
.card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.card.dark-card h4 { color: var(--white); }
.card p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--grey-dark);
  font-weight: 300;
}
.card.dark-card p { color: rgba(255,255,255,0.5); }

/* ─── PILLARS ─── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.pillar {
  border-top: 1px solid var(--gold);
  padding-top: 28px;
}
.pillar h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text-dark);
}
.pillar p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey-darker);
  font-weight: 300;
}

/* ─── TIMELINE ─── */
.timeline {
  margin-top: 60px;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.timeline-year {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey-darker);
  font-weight: 300;
}

/* ─── CONTACT FORM ─── */
.contact-form { max-width: 640px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-field label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-darker);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-mid);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--gold); }
.form-field textarea { min-height: 120px; }
.form-status { font-family: var(--sans); font-size: 13px; margin-top: 16px; }
.form-status.success { color: #4a7c4a; }
.form-status.error { color: #a84a4a; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  padding: 80px 80px 40px;
  border-top: 1px solid rgba(184,150,90,0.3);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-logo img { height: 55px; margin-bottom: 24px; }
.footer-tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}

/* ─── QUOTE ─── */
.quote-block {
  border-left: 2px solid var(--gold);
  padding: 24px 40px;
  margin: 40px 0;
  max-width: 700px;
}
.quote-block p {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dark);
}
.quote-block p.light { color: rgba(255,255,255,0.7); }
.quote-block cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  display: block;
}

/* ─── AWARDS ─── */
.awards-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.award-badge {
  border: 1px solid rgba(184,150,90,0.4);
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.award-badge.on-dark {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}

/* ─── ENTITY CARDS ─── */
.entity-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.entity-card { background: var(--grey-darker); padding: 48px 40px; }
.entity-card .tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.entity-card h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
}
.entity-card p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}
.entity-card-image {
  margin-bottom: 28px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.entity-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── PHILANTHROPY CAROUSEL ─── */
.philanthropy-carousel { background: var(--black); position: relative; overflow: hidden; }
.phil-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phil-track::-webkit-scrollbar { display: none; }
.phil-panel {
  min-width: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  scroll-snap-align: start;
}
.phil-panel-image { position: relative; overflow: hidden; min-height: 560px; }
.phil-panel-image img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.phil-panel-image::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.phil-panel-content { background: var(--black); padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.phil-panel-count {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.phil-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 10;
}
.phil-arrow {
  background: none;
  border: 1px solid rgba(184,150,90,0.5);
  color: var(--gold);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.phil-arrow:hover { background: rgba(184,150,90,0.15); }
.phil-dots { display: flex; gap: 8px; }
.phil-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: none;
  padding: 0;
}
.phil-dot.active { background: var(--gold); }

/* ─── HOUSE PAGE ─── */
.house-feature {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 600px;
}
.house-feature-img { position: relative; overflow: hidden; }
.house-feature-content {
  background: var(--black);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.divider-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 0;
}

/* ─── ACCESSIBILITY ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  z-index: 10000;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .site-nav .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .site-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(184,150,90,0.3);
  }
  .section { padding: 60px 24px; }
  .page-hero { padding: 100px 24px 60px; }
  .two-col,
  .house-feature,
  .entity-row,
  .phil-panel { grid-template-columns: 1fr !important; }
  .hero-content { padding: 0 24px 60px; }
  .card-grid { grid-template-columns: 1fr; gap: 2px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .stat-row { flex-wrap: wrap; gap: 32px; }
  .image-hero-content,
  .phil-panel-content { padding: 40px 24px; }
}
