/*
Theme Name: Five Oaks Oakville
Description: Pre-construction landing page for Five Oaks Oakville by Caivan Communities
Version: 1.0
*/

/* ═══════════ VARIABLES ═══════════ */
:root {
  --oak: #6B4C2A;
  --oak-dark: #4A3318;
  --oak-light: #8B6B42;
  --forest: #3A5A3A;
  --forest-light: #5A8A5A;
  --cream: #FBF8F3;
  --warm-white: #FFFDF9;
  --linen: #F3EDE4;
  --sand: #DDD5C8;
  --charcoal: #222;
  --text: #333;
  --text-light: #707070;
  --copper: #B87333;
  --copper-dark: #9A5F28;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Nunito Sans', -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(107,76,42,.06);
  --shadow-lg: 0 12px 40px rgba(107,76,42,.10);
}

/* ═══════════ RESET ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--text); background: var(--warm-white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════ INTRO SPLASH ═══════════ */
.intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, var(--oak-dark) 0%, var(--oak) 50%, var(--forest) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity .8s ease, visibility .8s;
}
.intro-splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-dev-logo { max-width: 140px; height: auto; opacity: .7; }
.intro-logo { max-width: min(65vw, 400px); height: auto; }
.intro-tagline {
  font-family: var(--sans); font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--copper); margin-top: 4px; font-weight: 600;
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s, transform .35s;
}
.site-header.scrolled {
  background: rgba(74,51,24,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo img { height: 34px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff;
  letter-spacing: .3px; transition: color .2s; position: relative;
}
.header-nav a:hover { color: var(--copper); }
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
  background: var(--copper); transition: width .3s, left .3s;
}
.header-nav a:hover::after { width: 100%; left: 0; }
.header-cta {
  background: var(--copper) !important; color: #fff !important; padding: 10px 24px;
  border-radius: 24px; font-weight: 700 !important; letter-spacing: .3px;
}
.header-cta::after { display: none !important; }
.header-cta:hover { background: var(--copper-dark) !important; }

/* Mobile Toggle */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px; padding: 4px 0;
}
.mobile-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(34,34,34,.85) 0%, rgba(34,34,34,.3) 50%, rgba(74,51,24,.2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 0 48px 80px;
}
.hero-label {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; color: var(--copper);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5.5vw, 60px); font-weight: 400;
  color: #fff; line-height: 1.1; margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.7;
  margin-bottom: 36px; max-width: 560px;
}
.hero-sub a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.hero-sub a:hover { color: #fff; }
.hero-btn {
  display: inline-block; background: var(--copper); color: #fff; padding: 16px 40px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 24px;
  transition: background .3s, transform .2s; cursor: pointer;
}
.hero-btn:hover { background: var(--copper-dark); transform: translateY(-2px); }

/* ═══════════ STATS BANNER ═══════════ */
.stats-banner { background: var(--oak); padding: 44px 24px; }
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-value {
  display: block; font-family: var(--serif); font-size: 24px;
  color: #fff; margin-bottom: 6px;
}
.stat-item p { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

/* ═══════════ ABOUT ═══════════ */
.about { padding: 100px 24px; background: var(--warm-white); }
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.section-label {
  font-family: var(--sans); font-size: 11px; font-weight: 800;
  letter-spacing: 5px; text-transform: uppercase; color: var(--copper);
  margin-bottom: 16px;
}
.about h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); line-height: 1.15; margin-bottom: 24px;
}
.about-text { font-size: 16px; color: var(--text); margin-bottom: 16px; line-height: 1.8; }
.about-text a { color: var(--oak); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about-text a:hover { color: var(--oak-dark); }
.about-quote {
  font-family: var(--serif); font-size: 20px; color: var(--oak);
  border-left: 3px solid var(--copper); padding: 16px 0 16px 24px; margin-top: 24px;
}
.about-images { display: flex; flex-direction: column; gap: 16px; }
.about-images img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ═══════════ COMMUNITY FEATURES ═══════════ */
.community { padding: 100px 24px; background: var(--linen); }
.community h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 16px;
}
.community-intro {
  text-align: center; font-size: 16px; color: var(--text-light);
  max-width: 680px; margin: 0 auto 48px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: var(--warm-white); padding: 32px 24px; border-radius: var(--radius);
  border-bottom: 3px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-bottom-color: var(--copper); }
