/* ============================================================
   Canuck Investments LLC — Main Stylesheet
   Inspired by stephaniehenryrealtor.com design aesthetic
   Brand: Red (#C8102E), Charcoal (#2C2C2C), White (#FFFFFF)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --red: #C8102E;
  --red-dark: #a00d24;
  --charcoal: #2C2C2C;
  --charcoal-light: #4a4a4a;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --light-gray: #EFEFEF;
  --mid-gray: #999999;
  --border: #E0DEDA;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --radius: 4px;
  --radius-lg: 12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--charcoal-light); line-height: 1.8; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#navbar.transparent {
  background: transparent;
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
#navbar.scrolled .nav-logo img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
#navbar.scrolled .nav-links a { color: var(--charcoal); }
#navbar.scrolled .nav-links a:hover { color: var(--red); }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-outline {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: var(--transition);
}
.btn-nav-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
#navbar.scrolled .btn-nav-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
#navbar.scrolled .btn-nav-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-nav-red {
  padding: 0.5rem 1.3rem;
  background: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: var(--transition);
}
.btn-nav-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
#navbar.scrolled .nav-hamburger span { background: var(--charcoal); }

/* Mobile Nav Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--red); }
.nav-mobile .mobile-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bangor.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2.5rem 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--red);
}

.hero-content h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats {
  background: var(--charcoal);
  padding: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.04); }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-number span { color: var(--red); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   QUICK ACTION CARDS
   ============================================================ */
#quick-actions {
  padding: 80px 0;
  background: var(--off-white);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

.action-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  cursor: pointer;
}

.action-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.action-card:hover .action-card-bg { transform: scale(1.06); }

.action-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  transition: var(--transition);
}
.action-card:hover .action-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%);
}

.action-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--white);
}

.action-card-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.action-card:hover .action-card-icon { transform: scale(1.1); }
.action-card-icon svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 2; }

.action-card-content h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.action-card-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.action-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: var(--transition);
}
.action-card-link:hover { border-color: var(--white); gap: 0.7rem; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-image-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  top: 2rem;
  left: -2rem;
  background: var(--red);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1.25rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.about-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature-icon svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; }
.about-feature-text strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.about-feature-text span { font-size: 0.82rem; color: var(--mid-gray); }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
#portfolio {
  background: var(--off-white);
}

.portfolio-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.portfolio-header h2 { margin-bottom: 1rem; }
.portfolio-header p { font-size: 1.05rem; }

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-tab {
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--white);
  color: var(--charcoal-light);
  border: none;
  transition: var(--transition);
  border-right: 1.5px solid var(--border);
}
.portfolio-tab:last-child { border-right: none; }
.portfolio-tab.active, .portfolio-tab:hover {
  background: var(--charcoal);
  color: var(--white);
}

.portfolio-panel { display: none; }
.portfolio-panel.active { display: block; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.portfolio-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-image img { transform: scale(1.05); }

.portfolio-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}
.portfolio-card-badge.furnished { background: var(--red); }

.portfolio-card-body {
  padding: 1.5rem;
}
.portfolio-card-body h4 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.portfolio-card-body p { font-size: 0.88rem; margin-bottom: 1.2rem; color: var(--mid-gray); }

.portfolio-card-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.portfolio-feature {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--charcoal-light);
  font-weight: 500;
}
.portfolio-feature svg { width: 14px; height: 14px; stroke: var(--red); fill: none; stroke-width: 2; }

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  border: 1.5px solid var(--charcoal);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: var(--transition);
}
.btn-card:hover { background: var(--charcoal); color: var(--white); }
.btn-card.red { border-color: var(--red); color: var(--red); }
.btn-card.red:hover { background: var(--red); color: var(--white); }

.portfolio-cta-bar {
  text-align: center;
  margin-top: 48px;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.portfolio-cta-bar p { margin-bottom: 1.25rem; font-size: 1rem; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
}
.services-header h2 { color: var(--white); margin-bottom: 1rem; }
.services-header p { color: rgba(255,255,255,0.6); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
}

.service-item {
  padding: 2.5rem 2rem;
  background: var(--charcoal);
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(200,16,46,0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,16,46,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-item:hover .service-icon { background: var(--red); }
.service-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; }
.service-item:hover .service-icon svg { stroke: var(--white); }

.service-item h4 { color: var(--white); margin-bottom: 0.6rem; font-size: 1rem; }
.service-item p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.7; }

/* ============================================================
   AREAS SECTION
   ============================================================ */
#areas {
  background: var(--white);
}

.areas-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.areas-header h2 { margin-bottom: 1rem; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.area-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.area-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.area-card:hover .area-card-bg { transform: scale(1.06); }
.area-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%);
}
.area-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  color: var(--white);
}
.area-card-content h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.3rem; }
.area-card-content p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: var(--off-white);
}

