/**
 * Sparks Ventures — Main Stylesheet
 *
 * All classes use sv- prefix to avoid conflicts.
 * Colors reference CSS custom properties from style.css for easy brand swapping.
 *
 * @package Sparks_Ventures
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sv-font-body);
  color: var(--sv-text-body);
  background: var(--sv-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== UTILITY ===== */
.sv-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.sv-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sv-reveal--visible { opacity: 1; transform: translateY(0); }
.sv-reveal--delay-1 { transition-delay: 0.15s; }
.sv-reveal--delay-2 { transition-delay: 0.3s; }
.sv-reveal--delay-3 { transition-delay: 0.45s; }

.sv-tag {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sv-accent);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.sv-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 42px;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--sv-font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
}
.sv-btn--gold {
  background: var(--sv-accent);
  color: var(--sv-white);
}
.sv-btn--gold:hover {
  background: var(--sv-accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(176, 141, 87, 0.3);
}
.sv-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 400;
}
.sv-btn--ghost:hover {
  border-color: var(--sv-accent);
  color: var(--sv-accent);
}

/* ===== NAVIGATION ===== */
.sv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 50px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sv-nav--scrolled {
  background: rgba(26, 60, 52, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 50px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
}

.sv-nav__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.sv-nav__logo svg, .sv-nav__logo .sv-logo-icon { width: 30px; height: 30px; }
.sv-nav__logo-brand {
  display: flex; flex-direction: column; line-height: 1;
}
.sv-nav__logo-text {
  font-family: var(--sv-font-display);
  font-size: 18px; font-weight: 600;
  color: white; letter-spacing: 3px;
}
.sv-nav__logo-sub {
  font-family: var(--sv-font-display);
  font-size: 8px; font-weight: 400;
  color: var(--sv-accent-light); letter-spacing: 5.5px;
  margin-top: 2px;
}

.sv-nav__links {
  display: flex; gap: 36px;
  list-style: none; align-items: center;
}
.sv-nav__links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 400; transition: color 0.3s;
  position: relative;
}
.sv-nav__links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--sv-accent);
  transition: width 0.3s;
}
.sv-nav__links a:hover { color: var(--sv-accent); }
.sv-nav__links a:hover::after { width: 100%; }

.sv-btn-nav {
  border: 1px solid rgba(176, 141, 87, 0.6);
  color: var(--sv-accent) !important;
  padding: 10px 28px; border-radius: 2px;
  transition: all 0.3s !important;
}
.sv-btn-nav:hover {
  background: var(--sv-accent) !important;
  color: white !important;
}
.sv-btn-nav::after { display: none !important; }

/* Hamburger */
.sv-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.sv-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: white; margin: 5px 0; transition: 0.3s;
}

/* Mobile menu */
.sv-mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--sv-primary-deep); z-index: 999;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
}
.sv-mobile-menu--active { display: flex; }
.sv-mobile-menu a {
  color: white; text-decoration: none;
  font-family: var(--sv-font-display);
  font-size: 22px; letter-spacing: 3px;
}
.sv-mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: white; font-size: 28px; cursor: pointer;
}

/* ===== HERO ===== */
.sv-hero {
  height: 100vh; min-height: 700px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--sv-primary-deep) 0%, var(--sv-primary) 50%, #366B5A 100%);
}

.sv-hero__parallax {
  position: absolute; inset: 0;
  pointer-events: none;
  transition: transform 0.1s linear;
}
.sv-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.07) 0%, transparent 70%);
}
.sv-orb--1 { width: 700px; height: 700px; top: -20%; right: -15%; }
.sv-orb--2 { width: 400px; height: 400px; bottom: -10%; left: -5%; }
.sv-orb--3 {
  width: 200px; height: 200px; top: 30%; left: 20%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.04) 0%, transparent 70%);
}