.feature-icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--forest); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-family: var(--serif); font-size: 19px;
  color: var(--oak-dark); margin-bottom: 10px;
}
.feature-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ═══════════ LOCATION ═══════════ */
.location { padding: 100px 24px; background: var(--warm-white); }
.location h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 16px;
}
.location-intro {
  text-align: center; font-size: 16px; color: var(--text-light);
  max-width: 680px; margin: 0 auto 48px;
}
.location-intro a { color: var(--oak); font-weight: 600; text-decoration: underline; }
.map-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px;
}
.map-card {
  background: var(--linen); padding: 32px; border-radius: var(--radius);
}
.map-card h3 {
  font-family: var(--serif); font-size: 19px;
  color: var(--oak-dark); margin-bottom: 16px;
}
.map-card ul { display: flex; flex-direction: column; gap: 10px; }
.map-card li { font-size: 15px; color: var(--text); padding-left: 20px; position: relative; }
.map-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--copper);
}
.map-card a { color: var(--oak); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.map-card a:hover { color: var(--oak-dark); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 400px; border: 0; }

/* ═══════════ NEIGHBOURHOOD ═══════════ */
.neighbourhood { padding: 100px 24px; background: var(--linen); }
.neighbourhood h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 16px;
}
.neighbourhood-intro {
  text-align: center; font-size: 16px; color: var(--text-light);
  max-width: 680px; margin: 0 auto 48px;
}
.hood-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hood-card {
  background: var(--warm-white); padding: 28px; border-radius: var(--radius);
  border-left: 3px solid var(--copper);
}
.hood-icon { width: 40px; height: 40px; color: var(--forest); margin-bottom: 16px; }
.hood-icon svg { width: 100%; height: 100%; }
.hood-card h3 {
  font-family: var(--serif); font-size: 17px;
  color: var(--oak-dark); margin-bottom: 14px;
}
.hood-card ul { display: flex; flex-direction: column; gap: 8px; }
.hood-card li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; }
.hood-card li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--forest-light);
}
.hood-card a { color: var(--oak); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════ FLOOR PLANS ═══════════ */
.floorplans { padding: 100px 24px; background: var(--warm-white); }
.floorplans h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 16px;
}
.floorplans-intro {
  text-align: center; font-size: 16px; color: var(--text-light);
  max-width: 700px; margin: 0 auto 48px;
}
.floorplans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fp-card {
  background: var(--linen); padding: 36px 28px; border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.fp-card--accent { background: var(--oak-dark); }
.fp-card--accent h3, .fp-card--accent p, .fp-card--accent li { color: #fff !important; }
.fp-card--accent .fp-features li::before { background: var(--copper); }
.fp-icon { width: 44px; height: 44px; color: var(--forest); margin-bottom: 20px; }
.fp-card--accent .fp-icon { color: var(--copper); }
.fp-icon svg { width: 100%; height: 100%; }
.fp-card h3 {
  font-family: var(--serif); font-size: 20px;
  color: var(--oak-dark); margin-bottom: 12px;
}
.fp-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.fp-features { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fp-features li { font-size: 14px; color: var(--text); padding-left: 20px; position: relative; }
.fp-features li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--forest);
}
.fp-cta {
  display: inline-block; text-align: center; background: var(--copper); color: #fff;
  padding: 14px 28px; border-radius: 24px; font-weight: 700; font-size: 14px;
  letter-spacing: .3px; transition: background .3s; cursor: pointer;
}
.fp-cta:hover { background: var(--copper-dark); }
.fp-card--accent .fp-cta { background: var(--copper); }

/* ═══════════ FAQ ═══════════ */
.faq { padding: 100px 24px; background: var(--linen); }
.faq h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 48px;
}
.faq-item {
  max-width: 800px; margin: 0 auto 12px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--warm-white);
  box-shadow: var(--shadow);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; transition: background .2s;
}
.faq-question:hover { background: var(--cream); }
.faq-question h3 {
  font-family: var(--serif); font-size: 17px;
  color: var(--oak-dark); flex: 1;
}
.faq-toggle { width: 24px; height: 24px; color: var(--copper); flex-shrink: 0; transition: transform .3s; }
.faq-toggle svg { width: 100%; height: 100%; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--text-light); line-height: 1.8; }
.faq-answer-inner a { color: var(--oak); font-weight: 600; text-decoration: underline; }

