/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Light Mode (default) — forest green palette */
  --bg-primary: #F5F6F1;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E7ECE4;
  --bg-hero-overlay: rgba(9, 28, 17, 0.62);
  --text-primary: #17241B;
  --text-secondary: #46554A;
  --text-muted: #6F7D72;
  --accent: #3A6148;
  --accent-hover: #2D4E39;
  --accent-light: rgba(58, 97, 72, 0.10);
  --on-accent: #FFFFFF;
  --navy: #22382A;          /* main dark green (kept var name for compatibility) */
  --navy-light: #2B4535;
  --navy-mid: #344C3B;
  --border: #D5DDD2;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
  --nav-bg: rgba(245, 246, 241, 0.92);
  --nav-border: rgba(0,0,0,0.06);
  --input-bg: #FFFFFF;
  --badge-bg: rgba(58, 97, 72, 0.12);
  --badge-text: #2D4E39;
  --overlay-bg: rgba(0,0,0,0.5);
  --footer-bg: #22382A;
  --footer-text: #C9D6CC;
  --section-alt-bg: #E7ECE4;
  --light-green: #A8D5B5;
  --gold: #C48A34;
  --gold-soft: #DDB06A;
}

[data-theme="dark"] {
  --bg-primary: #0A130D;
  --bg-secondary: #101D15;
  --bg-tertiary: #17281D;
  --bg-hero-overlay: rgba(4, 12, 7, 0.7);
  --text-primary: #E4EAE3;
  --text-secondary: #A9B5AB;
  --text-muted: #7D8A80;
  --accent: #8DBF9B;
  --accent-hover: #A5CFB0;
  --accent-light: rgba(141, 191, 155, 0.12);
  --on-accent: #0A1A0F;
  --navy: #0F2216;
  --navy-light: #17301F;
  --navy-mid: #22452E;
  --border: #22392A;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.25);
  --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.4);
  --nav-bg: rgba(10, 19, 13, 0.94);
  --nav-border: rgba(255,255,255,0.06);
  --input-bg: #17281D;
  --badge-bg: rgba(141, 191, 155, 0.15);
  --badge-text: #A5CFB0;
  --overlay-bg: rgba(0,0,0,0.7);
  --footer-bg: #07100A;
  --footer-text: #A9B5AB;
  --section-alt-bg: #101D15;
  --light-green: #A8D5B5;
  --gold: #C48A34;
  --gold-soft: #DDB06A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--text-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand svg { width: 32px; height: 32px; color: var(--accent); }
.nav-brand span {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text-primary); letter-spacing: -0.02em;
  transition: color 0.4s;
}
.nav-brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.3s; position: relative; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
  background: var(--accent); color: var(--on-accent) !important; padding: 10px 22px;
  border-radius: 8px; font-weight: 600; font-size: 0.85rem;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); color: var(--on-accent) !important; }

/* Theme Toggle */
.theme-toggle {
  background: none; border: 2px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: border-color 0.3s, background 0.3s;
  color: var(--text-secondary); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-light); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
/* Light mode: show moon (to switch to dark) */
:root .theme-toggle .icon-moon { display: block; }
:root .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Mobile Menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-primary); padding: 4px;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex;
  align-items: center; overflow: hidden; margin-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bg-hero-overlay);
}
.hero-content {
  position: relative; z-index: 1; max-width: 680px;
  padding: 80px 24px; margin: 0 auto 0 max(24px, calc((100vw - 1200px)/2 + 24px));
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); color: #fff;
  margin-bottom: 20px; font-weight: 700;
}
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.3s ease; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); color: var(--on-accent); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--text-primary); border: 2px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--section-alt-bg); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 12px; font-family: 'Inter', sans-serif;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--bg-secondary); border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--card-shadow); transition: all 0.35s ease;
}
.service-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.service-card-img {
  width: 100%; /* removed */
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-img-wrap { overflow: hidden; }
.service-card-body { padding: 24px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.portfolio-item {
  position: relative; border-radius: 14px; overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,30,17,0.88) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: background 0.3s;
}
.portfolio-overlay h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 600; }
.portfolio-overlay span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Filter Buttons */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--border);
  background: var(--bg-secondary); color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