.sv-hero__geo {
  position: absolute;
  border: 1px solid rgba(176, 141, 87, 0.06);
  pointer-events: none;
  transition: transform 0.3s ease;
}
.sv-hero__geo--1 { width: 250px; height: 250px; top: 12%; right: 8%; transform: rotate(45deg); }
.sv-hero__geo--2 { width: 140px; height: 140px; bottom: 18%; left: 6%; border-radius: 50%; }
.sv-hero__geo--3 { width: 80px; height: 80px; top: 60%; right: 25%; transform: rotate(15deg); }

.sv-hero__content {
  text-align: center; color: white;
  z-index: 2; max-width: 820px; padding: 0 30px;
}
.sv-hero__content .sv-tag { margin-bottom: 28px; display: block; }
.sv-hero__content h1 {
  font-family: var(--sv-font-display);
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 600; line-height: 1.12;
  margin-bottom: 24px; letter-spacing: -0.5px;
}
.sv-hero__content h1 em { font-style: italic; color: var(--sv-accent-light); }
.sv-hero__sub {
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px; margin: 0 auto 48px; line-height: 1.85;
}
.sv-hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.sv-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.sv-scroll-hint__line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(176, 141, 87, 0.4), transparent);
  animation: sv-scrollLine 2s ease-in-out infinite;
}
@keyframes sv-scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ===== STATS ===== */
.sv-stats {
  background: var(--sv-primary); padding: 56px 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; position: relative;
}
.sv-stats::before {
  content: ''; position: absolute; top: 0;
  left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(176, 141, 87, 0.2), transparent);
}
.sv-stat h3 {
  font-family: var(--sv-font-display);
  font-size: clamp(32px, 4vw, 46px);
  color: var(--sv-accent); font-weight: 600;
  margin-bottom: 4px;
}
.sv-stat p {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.35);
}

/* ===== ABOUT ===== */
.sv-about { padding: 140px 0; }
.sv-about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
}
.sv-about__visual { position: relative; }
.sv-about__img {
  width: 100%; aspect-ratio: 3/4; border-radius: 3px;
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #a8c4b0 0%, #c8d8cc 40%, #e0ebe0 100%);
  display: flex; align-items: center; justify-content: center;
}
.sv-about__img img { width: 100%; height: 100%; object-fit: cover; }
.sv-about__img svg { opacity: 0.1; width: 140px; height: 140px; }
.sv-about__badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--sv-primary); color: white;
  padding: 28px 36px; border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); z-index: 2;
}
.sv-about__badge span {
  display: block; font-family: var(--sv-font-display);
  font-size: 38px; color: var(--sv-accent);
  font-weight: 600; line-height: 1;
}
.sv-about__badge small { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

.sv-about__text .sv-tag { display: block; margin-bottom: 18px; }
.sv-about__text h2 {
  font-family: var(--sv-font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600; color: var(--sv-primary);
  line-height: 1.2; margin-bottom: 24px;
}
.sv-about__text p {
  color: var(--sv-text-muted); font-size: 16px;
  line-height: 1.9; margin-bottom: 20px;
}
.sv-about__features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 36px;
}
.sv-about__feat { display: flex; gap: 14px; }
.sv-about__feat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sv-accent); flex-shrink: 0; margin-top: 8px;
}
.sv-about__feat h4 {
  font-size: 14px; font-weight: 600;
  color: var(--sv-primary); margin-bottom: 2px;
}
.sv-about__feat p { font-size: 13px; margin: 0; line-height: 1.6; }

