/*
 * Eva Construction LLC — Fonseca-Inspired Premium Redesign
 * Aesthetic: Warm, curved, editorial, airy, premium
 */

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

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #586371;
  --brand-dark:   #3b4047;
  --brand-light:  #707c8d;
  --brand-alpha:  rgba(88, 99, 113, 0.08);

  /* Surface */
  --paper:  #ffffff;
  --bone:   #f8f7f3;
  --ink:    #3b4047;
  --ink-muted: #5a616b;
  --line:   rgba(59, 64, 71, 0.1);
  --line-light: rgba(59, 64, 71, 0.06);

  /* Text */
  --text-dark:   #3b4047;
  --text-body:   #5a616b;
  --text-light:  #8a9099;

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter',  -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;

  /* Border radius system */
  --radius-xs:   0.5rem;
  --radius-sm:   1rem;
  --radius-md:   1.5rem;
  --radius-lg:   2rem;
  --radius-xl:   2.5rem;
  --radius-2xl:  3rem;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1280px;
  --section-v: 7rem;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --duration:  0.35s;
  --duration-slow: 0.75s;
  --transition: all var(--duration) var(--ease);
  --transition-slow: all var(--duration-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-v) 0;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY SYSTEM
───────────────────────────────────────────── */
.subtitle {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--brand);
  display: block;
  margin-bottom: 1rem;
}