/* ===== PROPERTY / REAL ESTATE CARDS ===== */
.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px;
}
.property-card {
  background: var(--bg-secondary); border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--card-shadow); transition: all 0.35s;
}
.property-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.property-card-img { width: 100%; height: 240px; object-fit: cover; }
.property-card-body { padding: 24px; }
.property-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.property-specs {
  display: flex; gap: 16px; margin-bottom: 12px;
  color: var(--text-muted); font-size: 0.85rem;
}
.property-specs span { display: flex; align-items: center; gap: 4px; }
.property-badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: var(--badge-bg); color: var(--badge-text);
  font-size: 0.78rem; font-weight: 600;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--accent); font-family: 'Inter', sans-serif;
  line-height: 1;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; }

/* ===== ESTIMATE FORM ===== */
.estimate-section { background: var(--navy); padding: 80px 0; }
.estimate-section h2 { color: #fff; }
.estimate-section p { color: rgba(255,255,255,0.7); }
.estimate-section .section-label { color: var(--accent); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.estimate-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.estimate-info p { margin-bottom: 24px; max-width: 440px; }
.estimate-info ul { list-style: none; }
.estimate-info li {
  color: rgba(255,255,255,0.8); padding: 8px 0;
  font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
}
.estimate-info li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.estimate-form {
  background: var(--navy-light); border-radius: 16px;
  padding: 36px; border: 1px solid rgba(255,255,255,0.06);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.7); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: #fff;
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; margin-top: 8px; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 140px 0 60px; text-align: center;
  background: var(--navy); margin-top: 72px; position: relative;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 14px; overflow: hidden; }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.value-card { text-align: center; padding: 32px 20px; }
.value-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
}
.value-icon svg { width: 24px; height: 24px; color: var(--accent); }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== CONTACT PAGE FORM ===== */
.contact-form-section { padding: 80px 0; }
.contact-form-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-secondary); border-radius: 16px;
  padding: 48px; border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
.contact-form-wrap .form-group label { color: var(--text-secondary); }
.contact-form-wrap .form-group input,
.contact-form-wrap .form-group select,
.contact-form-wrap .form-group textarea {
  background: var(--input-bg); color: var(--text-primary);
  border-color: var(--border);
}
.contact-form-wrap .form-group input:focus,
.contact-form-wrap .form-group select:focus,
.contact-form-wrap .form-group textarea:focus { border-color: var(--accent); }