/* ===== SERVICES ===== */
.sv-services { background: var(--sv-bg-warm); padding: 140px 0; }
.sv-services__header { text-align: center; margin-bottom: 72px; }
.sv-services__header h2 {
  font-family: var(--sv-font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600; color: var(--sv-primary); margin: 16px 0;
}
.sv-services__header p {
  color: var(--sv-text-muted); max-width: 480px;
  margin: 0 auto; font-size: 16px;
}
.sv-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sv-svc-card {
  background: white; padding: 44px 36px; border-radius: 3px;
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.sv-svc-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--sv-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s;
}
.sv-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border-color: var(--sv-border-soft);
}
.sv-svc-card:hover::before { transform: scaleX(1); }
.sv-svc-card__num {
  font-family: var(--sv-font-display);
  font-size: 42px; color: var(--sv-accent-pale);
  font-weight: 700; line-height: 1; margin-bottom: 18px;
}
.sv-svc-card h3 {
  font-family: var(--sv-font-display);
  font-size: 20px; color: var(--sv-primary);
  margin-bottom: 12px; font-weight: 600;
}
.sv-svc-card p { font-size: 14px; color: var(--sv-text-muted); line-height: 1.8; }
.sv-svc-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 12px; color: var(--sv-accent);
  text-decoration: none; letter-spacing: 1px; font-weight: 500;
  transition: gap 0.3s;
}
.sv-svc-card__link:hover { gap: 14px; }

/* ===== PROPERTIES ===== */
.sv-properties { padding: 140px 0; }
.sv-properties__top {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 60px;
}
.sv-properties__top h2 {
  font-family: var(--sv-font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600; color: var(--sv-primary);
}
.sv-properties__top > a {
  color: var(--sv-accent); text-decoration: none;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; transition: gap 0.3s;
}
.sv-properties__top > a:hover { gap: 14px; }

.sv-props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.sv-prop-card {
  border-radius: 4px; overflow: hidden; background: white;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sv-prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.sv-prop-card__img { height: 280px; position: relative; overflow: hidden; }
.sv-prop-card__img-inner {
  width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
}
.sv-prop-card__img-inner img { width: 100%; height: 100%; object-fit: cover; }
.sv-prop-card:hover .sv-prop-card__img-inner { transform: scale(1.06); }

.sv-prop-card__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--sv-accent); color: white;
  padding: 6px 16px; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px;
}
.sv-prop-card__info { padding: 28px; }
.sv-prop-card__loc {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sv-accent); margin-bottom: 6px;
}
.sv-prop-card__info h3 {
  font-family: var(--sv-font-display);
  font-size: 19px; color: var(--sv-primary);
  margin-bottom: 10px; font-weight: 600;
}
.sv-prop-card__price {
  font-family: var(--sv-font-display);
  font-size: 22px; color: var(--sv-primary);
  font-weight: 600; margin-bottom: 14px;
}
.sv-prop-card__meta {
  display: flex; gap: 20px;
  font-size: 13px; color: var(--sv-text-muted);
  padding-top: 14px; border-top: 1px solid var(--sv-border-soft);
}
.sv-prop-card__meta span { display: flex; align-items: center; gap: 6px; }

/* ===== PARALLAX BANNER (Testimonial) ===== */
.sv-parallax-banner {
  height: 400px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--sv-primary-deep), var(--sv-primary));
}
.sv-parallax-banner__bg {
  position: absolute; inset: -60px;
  background: linear-gradient(160deg, var(--sv-primary-deep), var(--sv-primary), #366B5A);
  transition: transform 0.1s linear;
}
.sv-orb--a { width: 500px; height: 500px; top: -30%; right: -10%; }
.sv-orb--b { width: 300px; height: 300px; bottom: -20%; left: 5%; }

.sv-parallax-banner__content {
  position: relative; z-index: 2;
  text-align: center; max-width: 700px; padding: 0 30px;
}
.sv-parallax-banner__content blockquote {
  font-family: var(--sv-font-display);
  font-size: clamp(20px, 2.5vw, 28px); color: white;
  line-height: 1.55; font-style: italic; font-weight: 400;
  margin-bottom: 32px;
}
.sv-author { font-size: 14px; color: var(--sv-accent); font-weight: 500; letter-spacing: 1px; }
.sv-author-role { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-top: 4px; letter-spacing: 1px; }
.sv-quote-mark {
  font-family: var(--sv-font-display);
  font-size: 120px; color: rgba(176, 141, 87, 0.1);
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%); line-height: 1;
}