/* ═══════════ BOOKING ═══════════ */
.booking { padding: 100px 24px; background: var(--warm-white); }
.booking h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--oak-dark); text-align: center; margin-bottom: 16px;
}
.booking-intro {
  text-align: center; font-size: 16px; color: var(--text-light);
  max-width: 680px; margin: 0 auto 36px;
}
.calendly-inline-widget { min-width: 320px; height: 700px; border-radius: var(--radius); overflow: hidden; }
.calendly-inline-widget iframe { width: 100% !important; height: 100% !important; border: none; }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  background: var(--oak-dark); color: rgba(255,255,255,.8); padding: 64px 24px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--copper); }
.footer-contact p { font-size: 14px; margin-bottom: 6px; }
.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: var(--copper); }
.footer-dev {
  text-align: center; padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-dev img { height: 24px; margin: 0 auto; opacity: .6; }
.footer-communities {
  max-width: 1200px; margin: 0 auto; padding: 24px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-communities a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }
.footer-communities a:hover { color: var(--copper); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.footer-disclaimer {
  font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.7; text-align: center;
}

/* ═══════════ FLOATING BUTTONS ═══════════ */
.float-whatsapp, .float-book {
  position: fixed; z-index: 900; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s;
}
.float-whatsapp:hover, .float-book:hover { transform: scale(1.1); }
.float-whatsapp { bottom: 24px; right: 24px; background: #25D366; }
.float-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.float-book { bottom: 90px; right: 24px; background: var(--copper); }
.float-book svg { width: 24px; height: 24px; color: #fff; }

/* ═══════════ LEAD POPUP ═══════════ */
.lead-popup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(34,34,34,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  padding: 24px;
}
.lead-popup-overlay.visible { opacity: 1; visibility: visible; }
.lead-popup {
  background: var(--warm-white); border-radius: 16px; padding: 40px 36px;
  max-width: 420px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px); transition: transform .4s;
}
.lead-popup-overlay.visible .lead-popup { transform: translateY(0); }
.lead-popup-close {
  position: absolute; top: 16px; right: 16px; cursor: pointer;
  width: 32px; height: 32px; color: var(--text-light); transition: color .2s;
}
.lead-popup-close:hover { color: var(--oak-dark); }
.lead-popup-close svg { width: 100%; height: 100%; }
.lead-popup h3 {
  font-family: var(--serif); font-size: 24px;
  color: var(--oak-dark); margin-bottom: 8px;
}
.lead-popup > div > p {
  font-size: 14px; color: var(--text-light); margin-bottom: 24px; line-height: 1.6;
}
.form-group { margin-bottom: 14px; }
.form-group input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--sand);
  border-radius: 8px; font-family: var(--sans); font-size: 15px;
  background: var(--cream); color: var(--text); transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--oak); }
.phone-input-wrap {
  display: flex; align-items: center; border: 1px solid var(--sand);
  border-radius: 8px; background: var(--cream); overflow: hidden;
}
.phone-input-wrap:focus-within { border-color: var(--oak); }
.phone-prefix {
  padding: 14px 12px 14px 16px; font-size: 15px; color: var(--text-light);
  font-weight: 600; border-right: 1px solid var(--sand); white-space: nowrap;
}
.phone-input-wrap input {
  border: none !important; border-radius: 0 !important; background: transparent !important;
}
.popup-submit {
  width: 100%; padding: 16px; background: var(--copper); color: #fff;
  border: none; border-radius: 24px; font-family: var(--sans); font-size: 15px;
  font-weight: 700; letter-spacing: .3px; cursor: pointer;
  transition: background .3s; margin-top: 4px;
}
.popup-submit:hover { background: var(--copper-dark); }
.popup-submit:disabled { opacity: .6; cursor: not-allowed; }
.popup-success { display: none; text-align: center; padding: 20px 0; }
.popup-success h3 {
  font-family: var(--serif); font-size: 24px; color: var(--forest); margin-bottom: 8px;
}
.popup-success p { font-size: 15px; color: var(--text-light); }

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .floorplans-grid { grid-template-columns: repeat(2, 1fr); }
  .floorplans-grid .fp-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .header-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(74,51,24,.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  }
  .header-nav.open { display: flex; }
  .header-nav a { font-size: 18px; }
  .mobile-toggle { display: flex; }

  .hero { align-items: center; }
  .hero-content { padding: 140px 20px 80px; text-align: center; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-value { font-size: 20px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { order: -1; }

  .features-grid { grid-template-columns: 1fr; }

  .map-cards { grid-template-columns: 1fr; }
  .map-embed iframe { height: 280px; }

  .hood-scroll {
    grid-template-columns: repeat(4, 280px);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 16px;
  }
  .hood-card { scroll-snap-align: start; }

  .floorplans-grid { grid-template-columns: 1fr; }
  .floorplans-grid .fp-card:last-child { grid-column: span 1; }

  .booking { padding: 60px 16px; }
  .calendly-inline-widget { height: 750px !important; border-radius: 8px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-nav { align-items: center; }

  .float-whatsapp { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .float-book { bottom: 76px; right: 16px; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lead-popup { padding: 32px 24px; }
}