/* ===== FOOTER ===== */
.footer { background: var(--footer-bg); padding: 60px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand svg { width: 28px; height: 28px; color: var(--accent); }
.footer-brand span { font-weight: 600; color: #fff; font-size: 1rem; }
.footer-brand .dot { color: var(--light-green); }
.footer-about { color: var(--footer-text); font-size: 0.9rem; max-width: 300px; }
.footer h4 {
  color: #fff; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--footer-text); font-size: 0.9rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--light-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center;
  color: var(--footer-text); font-size: 0.82rem;
}

/* ===== PORTFOLIO MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--overlay-bg); display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-secondary); border-radius: 16px;
  max-width: 800px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; display: flex;
  align-items: center; justify-content: center;
}
.modal-img { width: 100%; height: 360px; object-fit: cover; }
.modal-body { padding: 32px; }
.modal-body h2 { margin-bottom: 8px; font-size: 1.5rem; }
.modal-body .property-specs { margin-bottom: 16px; }
.modal-body p { color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--nav-border);
  }
  .menu-toggle { display: block; }
  .estimate-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-content { margin-left: 24px; }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero-content { padding: 60px 20px; }
  .section { padding: 64px 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .estimate-form { padding: 24px; }
  .contact-form-wrap { padding: 28px; }
  .page-header { padding: 120px 0 48px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .nav-inner { height: 62px; }
  .hero { margin-top: 62px; min-height: 75vh; }
  .page-header { margin-top: 62px; padding: 100px 0 36px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-actions { flex-direction: column; }
  .btn { padding: 12px 24px; font-size: 0.9rem; justify-content: center; }
}

/* ===== SCROLL ANIMATIONS ===== */

/* Hero entrance */
.hero-content .section-label,
.hero-content h1,
.hero-content p,
.hero-content .hero-actions {
  opacity: 0; transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
}
.hero-content .section-label { animation-delay: 0.2s; }
.hero-content h1 { animation-delay: 0.4s; }
.hero-content p { animation-delay: 0.6s; }
.hero-content .hero-actions { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero background slow zoom */
.hero-bg {
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Page header — loads instantly, no animation delay */
.page-header .section-label,
.page-header h1,
.page-header p {
  opacity: 1;
  transform: none;
}

/* Scroll reveal elements */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.visible > * {
  opacity: 1; transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.reveal-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Scale up */
.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Counter animation for stats */
.stat-num { transition: all 0.6s ease; }

/* Smooth card hover with depth */
.service-card { transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card:hover { transform: translateY(-8px) scale(1.01); }

.portfolio-item { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover { transform: scale(1.02); }
.portfolio-item:hover img { transform: scale(1.1); }

.property-card { transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.property-card:hover { transform: translateY(-8px); }

/* Navbar transition */
.navbar {
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}

/* Modal animation */
.modal-overlay { transition: opacity 0.3s ease; }
.modal-overlay.active .modal-content {
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* Address Overlay & Grid */
.address-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff; font-weight: 600; font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
}
.service-card-img-wrap { position: relative; }
/* Home services grid: 1 column on phones, 3+2 layout on larger screens */
.wide-grid { grid-template-columns: 1fr; }
@media (min-width: 769px) {
  .wide-grid { grid-template-columns: repeat(6, 1fr); }
  .wide-grid > * { grid-column: span 2; }
  .wide-grid > *:nth-child(-n+2) { grid-column: span 3; }
}
.portfolio-overlay .addr { font-size: 1.3rem; margin-bottom: 0; }

/* Slider Modal */
.slider-modal { padding: 0; max-width: 900px; background: #000; overflow: hidden; border-radius: 8px;}
.slider-container { position: relative; width: 100%; height: 75vh; display: flex; align-items: center; justify-content: center; }
.slider-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slider-btn { 
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none; 
  font-size: 2rem; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.slider-btn:hover { background: var(--accent); }
.prev-btn { left: 16px; }
.next-btn { right: 16px; }
.slider-caption {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(0,0,0,0.7); color: #fff; padding: 8px 16px;
  border-radius: 4px; font-weight: 500; font-family: 'Inter', sans-serif;
}

.nav-links a.nav-market { color: var(--accent); border: 1px solid var(--accent); padding: 4px 12px; border-radius: 4px; }
.nav-links a.nav-market:hover { background: var(--accent-light); }
.service-card-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }



/* Labels sitting on dark-green or photo backgrounds */
.hero .section-label, .page-header .section-label { color: var(--gold-soft); }

/* Brand wordmark */
.nav-brand .dot, .footer-brand .dot { font-weight: 500; }


/* ===== ESTIMATE FORM EXTRAS ===== */
.form-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-group .req { color: var(--accent); }
.choice-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 10px;
  padding: 4px; background: var(--input-bg); gap: 4px; flex-wrap: wrap;
}
.choice-toggle input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.contact-form-wrap .choice-toggle label {
  margin: 0; padding: 10px 20px; border-radius: 7px; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary); transition: background 0.2s, color 0.2s;
}
.choice-toggle input:checked + label { background: var(--accent); color: var(--on-accent); }
.choice-toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.call-time-group[hidden] { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; font-size: 0.95rem; }
.form-status.is-ok { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent); }
.form-status.is-error { background: rgba(200, 60, 50, 0.08); color: #B3392F; border: 1px solid rgba(200, 60, 50, 0.4); }
[data-theme="dark"] .form-status.is-error { color: #F08C83; }
.contact-form-wrap .form-group input[aria-invalid="true"] { border-color: #C9473C; }
.dev-notice {
  background: var(--accent); color: var(--on-accent); text-align: center;
  padding: 12px 20px; font-weight: 600; font-size: 0.9rem;
  position: relative; z-index: 100; margin-top: 72px;
}
@media (max-width: 480px) { .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; font-size: 0.95rem; }
.form-status.is-ok { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent); }
.form-status.is-error { background: rgba(200, 60, 50, 0.08); color: #B3392F; border: 1px solid rgba(200, 60, 50, 0.4); }
[data-theme="dark"] .form-status.is-error { color: #F08C83; }
.contact-form-wrap .form-group input[aria-invalid="true"] { border-color: #C9473C; }
.dev-notice { margin-top: 62px; } .choice-toggle { display: flex; } .contact-form-wrap .choice-toggle label { flex: 1; text-align: center; } }


/* ===== LOGO ===== */
.nav-brand { gap: 12px; }
.logo-mark { height: 44px; width: auto; display: block; }
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }
.nav-brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .wm-name {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: 1.32rem; letter-spacing: -0.01em; color: #344C3B;
}
.nav-brand .wm-sub {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.42em; text-transform: uppercase; color: #344C3B; margin-top: 5px;
}
[data-theme="dark"] .nav-brand .wm-name, [data-theme="dark"] .nav-brand .wm-sub { color: #F0E9DE; }
.footer-logo { width: 280px; max-width: 100%; height: auto; }
.footer-brand { margin-bottom: 18px; }
@media (max-width: 480px) {
  .logo-mark { height: 38px; }
  .nav-brand .wm-name { font-size: 1.12rem; }
  .nav-brand .wm-sub { font-size: 0.55rem; letter-spacing: 0.36em; }
}

/* ===== PORTFOLIO SHOWCASE ===== */
.showcase-section { padding-top: 72px; }
.pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pf-img-alt { opacity: 0; }
[data-folder]:hover .pf-img-alt, [data-folder]:focus-visible .pf-img-alt { opacity: 1; }
[data-folder]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pf-num {
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; font-weight: 600;
  color: #fff; letter-spacing: 0.04em; text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.pf-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--gold); color: #1B1408; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 14px; border-radius: 50px;
}

.pf-featured {
  display: grid; grid-template-columns: 1.55fr 1fr; cursor: pointer;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 28px;
}
.pf-featured .pf-media { position: relative; min-height: 500px; overflow: hidden; }
.pf-info { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.pf-info h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 6px; }
.pf-city { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.pf-specs { font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }
.pf-blurb { color: var(--text-secondary); margin-bottom: 28px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.pf-tile { position: relative; overflow: hidden; border-radius: 16px; cursor: pointer; height: 420px; background: var(--bg-tertiary); }
.pf-tile.span-8 { grid-column: span 8; height: 480px; }
.pf-tile.span-4 { grid-column: span 4; height: 480px; }
.pf-grid > .pf-tile:nth-child(3), .pf-grid > .pf-tile:nth-child(4), .pf-grid > .pf-tile:nth-child(5) { height: 380px; }
.pf-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 24, 16, 0.85) 0%, rgba(12, 24, 16, 0.25) 42%, transparent 65%);
}
.pf-meta { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; color: #fff; }
.pf-meta h3 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; font-weight: 600; margin-bottom: 2px; }
.pf-meta p { color: rgba(255,255,255,0.78); font-size: 0.88rem; }
.pf-cta {
  display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--gold-soft);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.pf-tile:hover .pf-cta, .pf-tile:focus-visible .pf-cta { opacity: 1; transform: translateY(0); }
.portfolio-overlay span { color: var(--gold-soft); font-weight: 600; font-size: 0.85rem; margin-top: 4px; }

@media (max-width: 992px) {
  .pf-featured { grid-template-columns: 1fr; }
  .pf-featured .pf-media { min-height: 380px; }
  .pf-info { padding: 32px 28px; }
  .pf-grid > .pf-tile:nth-child(n) { grid-column: span 6; height: 320px; }
  .pf-grid > .pf-tile:first-child { grid-column: span 12; height: 420px; }
}
@media (max-width: 640px) {
  .showcase-section { padding-top: 40px; }
  .pf-featured .pf-media { min-height: 280px; }
  .pf-info { padding: 26px 22px; }
  .pf-grid { gap: 16px; }
  .pf-tile, .pf-tile.span-4, .pf-tile.span-8, .pf-grid > .pf-tile:nth-child(n) { grid-column: span 12; height: 300px; }
  .pf-cta { opacity: 1; transform: none; }
  .pf-actions .btn { width: 100%; justify-content: center; }
}
@media (hover: none) { .pf-cta { opacity: 1; transform: none; } }

/* ===== LISTING (Currently on the Market) ===== */
.listing-hero { padding: 120px 0 0; margin-top: 0; }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.listing-head h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 10px 0 2px; }
.listing-city { color: var(--text-muted); }
.listing-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 50px;
  background: rgba(196, 138, 52, 0.14); color: #8A5A16; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
[data-theme="dark"] .listing-status { color: var(--gold-soft); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(196,138,52,0.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(196,138,52,0.55); } 70% { box-shadow: 0 0 0 10px rgba(196,138,52,0); } 100% { box-shadow: 0 0 0 0 rgba(196,138,52,0); } }
.listing-price { text-align: right; }
.listing-price span { display: block; color: var(--text-muted); font-size: 0.85rem; }
.listing-price strong { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--text-primary); }

.listing-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 10px;
  border-radius: 18px; overflow: hidden; cursor: pointer;
}
.listing-gallery > div { position: relative; overflow: hidden; background: var(--bg-tertiary); }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.listing-gallery > div:hover img { transform: scale(1.05); }
.lg-main { grid-row: span 2; }
.lg-more span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 28, 19, 0.55); color: #fff; font-weight: 600; letter-spacing: 0.02em;
}
.listing-facts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 26px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-secondary);
}
.listing-facts > div { padding: 20px; text-align: center; border-right: 1px solid var(--border); }
.listing-facts > div:last-child { border-right: none; }
.listing-facts strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; color: var(--text-primary); }
.listing-facts span { color: var(--text-muted); font-size: 0.82rem; }

.listing-body { padding-top: 56px; }
.listing-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.listing-h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; margin: 40px 0 14px; }
.listing-main > p { color: var(--text-secondary); }
.backup-note {
  border-left: 4px solid var(--gold); background: var(--bg-secondary); border-radius: 0 14px 14px 0;
  padding: 22px 26px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.backup-note h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; margin-bottom: 6px; }