/* ===== CTA ===== */
.sv-cta { background: var(--sv-bg-warm); padding: 120px 0; text-align: center; }
.sv-cta h2 {
  font-family: var(--sv-font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  color: var(--sv-primary); margin: 16px 0; font-weight: 600;
}
.sv-cta p { color: var(--sv-text-muted); max-width: 480px; margin: 0 auto 40px; font-size: 16px; }
.sv-cta__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sv-cta__form input {
  padding: 16px 28px; border: 1px solid var(--sv-border-soft);
  background: white; font-size: 14px;
  font-family: var(--sv-font-body);
  width: 320px; border-radius: 2px;
  outline: none; transition: border 0.3s;
}
.sv-cta__form input:focus { border-color: var(--sv-accent); }
.sv-cta__phone { margin-top: 20px; font-size: 14px; color: var(--sv-text-muted); }
.sv-cta__phone strong { color: var(--sv-primary); }
.sv-cta__phone a { text-decoration: none; color: inherit; }

/* ===== FOOTER ===== */
.sv-footer {
  background: var(--sv-primary-deep);
  color: rgba(255, 255, 255, 0.45);
  padding: 80px 0 36px;
}
.sv-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 60px;
}
.sv-footer__brand svg,
.sv-footer__brand .sv-logo-icon { width: 36px; margin-bottom: 14px; }
.sv-footer__brand p { font-size: 14px; line-height: 1.8; max-width: 260px; margin-bottom: 20px; }
.sv-footer__social { display: flex; gap: 10px; }
.sv-footer__social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px; text-decoration: none;
  transition: all 0.3s;
}
.sv-footer__social a:hover { border-color: var(--sv-accent); color: var(--sv-accent); }

.sv-footer h4 {
  font-family: var(--sv-font-display);
  font-size: 15px; color: white;
  margin-bottom: 18px; font-weight: 500;
}
.sv-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sv-footer ul a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none; font-size: 14px;
  transition: color 0.3s;
}
.sv-footer ul a:hover { color: var(--sv-accent); }

.sv-footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

/* ===== BLOG / INDEX FALLBACK ===== */
.sv-posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.sv-post-card {
  background: white; border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.4s;
}
.sv-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.sv-post-card__img img { width: 100%; height: 220px; object-fit: cover; }
.sv-post-card__content { padding: 28px; }
.sv-post-card__content h2 { font-family: var(--sv-font-display); font-size: 20px; margin-bottom: 12px; }
.sv-post-card__content h2 a { text-decoration: none; color: var(--sv-primary); }
.sv-post-card__content p { font-size: 14px; color: var(--sv-text-muted); line-height: 1.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sv-services__grid { grid-template-columns: repeat(2, 1fr); }
  .sv-props-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .sv-nav { padding: 16px 24px; }
  .sv-nav--scrolled { padding: 12px 24px; }
  .sv-nav__links { display: none; }
  .sv-hamburger { display: flex; flex-direction: column; }

  .sv-stats { grid-template-columns: repeat(2, 1fr); padding: 40px 20px; gap: 24px; }

  .sv-about { padding: 80px 0; }
  .sv-about__grid { grid-template-columns: 1fr; gap: 50px; }

  .sv-services { padding: 80px 0; }
  .sv-services__grid { grid-template-columns: 1fr; }

  .sv-properties { padding: 80px 0; }
  .sv-props-grid { grid-template-columns: 1fr; }
  .sv-properties__top { flex-direction: column; align-items: flex-start; gap: 14px; }

  .sv-parallax-banner { height: 340px; }

  .sv-cta { padding: 80px 0; }

  .sv-footer { padding: 50px 0 24px; }
  .sv-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .sv-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .sv-container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .sv-hero__content h1 { font-size: 32px; }
  .sv-hero__sub { font-size: 14px; }
  .sv-hero__btns { flex-direction: column; align-items: center; }
  .sv-btn { width: 100%; justify-content: center; }
  .sv-cta__form { flex-direction: column; align-items: center; }
  .sv-cta__form input { width: 100%; }
  .sv-about__features { grid-template-columns: 1fr; }
}