.testimonials-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
}
.testimonials-header h2 { margin-bottom: 0.75rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: #F5A623; }
.testimonial-card p {
  font-size: 0.92rem;
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.testimonial-meta { font-size: 0.78rem; color: var(--mid-gray); }

/* ============================================================
   LEAD GENERATION / CONTACT SECTION
   ============================================================ */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2; }
.contact-detail-text strong { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal); margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.95rem; color: var(--charcoal-light); }

.buildium-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Form */
.contact-form-wrap {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.contact-form-wrap h3 { margin-bottom: 0.4rem; }
.contact-form-wrap > p { font-size: 0.88rem; margin-bottom: 1.75rem; }

.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.form-tab {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--white);
  color: var(--charcoal-light);
  border: none;
  transition: var(--transition);
  border-right: 1.5px solid var(--border);
  text-align: center;
}
.form-tab:last-child { border-right: none; }
.form-tab.active, .form-tab:hover { background: var(--charcoal); color: var(--white); }

.form-panel { display: none; }
.form-panel.active { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--charcoal);
}
.form-success svg { width: 48px; height: 48px; stroke: #22c55e; fill: none; stroke-width: 2; margin: 0 auto 1rem; }
.form-success h4 { margin-bottom: 0.5rem; }

/* ============================================================
   BUILDIUM CTA BANNER
   ============================================================ */
#buildium-cta {
  background: var(--red);
  padding: 60px 0;
}
.buildium-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.buildium-cta-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.buildium-cta-text p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #1a1a1a;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-accent { display: none; }
  .about-badge { left: 1rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 1.25rem; }
  .section-pad { padding: 64px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 1.25rem; }

  /* Hero */
  .hero-content { padding: 0 1.25rem 60px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2rem; }

  /* Quick Actions */
  .quick-actions-grid { grid-template-columns: 1fr; }
  .action-card { height: 280px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-tabs { flex-direction: column; width: 100%; }
  .portfolio-tab { border-right: none; border-bottom: 1.5px solid var(--border); }
  .portfolio-tab:last-child { border-bottom: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Areas */
  .areas-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Buildium CTA */
  .buildium-cta-inner { flex-direction: column; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

/* ============================================================
   SELL YOUR HOME FAST — CASH BUYER SECTION
   ============================================================ */

/* Hero-style dark banner at top of section */
#sell-home {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

#sell-home .sell-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  z-index: 2;
}

#sell-home .sell-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/aerial_neighborhood.jpg') center/cover no-repeat;
  opacity: 0.18;
  z-index: -1;
}

#sell-home .sell-hero .section-label {
  color: rgba(200,16,46,0.9);
}

#sell-home .sell-hero h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

#sell-home .sell-hero p.sell-lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* Reason pills / pain-point grid */
.sell-reasons {
  background: var(--off-white);
  padding: 72px 0;
}

.sell-reasons-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sell-reasons-header h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.sell-reasons-header p {
  max-width: 560px;
  margin: 0 auto;
}

.sell-reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sell-reason-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sell-reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sell-reason-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sell-reason-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sell-reason-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.sell-reason-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* How it works steps */
.sell-how {
  padding: 80px 0;
  background: var(--white);
}

.sell-how-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sell-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.sell-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: var(--light-gray);
  z-index: 0;
}

.sell-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sell-step-number {
  width: 72px;
  height: 72px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(200,16,46,0.3);
}

.sell-step h4 {
  margin-bottom: 0.5rem;
}

.sell-step p {
  font-size: 0.9rem;
}

/* CTA form strip */
.sell-cta-strip {
  background: var(--red);
  padding: 80px 0;
}

.sell-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sell-cta-text h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.sell-cta-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.sell-cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.sell-cta-bullets li {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sell-cta-bullets li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.sell-cta-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 56px rgba(0,0,0,0.2);
}

.sell-cta-form h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.sell-cta-form p {
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.sell-cta-form .form-group {
  margin-bottom: 1rem;
}

.sell-cta-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.sell-cta-form input,
.sell-cta-form select,
.sell-cta-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.sell-cta-form input:focus,
.sell-cta-form select:focus,
.sell-cta-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.sell-cta-form textarea {
  min-height: 90px;
  resize: vertical;
}

.sell-cta-form .btn-sell-submit {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.sell-cta-form .btn-sell-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .sell-cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .sell-steps { grid-template-columns: 1fr; }
  .sell-steps::before { display: none; }
}

@media (max-width: 768px) {
  .sell-reasons-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .sell-reasons-grid { grid-template-columns: 1fr; }
}