.backup-note p { color: var(--text-secondary); font-size: 0.95rem; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.feature-chips span { padding: 7px 14px; border-radius: 50px; background: var(--accent-light); color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.floor-list { display: grid; gap: 14px; }
.floor { padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-secondary); }
.floor h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.floor p { color: var(--text-secondary); font-size: 0.93rem; }
.listing-side { position: sticky; top: 96px; }
.side-card { border: 1px solid var(--border); border-radius: 16px; padding: 26px; background: var(--bg-secondary); box-shadow: var(--card-shadow); }
.side-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.side-status { font-weight: 600; margin: 4px 0 16px; }
.side-card dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.side-card dt { color: var(--text-muted); }
.side-card dd { font-weight: 600; color: var(--text-primary); text-align: right; }
.side-btn { width: 100%; justify-content: center; margin-top: 12px; }
.side-card dl { margin-bottom: 8px; }

@media (max-width: 992px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-side { position: static; }
  .listing-facts { grid-template-columns: repeat(3, 1fr); }
  .listing-facts > div:nth-child(3) { border-right: none; }
  .listing-facts > div:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .listing-hero { padding-top: 96px; }
  .listing-price { text-align: left; }
  .listing-status { font-size: 0.72rem; border-radius: 12px; padding: 8px 12px; }
  .listing-head { margin-bottom: 18px; }
  .listing-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; }
  .lg-main { grid-column: span 2; grid-row: auto; }
  .listing-gallery .lg-thumb:nth-of-type(3), .listing-gallery .lg-thumb:nth-of-type(4) { display: none; }
  .listing-facts { grid-template-columns: 1fr 1fr; }
  .listing-facts > div { border-right: none; border-bottom: 1px solid var(--border); }
  .listing-facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .listing-facts > div:last-child { grid-column: span 2; border-bottom: none; border-right: none; }
}

