/* ============================================================
   AskBrandonY.com — Main Stylesheet
   Brandon Yerrid, Realtor® | The Spence Group | KW Collective
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ——— Custom Properties ——— */
:root {
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --gold:        #C9AA70;
  --gold-dark:   #A88A50;
  --gold-light:  #E8D5A8;
  --kw-red:      #CE011F;
  --red-dark:    #A50019;
  --text-dark:   #1A1A1A;
  --text-medium: #4D4D4D;
  --text-light:  #828282;
  --charcoal:    #2B2B2B;
  --border:      #E8E8E8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width:  1140px;
  --nav-height: 72px;
  --section-v:  96px;
}

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ——— Utilities ——— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.gold-stripe {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0;
}
.gold-stripe.center { margin: 18px auto; }

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary  { background: var(--kw-red); color: var(--white); border-color: var(--kw-red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline:hover  { background: var(--text-dark); color: var(--white); }
.btn-gold     { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: var(--white); color: var(--text-dark); border-color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.25s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Wordmark: askBrandonY */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.nav-logo .ask { font-weight: 300; color: var(--text-light); }
.nav-logo .brandon { font-weight: 600; color: var(--text-dark); }
.nav-logo .y { font-weight: 700; font-style: italic; color: var(--kw-red); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-medium);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-dark); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 500;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--charcoal);
  z-index: 200;
  padding: 88px 32px 40px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-nav ul a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav ul a:hover { color: var(--gold); }
.mobile-contact { display: flex; flex-direction: column; gap: 8px; }
.mobile-contact a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.mobile-contact a:hover { color: var(--white); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 88px;
  background: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 18px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.hero-text .tagline {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 460px;
  margin-top: 20px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Affiliations row */
.hero-affiliations {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-affiliations .aff-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}
.hero-affiliations img {
  height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all 0.25s;
}
.hero-affiliations img:hover { opacity: 1; filter: none; }

/* Photo */
.hero-photo { position: relative; }
.hero-photo-frame {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--off-white);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Corner gold accent */
.hero-photo::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 4px;
  height: 72px;
  background: var(--gold);
  border-radius: 2px;
}
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 72px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================================
   GOLD DIVIDER
   ============================================================ */
.gold-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

/* ============================================================
   THREE PILLARS
   ============================================================ */
.pillars {
  padding: var(--section-v) 0;
  background: var(--off-white);
}
.pillars .section-header {
  text-align: center;
  margin-bottom: 60px;
}
.pillars .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 3px;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.pillar-icon { font-size: 2rem; margin-bottom: 20px; }
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.pillar-card p {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.75;
}

/* ============================================================
   RESULTS — SOLD PROPERTIES
   ============================================================ */
.results {
  padding: var(--section-v) 0;
  background: var(--white);
  overflow: hidden;
}
.results .section-header { margin-bottom: 40px; }
.results .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
}
.results-scroll {
  overflow-x: auto;
  padding: 0 24px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
  /* allow scrolling past container edges */
  margin: 0 -24px;
}
.results-scroll::-webkit-scrollbar { height: 4px; }
.results-scroll::-webkit-scrollbar-track { background: var(--border); }
.results-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.results-track {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  width: max-content;
  /* indent to align with container */
  padding-left: 0;
}
.result-card {
  width: 280px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.result-card img { width: 100%; height: auto; }

/* ============================================================
   VIDEO FEATURE
   ============================================================ */
.video-feature {
  padding: var(--section-v) 0;
  background: var(--off-white);
}
.video-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.video-text .section-label { color: var(--gold-dark); }
.video-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
}
.video-text p {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-top: 20px;
}
.video-embed-wrap { display: flex; justify-content: center; }
.video-short-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.16);
}
.video-short-frame iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   RESOURCES / BLOG TEASERS
   ============================================================ */
.resources {
  padding: var(--section-v) 0;
  background: var(--charcoal);
}
.resources .section-label { color: var(--gold); }
.resources > .container > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 48px;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource-card {
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 32px;
  transition: background 0.2s, transform 0.2s;
}
.resource-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-3px);
}
.resource-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}
.resource-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}
.resource-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.resource-card:hover .resource-link { gap: 10px; }
.resources-footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  padding: var(--section-v) 0;
  background: var(--off-white);
}
.testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-stars {
  font-size: 1.25rem;
  color: #E6B800;
  letter-spacing: 5px;
  margin-bottom: 32px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.email-capture {
  padding: var(--section-v) 0;
  background: var(--white);
  border-top: 4px solid var(--gold);
}
.email-capture-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.email-capture h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 4px;
}
.email-capture > .email-capture-inner > p {
  color: var(--text-medium);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 40px;
}
.email-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; }
.email-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.email-form input:focus { border-color: var(--gold); }
.email-form input::placeholder { color: var(--text-light); }
.email-form button {
  width: 100%;
  padding: 15px 28px;
  background: var(--kw-red);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.email-form button:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
/* Footer wordmark */
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.footer-logo .ask { font-weight: 300; color: rgba(255,255,255,0.5); }
.footer-logo .y   { font-weight: 700; font-style: italic; color: var(--kw-red); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 20px;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

/* Logos row */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.2s;
}
.footer-logos img:hover { opacity: 0.75; }

/* Compliance & copyright */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-compliance {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  max-width: 620px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --section-v: 72px; }

  /* Nav */
  .nav-links, .nav-phone { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-photo {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .hero-text h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); }

  /* Pillars */
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Video */
  .video-feature-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .video-embed-wrap { order: -1; }

  /* Resources */
  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 540px) {
  .form-row { flex-direction: column; }
  .hero-ctas { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