.title-large {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.title-medium {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.title-small {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.body-large {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.75;
}

/* Cormorant Garamond serif italic accent */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

/* ─────────────────────────────────────────────
   BUTTONS — PILL STYLE (Fonseca signature)
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}

.btn-primary:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 64, 71, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   FLOATING HEADER
───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: var(--transition);
}

/* Transparent on top */
.header:not(.scrolled) {
  background: transparent;
}

/* Frosted glass on scroll */
.header.scrolled {
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header.scrolled .header-container {
  height: 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 3.8rem;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 3.1rem;
}

.header:not(.scrolled) .logo-img {
  opacity: 0.95;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  position: relative;
  transition: var(--transition);
}

.header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header:not(.scrolled) .nav-link:hover {
  color: var(--paper);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand);
  transition: width 0.3s var(--ease-out);
}

.header:not(.scrolled) .nav-link::after {
  background-color: var(--paper);
}

.nav-link:hover::after {
  width: 100%;
}

/* Header CTA pill */
.header-contact {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  background-color: var(--ink);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.header-contact:hover {
  background-color: var(--brand);
  color: var(--paper);
}

.header:not(.scrolled) .header-contact {
  background-color: var(--paper);
  color: var(--ink);
}

.header:not(.scrolled) .header-contact:hover {
  background-color: var(--bone);
  color: var(--ink);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--ink);
  transition: var(--transition);
  transform-origin: center;
}

.header:not(.scrolled) .hamburger span {
  background-color: var(--paper);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────── */
.nav-menu-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(248, 247, 243, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--line-light);
  box-shadow: -15px 0 45px rgba(59, 64, 71, 0.04);
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-menu-mobile.active {
  right: 0;
}

.mobile-menu-brand {
  padding: 2.25rem 2rem 1.75rem 2rem;
  border-bottom: 1px solid var(--line-light);
  margin-top: 4rem;
}

.mobile-logo-img {
  height: 3.2rem;
  width: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  flex: 1;
  gap: 0;
}

.mobile-menu-links .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
  min-height: 56px;
  display: flex;
  align-items: center;
  letter-spacing: 0.08em;
}

.mobile-menu-links .nav-link:last-child {
  border-bottom: none;
}

.mobile-menu-footer {
  padding: 1.75rem 2rem 2.5rem 2rem;
  background-color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}

.mobile-menu-cta {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  padding: 0.9rem 1.5rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.mobile-menu-cta:hover {
  background-color: var(--bone);
}

.mobile-menu-email {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  word-break: break-all;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(59, 64, 71, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 98;
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--brand-dark);
  padding: 0;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image,
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.5s var(--ease-out);
}

.hero:hover .hero-bg-image,
.hero:hover .hero-bg-video {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(59, 64, 71, 0.85) 0%,
    rgba(59, 64, 71, 0.6) 50%,
    rgba(59, 64, 71, 0.35) 100%
  );
  z-index: 2;
}

.hero-container-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px;
}

.hero-content .subtitle {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-content h1 {
  margin-bottom: 1.75rem;
  color: var(--paper);
}

.hero-content p {
  margin-bottom: 2.75rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.hero-actions .btn-primary {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-actions .btn-primary:hover {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
}

.hero-actions .btn-secondary:hover {
  border-color: var(--paper);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

/* Floating badge overlay in background hero */
.hero-badge-overlay {
  position: absolute;
  bottom: 4rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 4;
}

.hero-badge-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.hero-badge-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

/* Remove old graphic bg */
.hero-graphic-bg { display: none; }

/* ─────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────── */
.about-section {
  background-color: var(--bone);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.about-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 12px solid var(--paper);
  box-shadow: 0 20px 50px rgba(59, 64, 71, 0.08);
}

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.about-image-container:hover .about-img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 12px 35px rgba(59, 64, 71, 0.2);
  z-index: 2;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.about-badge-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  max-width: 14ch;
  line-height: 1.3;
}

.about-content .subtitle {
  margin-bottom: 1rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content .body-large {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────────────── */
.services-section {
  background-color: var(--paper);
}

.services-header-refined {
  max-width: 800px;
  margin-bottom: 5rem;
  padding: 0 2rem;
  margin-left: auto;
  margin-right: auto;
}

.services-header-refined h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.services-header-refined .body-large {
  max-width: 650px;
  color: var(--text-body);
}

.services-minimal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4rem;
  row-gap: 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.service-item-refined {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1.5px solid var(--line-light);
  padding-top: 1.75rem;
  transition: var(--transition-slow);
}

.service-item-refined:hover {
  border-top-color: var(--ink);
  transform: translateY(-4px);
}

.service-num-refined {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  margin-bottom: 1rem;
}

.service-title-refined {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-desc-refined {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   PROJECTS SECTION — Portrait card style
───────────────────────────────────────────── */
.projects-section {
  background-color: var(--bone);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.projects-intro h2 {
  margin-top: 0.25rem;
}

/* Filter pills (Fonseca-style) */
/* Stats Summary Strip (Editorial blueprint theme) */
.portfolio-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  background-color: var(--bone);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.portfolio-stats-strip span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portfolio-stats-strip span strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

/* Divider dot in stats strip */
.portfolio-stats-strip .stats-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--line);
}

/* Dual Filters Styling */
.portfolio-filter-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 0.5rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.filter-row-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  width: 90px;
  flex-shrink: 0;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Card Visual Status Badge Overlay */
.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(59, 64, 71, 0.04);
  pointer-events: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: badge-pulse 2s infinite ease-in-out;
  background-color: inherit;
}

@keyframes badge-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.status-dot.completed,
.status-dot.available {
  background-color: #3cd070; /* Green */
}

.status-dot.current {
  background-color: #f2a33a; /* Amber */
}

.status-dot.sold {
  background-color: #8a909a; /* Neutral gray */
}

.status-dot.sold::after {
  display: none; /* Disable pulse animation for sold builds */
}

/* Stagger Fade-in Animation for Grid Rearrangement */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.project-card.project-card-animate-in {
  animation: card-fade-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-fade-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3-column portrait grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  overflow: hidden;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 64, 71, 0.15);
  box-shadow: 0 16px 45px rgba(59, 64, 71, 0.04);
}

.project-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  z-index: 1;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-meta {
  padding: 1.5rem 1.5rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.project-type-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
}

.project-loc-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.loc-pin {
  width: 0.85rem;
  height: 0.85rem;
  color: rgba(59, 64, 71, 0.4);
}

.project-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.project-card:hover .project-title {
  color: var(--brand);
}

.project-arrow {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  transform: translateX(4px);
}

.project-card-specs-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
  margin-top: 0.75rem;
  text-align: center;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-right: 1px solid var(--line-light);
}

.spec-cell:last-child {
  border-right: none;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.spec-lbl {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   PROCESS / PHILOSOPHY SECTION
───────────────────────────────────────────── */
.process-section {
  background-color: var(--paper);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 6rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  margin-bottom: 6rem;
}

.philosophy-title h2 {
  margin-top: 0.5rem;
}

.philosophy-content .body-large {
  margin-bottom: 1.5rem;
}

.philosophy-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  border-left: 3px solid var(--brand);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}

.philosophy-content > p:last-child {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

.timeline-title {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  margin-bottom: 3.5rem;
}

.timeline-title h2 {
  margin-top: 0.5rem;
}

/* 4-column timeline */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(2rem + 2.5rem);
  right: calc(2rem + 2.5rem);
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-node {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--paper);
  border: 1.5px solid var(--brand);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.timeline-step:hover .timeline-node {
  background-color: var(--brand);
  color: var(--paper);
}

.step-title {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   DARK CTA STRIP (Fonseca signature section)
───────────────────────────────────────────── */
.cta-strip {
  background-color: var(--ink);
  padding: 6rem 0;
  text-align: center;
}

.cta-strip-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-strip-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4);
  display: block;
}

.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-strip-title .serif-accent {
  color: rgba(255,255,255,0.55);
}

.cta-strip-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-light {
  background-color: var(--paper);
  border: 1.5px solid var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background-color: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.btn-ghost-light:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--paper);
  background-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────── */
.contact-section {
  background-color: var(--bone);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info .subtitle {
  margin-bottom: 1rem;
}

.contact-title h2 {
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 1rem;
  height: 1rem;
  fill: var(--brand);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.detail-value {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink);
}

.detail-value a:hover {
  color: var(--brand);
}

/* Service area tags */
.service-areas {
  margin-top: 0.5rem;
}

.areas-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.75rem;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--text-body);
}

/* Contact Form Card */
.contact-form {
  background-color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid var(--line-light);
  box-shadow: 0 8px 40px rgba(59,64,71,0.07);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-body);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.975rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
  width: 100%;
  resize: none;
}

.form-input::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

.form-input:focus {
  border-bottom-color: var(--ink);
}

textarea.form-input {
  min-height: 100px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer-section {
  background-color: var(--ink);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-logo {
  height: 5.2rem;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 32ch;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.footer-social-link:hover {
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
  background-color: rgba(255,255,255,0.05);
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* ─────────────────────────────────────────────
   FLOATING CALL BUTTON (Mobile)
───────────────────────────────────────────── */
.fab-call {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 30px rgba(59, 64, 71, 0.35);
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.fab-call svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.fab-call:hover, .fab-call:active {
  background-color: var(--brand);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(59, 64, 71, 0.4);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Tablet (≤1024px)
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-grid {
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
  
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(59, 64, 71, 0.92) 0%,
      rgba(59, 64, 71, 0.75) 60%,
      rgba(59, 64, 71, 0.55) 100%
    );
  }
  
  .hero-container-overlay {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .hero-badge-overlay {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-image-container {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-badge {
    right: -1rem;
    bottom: -1rem;
  }

  .services-minimal-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
    row-gap: 3.5rem;
  }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .services-intro .body-large {
    border-top: none;
    padding-top: 0;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .timeline-container::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .nav-menu, .header-contact {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .fab-call {
    display: flex;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Mobile (≤640px)
───────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --section-v: 4.5rem;
  }

  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    padding: 0 1.25rem;
  }

  .services-intro,
  .projects-header,
  .projects-grid,
  .services-grid,
  .philosophy-grid,
  .timeline-container,
  .timeline-title,
  .footer-grid,
  .footer-bottom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Hero */
  .hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero-container-overlay {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
    justify-content: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0 auto;
    align-items: center;
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 0.82rem;
  }

  .title-large {
    font-size: 2.5rem;
  }

  .title-medium {
    font-size: 1.85rem;
  }

  .btn {
    min-height: 50px;
    font-size: 0.82rem;
    padding: 0.875rem 1.75rem;
  }

  /* Services */
  .services-minimal-grid {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .service-item-refined {
    padding-top: 1.25rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Swipable Featured Projects Carousel on Mobile */
  #homepage-featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem;
    padding: 0 1.25rem 1.5rem 1.25rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    scrollbar-width: none; /* Firefox */
  }

  #homepage-featured-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  #homepage-featured-grid .project-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .filter-controls {
    gap: 0.4rem;
    width: 100%;
  }

  /* Process */
  .timeline-container {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
  }

  .timeline-node {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Contact */
  .contact-form {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .form-input {
    font-size: 16px; /* prevent iOS zoom */
  }

  textarea.form-input {
    min-height: 90px;
  }

  /* CTA strip */
  .cta-strip-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-strip-actions .btn {
    width: 100%;
  }

  /* Footer */
  .footer-section {
    padding-bottom: 5rem; /* clearance for FAB */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Center footer contents on mobile/tablet */
  .footer-brand,
  .footer-nav,
  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 1.5rem auto;
  }

  .footer-social-link {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-bottom-links {
    gap: 1.5rem;
    justify-content: center;
  }

  /* About */
  .about-experience {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-number {
    font-size: 6rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  /* Philosophy */
  .philosophy-highlight {
    font-size: 1.1rem;
  }

  /* Header */
  .header-container {
    height: 4rem;
    padding: 0 1.25rem;
  }

  .logo-img {
    height: 2.5rem;
  }
}

/* ─────────────────────────────────────────────
   PROJECT DETAIL PAGE
───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   PROJECT DETAIL PAGE (Estately Layout Theme)
───────────────────────────────────────────── */
.details-layout-header {
  padding: 8rem 0 1rem;
  background-color: var(--bone);
  border-bottom: 1px solid transparent;
}

.details-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.3s var(--ease);
}

.details-back-btn:hover {
  color: var(--ink);
}

.details-back-btn .back-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.details-back-btn:hover .back-arrow {
  transform: translateX(-4px);
}

.details-layout-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.details-layout-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.details-main-section {
  padding: 1rem 0 2rem;
  background-color: var(--bone);
}

.details-two-column-grid {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .details-two-column-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.details-main-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(59, 64, 71, 0.04);
  border: 1px solid var(--line-light);
  background-color: var(--paper);
}

@media (max-width: 992px) {
  .details-main-image-container {
    aspect-ratio: 16/10;
    height: auto;
  }
}

.details-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-status-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 6px 20px rgba(59, 64, 71, 0.05);
}

.details-status-tag .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
}

.details-status-tag .status-dot.completed,
.details-status-tag .status-dot.available {
  background-color: #2e7d32;
}

.details-status-tag .status-dot.current {
  background-color: #f59e0b;
}

.details-status-tag .status-dot.sold {
  background-color: #8a909a;
}

.details-status-tag .status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: badge-pulse 2s infinite;
}

.details-status-tag .status-dot.completed::after,
.details-status-tag .status-dot.available::after {
  color: rgba(46, 125, 50, 0.4);
}

.details-status-tag .status-dot.current::after {
  color: rgba(245, 158, 11, 0.45);
}

.details-status-tag .status-dot.sold::after {
  display: none; /* Disable pulse animation for sold houses */
}

.details-sidebar-card {
  background-color: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 12px 35px rgba(59, 64, 71, 0.02);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sidebar-location-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.location-address {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.sidebar-bookmark-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.sidebar-bookmark-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.sidebar-bookmark-btn:hover {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.sidebar-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 1.25rem 0;
  text-align: center;
}

.sidebar-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.spec-lbl {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: lowercase;
  font-weight: 500;
}

.sidebar-price-status {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-price-status .status-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
}

.sidebar-agent-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bone);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
}

.agent-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-img {
  width: 75%;
  height: auto;
  object-fit: contain;
}

.agent-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.agent-role {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.agent-contact-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand);
  color: var(--brand);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.agent-contact-btn:hover {
  background-color: var(--brand);
  color: #ffffff;
}

.sidebar-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s var(--ease);
}

.sidebar-cta-btn:hover {
  background-color: var(--brand);
}

.cta-subtext {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.details-strip-section {
  padding: 0 0 4rem;
  background-color: var(--bone);
}

.details-horizontal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background-color: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(59, 64, 71, 0.01);
}

@media (max-width: 992px) {
  .details-horizontal-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .details-horizontal-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem;
  }
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-item .item-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.strip-item .item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.strip-item .item-lbl {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.strip-item .item-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(59,64,71,0.02);
  border: 1px solid var(--line-light);
  background-color: var(--paper);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 64, 71, 0.12);
  box-shadow: 0 12px 30px rgba(59,64,71,0.05);
}

.gallery-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.03);
}

/* Bento Grid Spans for Desktop (Minimum 5 images in gallery) */
.detail-gallery-grid .gallery-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

.detail-gallery-grid .gallery-item:nth-child(5n+1) .gallery-image-wrapper,
.detail-gallery-grid .gallery-item:nth-child(5n+1) .gallery-image {
  height: 100%;
}

.detail-gallery-grid .gallery-item:nth-child(5n+2) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.detail-gallery-grid .gallery-item:nth-child(5n+3) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.detail-gallery-grid .gallery-item:nth-child(5n+4) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.detail-gallery-grid .gallery-item:nth-child(5n+5) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

@media (max-width: 992px) {
  .detail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .detail-gallery-grid .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
  }
  .detail-gallery-grid .gallery-item:nth-child(5n+1) .gallery-image-wrapper,
  .detail-gallery-grid .gallery-item:nth-child(5n+1) .gallery-image {
    height: 100% !important;
  }
}

@media (max-width: 576px) {
  .detail-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────
   PAGE PRELOADER (Blueprint & SVG Logo Drafting)
───────────────────────────────────────────── */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #242930; /* Deep slate blueprint surface */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: auto;
}

/* Preloader Logo SVG Drawing */
.preloader-logo-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-logo-lines 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-polygon {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-logo-lines 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards, fill-panels 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered blueprint drafting sequence */
.draft-base {
  animation-delay: 0.1s;
  stroke-width: 4px;
}
.draft-v-left {
  animation-delay: 0.25s;
}
.draft-v-accent {
  animation-delay: 0.4s;
}
.draft-h-left {
  animation-delay: 0.55s;
}
.draft-v-mid {
  animation-delay: 0.7s;
}
.draft-v-right {
  animation-delay: 0.8s;
}
.draft-h-right {
  animation-delay: 0.9s;
}
.draft-loop {
  animation-delay: 1.0s;
}

/* Panel drawing and fill effect */
.panel-top {
  animation-delay: 1.1s, 1.8s;
}

.panel-right {
  animation-delay: 1.25s, 1.9s;
}

@keyframes draw-logo-lines {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-panels {
  to {
    fill: #ffffff;
    fill-opacity: 1;
  }
}

/* Logo Text Animation */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: translateY(10px);
  animation: text-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
}

@keyframes text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner and text details */
.preloader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.preloader-spinner {
  width: 3.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
}

.preloader-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: preloader-loading 1.2s infinite linear;
}

@keyframes preloader-loading {
  to { left: 100%; }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.45);
  animation: text-glow 2s infinite ease-in-out;
}

@keyframes text-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

/* ─────────────────────────────────────────────
   GLASSMORPHIC PHOTO LIGHTBOX
───────────────────────────────────────────── */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 28, 33, 0.94); /* Deep rich charcoal overlay */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.75rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ffffff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.25rem;
  padding: 1.5rem;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.3s, transform 0.3s;
}

.lightbox-nav:hover {
  color: #ffffff;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px);
}

.lightbox-next {
  right: 2rem;
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px);
}

.lightbox-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 10002;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.25rem;
  }
  
  .lightbox-nav {
    font-size: 1.75rem;
    padding: 1rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-content {
    max-width: 90%;
  }
  
  .lightbox-caption {
    bottom: 2rem;
    font-size: 0.75rem;
    padding: 0 1rem;
  }
}

/* ─────────────────────────────────────────────
   ARCHITECTURAL GRID BACKGROUNDS
───────────────────────────────────────────── */
.architectural-grid-bg {
  position: relative;
}

.architectural-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(59, 64, 71, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(59, 64, 71, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 64, 71, 0.01) 1px, transparent 1px);
  background-size: 24px 24px, 120px 120px, 120px 120px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
}

.architectural-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   PROCESS ACCORDION TIMELINE (About Page)
───────────────────────────────────────────── */
.process-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.process-accordion-item {
  background-color: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-accordion-item:hover {
  border-color: rgba(59, 64, 71, 0.12);
}

.process-accordion-item.active {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(59, 64, 71, 0.02);
}

.process-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  margin-right: 1.5rem;
  opacity: 0.8;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  flex-grow: 1;
  transition: color 0.3s var(--ease);
}

.process-accordion-item.active .process-step-title {
  color: var(--brand);
}

.process-step-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-icon::before,
.process-step-icon::after {
  content: '';
  position: absolute;
  background-color: var(--brand);
  transition: transform 0.3s var(--ease);
}

.process-step-icon::before {
  width: 100%;
  height: 2px;
}

.process-step-icon::after {
  width: 2px;
  height: 100%;
}

.process-accordion-item.active .process-step-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.process-accordion-item.active .process-step-icon::before {
  transform: rotate(180deg);
}

.process-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-content-inner {
  padding: 0 2rem 1.75rem 4.5rem;
}

.process-content-inner .body-text {
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}