/* ===== PROJECT GALLERY — FULL SCREEN ===== */
html.gv-locked, html.gv-locked body { overflow: hidden; }
.gv {
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed; inset: 0; z-index: 10000; background: #070A08; color: #fff; overflow: hidden;
  visibility: hidden; clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--ease), visibility 0s linear 0.9s;
  font-family: 'Inter', sans-serif; user-select: none; -webkit-user-select: none;
}
.gv.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease); }
.gv.is-closing { clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease); }

/* slides: full-bleed, no zoom — transitions vary (slide, wipe, split, page turn) */
.gv-slides { position: absolute; inset: 0; cursor: pointer; perspective: 2400px; }
.gv-slide { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 0); transform: none; backface-visibility: hidden; z-index: 1; }
.gv-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 1s var(--ease); }
.gv-slide.is-current { z-index: 2; }
.gv-slide.is-contain { background: #070A08; }
.gv-slide.is-contain img { position: relative; z-index: 1; object-fit: contain; padding: 90px 6vw 130px; }
.gv-backdrop { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(40px) brightness(0.4) saturate(1.1); }
@media (max-width: 768px) { .gv-slide.is-contain img { padding: 110px 0 150px; } }
.gv-slide.anim { transition: transform 1s var(--ease), clip-path 1s var(--ease), opacity 0.6s ease; }
.gv-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55)); opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }

/* entering states */
.gv-slide.e-slide-x.d1 { transform: translateX(100%); }
.gv-slide.e-slide-x.d0 { transform: translateX(-100%); }
.gv-slide.e-slide-y.d1 { transform: translateY(100%); }
.gv-slide.e-slide-y.d0 { transform: translateY(-100%); }
.gv-slide.e-reveal-x.d1 { clip-path: inset(0 0 0 100%); }
.gv-slide.e-reveal-x.d0 { clip-path: inset(0 100% 0 0); }
.gv-slide.e-reveal-y.d1 { clip-path: inset(100% 0 0 0); }
.gv-slide.e-reveal-y.d0 { clip-path: inset(0 0 100% 0); }
.gv-slide.e-split { clip-path: inset(0 50% 0 50%); }
.gv-slide.e-fade { opacity: 0; }
.gv-slide.e-page.d0 { transform-origin: left center; transform: rotateY(-100deg); z-index: 3; }
.gv-slide.e-page.d0::after { opacity: 1; }
.gv-slide.e-page.d1 { z-index: 1; }

/* leaving states */
.gv-slide.l-slide-x.d1 { transform: translateX(-35%); }
.gv-slide.l-slide-x.d0 { transform: translateX(35%); }
.gv-slide.l-slide-y.d1 { transform: translateY(-35%); }
.gv-slide.l-slide-y.d0 { transform: translateY(35%); }
.gv-slide.leaving img { filter: brightness(0.45); }
.gv-slide.l-page.d1 { transform-origin: left center; transform: rotateY(-100deg); z-index: 3; }
.gv-slide.l-page.d1::after { opacity: 1; }
.gv-slide.l-page.d1 img { filter: brightness(0.8); }
.gv-slide.l-page.d0 { z-index: 1; }
.gv-slide.e-page.d0.is-current { transform: none; }
.gv-slide.e-page.d0.is-current::after { opacity: 0; }

.gv-shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5,8,6,0.55) 0%, rgba(5,8,6,0) 18%),
    linear-gradient(to top, rgba(5,8,6,0.7) 0%, rgba(5,8,6,0.25) 22%, rgba(5,8,6,0) 40%);
}

/* intro title card */
.gv-intro {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #070A08; text-align: center; padding: 24px; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
.gv.is-intro .gv-intro { opacity: 1; transition: none; }
.gv-intro-kicker { font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; opacity: 0; }
.gv-intro-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.02em; }
.gv-intro-city { margin-top: 18px; color: rgba(255,255,255,0.6); font-size: 0.95rem; letter-spacing: 0.04em; opacity: 0; }
.gv-iw, .gv-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.gv-iw > span, .gv-w > span { display: inline-block; transform: translateY(110%); }
.gv.is-intro .gv-iw > span { animation: gvRise 0.9s var(--ease-out) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
.gv.is-intro .gv-intro-kicker { animation: gvFade 0.6s ease 0.15s forwards; }
.gv.is-intro .gv-intro-city { animation: gvFade 0.6s ease 0.6s forwards; }
@keyframes gvRise { to { transform: translateY(0); } }
@keyframes gvFade { to { opacity: 1; } }

/* header */
.gv-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 56px); opacity: 0; transform: translateY(-12px); transition: opacity 0.6s ease 0.2s, transform 0.8s var(--ease-out) 0.2s;
}
.gv.is-ready .gv-head { opacity: 1; transform: none; }
.gv-proj { display: flex; align-items: baseline; gap: 14px; }
.gv-proj-addr { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.gv-proj-city { font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.gv-close {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: none; color: #fff; cursor: pointer;
  font: 600 0.75rem 'Inter', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; padding: 10px 0;
}
.gv-close svg { width: 30px; height: 30px; padding: 6px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; transition: transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s; }
.gv-close:hover svg { transform: rotate(90deg); border-color: var(--gold-soft); background: rgba(221,176,106,0.15); }
.gv-close:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }

/* caption block: animated */
.gv-text { position: absolute; z-index: 5; left: clamp(20px, 4vw, 56px); bottom: clamp(64px, 8vh, 96px); max-width: min(900px, 70vw); pointer-events: none; }
.gv-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: #fff; font-size: clamp(2.4rem, 6.2vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.gv-text.is-in .gv-w > span { animation: gvRise 0.9s var(--ease-out) forwards; animation-delay: calc(0.3s + var(--i) * 0.07s); }
/* big counter, right side */
.gv-counter { position: absolute; z-index: 5; right: clamp(20px, 4vw, 56px); bottom: clamp(64px, 8vh, 96px); display: flex; align-items: flex-end; gap: 10px; font-family: 'Fraunces', Georgia, serif; pointer-events: none; }
.gv-c-cur { position: relative; height: clamp(3.2rem, 6vw, 5.4rem); width: 2.1ch; overflow: hidden; font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1; font-weight: 600; }
.gv-c-cur span { position: absolute; left: 0; bottom: 0; transition: transform 0.8s var(--ease-out); }
.gv-c-cur span.is-entering { transform: translateY(105%); transition: none; }
.gv-c-cur span.is-leaving { transform: translateY(-105%); }
.gv-c-tot { font-size: 1rem; color: rgba(255,255,255,0.6); padding-bottom: 0.6em; font-family: 'Inter', sans-serif; letter-spacing: 0.08em; }

/* arrows */
.gv-arrows { position: absolute; z-index: 5; right: clamp(20px, 4vw, 56px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity 0.6s ease 0.4s; }
.gv.is-ready .gv-arrows { opacity: 1; }
.gv-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(10,14,11,0.25); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); backdrop-filter: blur(4px); }
.gv-arrow svg { width: 22px; height: 22px; }
.gv-arrow:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #1B1408; transform: scale(1.06); }
.gv-arrow:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* story-style progress bars */
.gv-bars { position: absolute; z-index: 5; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(26px, 4vh, 40px); display: flex; gap: 6px; opacity: 0; transition: opacity 0.6s ease 0.5s; }
.gv.is-ready .gv-bars { opacity: 1; }
.gv-bar { flex: 1; height: 14px; padding: 6px 0; background: none; border: none; cursor: pointer; }
.gv-bar span { display: block; height: 2px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.gv-bar span::after { content: ''; position: absolute; inset: 0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.gv-bar.is-done span::after, .gv-bar.is-active span::after { transform: scaleX(1); }
.gv-bar.is-done span::after { background: rgba(255,255,255,0.75); }
.gv-bar:hover span { background: rgba(255,255,255,0.5); }


@media (max-width: 768px) {
  .gv-head { padding: 18px 18px; }
  .gv-proj { flex-direction: column; gap: 2px; }
  .gv-proj-addr { font-size: 1rem; }
  .gv-close span { display: none; }
  .gv-arrows { display: none; }
  .gv-text { left: 18px; right: 18px; max-width: none; bottom: 96px; }
  .gv-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .gv-counter { right: 18px; bottom: auto; top: 76px; }
  .gv-c-cur { font-size: 2.4rem; height: 2.4rem; }
  .gv-c-tot { font-size: 0.8rem; }
  .gv-bars { left: 18px; right: 18px; bottom: 44px; gap: 4px; }
  .gv-shade { background: linear-gradient(to bottom, rgba(5,8,6,0.6) 0%, rgba(5,8,6,0) 22%), linear-gradient(to top, rgba(5,8,6,0.85) 0%, rgba(5,8,6,0.4) 32%, rgba(5,8,6,0) 55%); }
}
@media (prefers-reduced-motion: reduce) {
  .gv, .gv.is-open, .gv.is-closing { clip-path: none; transition: opacity 0.2s; }
  .gv-slide, .gv-slide.is-current { clip-path: none !important; transition: opacity 0.3s !important; }
  .gv-w > span, .gv-iw > span { transform: none !important; animation: none !important; }
}

/* ===== NEW CONTENT SECTIONS ===== */
.stat-num.stat-word { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.approach-step { padding: 32px 28px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border); }
.approach-num { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.approach-step h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; margin-bottom: 8px; }
.approach-step p { color: var(--text-secondary); font-size: 0.95rem; }

.portfolio-item { aspect-ratio: 4/3; }
.portfolio-overlay span { display: block; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  position: relative; margin: 0; padding: 34px 30px 28px; border-radius: 16px;
  background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  display: flex; flex-direction: column;
}
.t-mark { width: 30px; height: 22px; color: var(--gold); margin-bottom: 16px; }
.testimonial blockquote { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; line-height: 1.55; color: var(--text-primary); flex: 1; margin-bottom: 20px; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.testimonial figcaption strong { color: var(--text-primary); }
.testimonial figcaption span { color: var(--text-muted); }
.testimonial.is-placeholder { border-style: dashed; }
.testimonial.is-placeholder blockquote { color: var(--text-muted); font-style: italic; }
.t-sample {
  position: absolute; top: 16px; right: 16px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 50px; background: var(--bg-tertiary); color: var(--text-muted);
}

.cta-band { background: var(--navy); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner > div { flex: 1 1 520px; }
.cta-band h2 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: none; }
.cta-band .nowrap { white-space: nowrap; }
[data-theme="dark"] .cta-band .btn-primary { background: var(--gold-soft); color: #1B1408; }

.process-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.process-list li { padding: 28px 26px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border); }
.process-list span { font-family: 'Fraunces', Georgia, serif; color: var(--gold); font-size: 1.6rem; display: block; margin-bottom: 10px; }
.process-list h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.process-list p { color: var(--text-secondary); font-size: 0.93rem; }

.form-privacy { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.footer-bottom a { color: var(--footer-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 992px) {
  .approach-grid, .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .process-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .process-list { grid-template-columns: 1fr; }
  .cta-inner .btn { width: 100%; justify-content: center; }
  .stats-bar[style] { grid-template-columns: 1fr !important; gap: 28px; padding: 32px 0; }
}

/* ===== LEGAL PAGE ===== */
.legal { max-width: 760px; }
.legal h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { list-style: disc; padding-left: 22px; margin: 8px 0 12px; }
.legal li { margin-bottom: 4px; }
.legal-date { font-size: 0.88rem; color: var(--text-muted); }

/* Services page: first card (Full Remodeling) spans two columns so the grid has no gaps */
@media (min-width: 769px) {
  .services-feature { grid-template-columns: repeat(2, 1fr); }
  .services-feature > .service-card:first-child { grid-column: span 2; }
  .services-feature > .service-card:first-child .service-card-img { aspect-ratio: 21 / 9; }
}
@media (min-width: 993px) {
  .services-feature { grid-template-columns: repeat(3, 1fr); }
  .services-feature > .service-card:first-child { display: grid; grid-template-columns: 1.35fr 1fr; }
  .services-feature > .service-card:first-child .service-card-img-wrap { height: 100%; }
  .services-feature > .service-card:first-child .service-card-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .services-feature > .service-card:first-child .service-card-body { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
  .services-feature > .service-card:first-child h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; margin-bottom: 12px; }
  .services-feature > .service-card:first-child p { font-size: 1rem; }
}
