/* ========================================
   GREEN IMMOBILIER - CSS PURE
   ======================================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F5F1EB;
  color: #0F2E25;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ========================================
   VARIABLES
   ======================================== */
:root {
  --forest: #1B4D3E;
  --forest-dark: #0F2E25;
  --forest-light: #2A6B56;
  --teal: #0D9488;
  --teal-dark: #0B7A74;
  --sand: #F5F1EB;
  --warmgrey: #6B6560;
  --lightgrey: #E8E4DE;
  --gold: #D4A853;
  --white: #FFFFFF;
  --radius-card: 16px;
  --radius-button: 8px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.12);
}

/* ========================================
   UTILITIES
   ======================================== */
.content-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 6rem 0; }
.label-text {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--teal);
}
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; background: var(--forest); color: white;
  font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-button);
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border: 1.5px solid var(--forest); color: var(--forest);
  font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-button);
  background: transparent; transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--forest); color: white; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); color: white; font-weight: 600;
  font-size: 0.875rem; border-radius: var(--radius-button);
  transition: all 0.3s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Card shadow */
.card-shadow { box-shadow: var(--shadow-card); }
.card-shadow-hover { box-shadow: var(--shadow-card-hover); }

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 80px; transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo .logo-main { font-size: 1.25rem; font-weight: 700; transition: color 0.3s; }
.logo .logo-sub { font-size: 0.875rem; font-weight: 400; transition: color 0.3s; }

.navbar.scrolled .logo-main { color: var(--forest); }
.navbar.scrolled .logo-sub { color: var(--warmgrey); }
.navbar:not(.scrolled) .logo-main { color: white; }
.navbar:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.8); }

.nav-links {
  display: none; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; transition: color 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--forest); }
.navbar:not(.scrolled) .nav-links a { color: white; }
.nav-links a:hover, .nav-links a.active { color: var(--teal) !important; }

.nav-right { display: none; align-items: center; gap: 0.75rem; }
.nav-phone {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.navbar.scrolled .nav-phone { background: var(--forest); color: white; }
.navbar:not(.scrolled) .nav-phone { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); color: white; }

/* Mobile menu */
.mobile-btn { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.navbar.scrolled .mobile-btn { color: var(--forest); }
.navbar:not(.scrolled) .mobile-btn { color: white; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0; opacity: 0;
}
.mobile-menu.open { max-height: 500px; opacity: 1; }
.mobile-menu a {
  display: block; padding: 0.875rem 1.5rem; color: var(--forest-dark);
  font-weight: 500; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--sand); }

@media (min-width: 1024px) {
  .nav-links, .nav-right { display: flex; }
  .mobile-btn { display: none !important; }
  .mobile-menu { display: none; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/villa-ottawa.jpg') center/cover;
  transform: scale(1.1);
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1.1) translate(0, 0); }
  100% { transform: scale(1.2) translate(-2%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(15,46,37,0.6), rgba(15,46,37,0.3));
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 1rem; padding-top: 5rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 1s 0.3s ease forwards;
}
.hero-content .subtitle {
  font-size: 1.125rem; color: rgba(255,255,255,0.9);
  max-width: 500px; margin: 1rem auto 0;
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 1s 0.5s ease forwards;
}
.hero-content .desc {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  max-width: 560px; margin: 0.75rem auto 0;
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 1s 0.6s ease forwards;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.8s 0.7s ease forwards;
}

/* Search bar */
.search-bar {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  width: 92%; max-width: 900px; z-index: 10;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-radius: 20px; padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-glass);
  opacity: 0; transform: translateY(50px);
  animation: fadeInUp 0.8s 0.9s ease forwards;
}
.search-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.search-tab {
  padding: 0.625rem 1.5rem; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 500; color: var(--warmgrey);
  transition: all 0.3s; cursor: pointer;
}
.search-tab:hover { color: var(--forest); }
.search-tab.active { background: var(--forest); color: white; }
.search-fields {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
}
@media (max-width: 1024px) {
  .search-fields { grid-template-columns: repeat(2, 1fr); }
  .search-fields .btn-primary { grid-column: span 2; }
}
@media (max-width: 640px) {
  .search-fields { grid-template-columns: 1fr; }
  .search-fields .btn-primary { grid-column: span 1; }
  .hero { min-height: auto; padding-bottom: 2rem; }
  .search-bar { position: relative; bottom: auto; left: auto; transform: none; margin: 2rem auto 0; }
}

.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--lightgrey); border-radius: var(--radius-button);
  font-size: 0.875rem; color: var(--forest-dark); background: white;
  outline: none; transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--teal); }
select.form-input { appearance: none; cursor: pointer; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center;
}
.scroll-indicator span { font-size: 0.625rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.scroll-indicator svg {
  color: rgba(255,255,255,0.6); width: 28px; height: 28px;
  animation: bounceSlow 2s ease-in-out infinite;
}
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================
   PROPERTY CARD
   ======================================== */
.property-card {
  background: white; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: all 0.4s ease; cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.property-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card-hover);
}
.property-card .card-image {
  position: relative; overflow: hidden; height: 220px;
}
.property-card .card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .card-image img { transform: scale(1.05); }
.property-card .badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.375rem 0.875rem; border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: white;
}
.badge-vente { background: var(--forest); }
.badge-coup { background: var(--gold); }
.badge-loc { background: var(--teal); }
.property-card .price-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 2rem 1rem 0.75rem;
}
.property-card .price-overlay span { color: white; font-weight: 700; font-size: 1.125rem; }
.property-card .card-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.property-card .card-body h3 {
  font-size: 1.125rem; color: var(--forest-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.property-card .location { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; color: var(--warmgrey); font-size: 0.875rem; }
.property-card .location svg { color: var(--teal); width: 15px; height: 15px; flex-shrink: 0; }
.property-card .specs {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--lightgrey);
}
.property-card .specs span { display: flex; align-items: center; gap: 0.375rem; color: var(--warmgrey); font-size: 0.75rem; }
.property-card .specs svg { width: 15px; height: 15px; }

/* Featured card */
.featured-card .card-image { height: 260px; }

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--forest-dark); margin-top: 0.5rem; }
.section-header p { color: var(--warmgrey); margin-top: 0.5rem; }
.section-header-flex {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-header-flex h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--forest-dark); margin-top: 0.5rem; }
.section-header-flex p { color: var(--warmgrey); margin-top: 0.5rem; }
.link-arrow {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--forest); transition: color 0.3s;
}
.link-arrow:hover { color: var(--teal); }
.link-arrow svg { transition: transform 0.3s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ========================================
   HORIZONTAL SCROLL
   ======================================== */
.h-scroll { position: relative; }
.h-scroll-track {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 1.5rem 1rem;
  padding-left: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
}
.h-scroll-track > * { scroll-snap-align: start; flex-shrink: 0; }
.h-scroll-fade {
  position: absolute; right: 0; top: 0; bottom: 1rem; width: 80px;
  background: linear-gradient(to right, transparent, white); pointer-events: none;
}
.h-scroll-nav {
  display: flex; align-items: center; gap: 0.75rem;
}
.h-scroll-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lightgrey);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest); transition: all 0.3s;
}
.h-scroll-nav button:hover { background: var(--forest); color: white; }

/* ========================================
   STATS
   ======================================== */
.stat-box {
  background: white; border-radius: var(--radius-card); padding: 1.5rem;
  box-shadow: var(--shadow-card); text-align: center;
}
.stat-box .stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--forest); }
.stat-box p { color: var(--warmgrey); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.5rem; }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section { background: var(--forest-dark); color: white; padding: 6rem 0; }
.testimonial-slide { text-align: center; transition: opacity 0.4s ease; }
.testimonial-slide blockquote {
  font-family: 'Playfair Display', serif; font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic; line-height: 1.5; color: rgba(255,255,255,0.95); max-width: 700px; margin: 0 auto;
}
.testimonial-author { margin-top: 2rem; }
.testimonial-author img {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--teal);
  object-fit: cover; margin: 0 auto;
}
.testimonial-author .name { font-weight: 600; margin-top: 0.75rem; }
.testimonial-author .role { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.testimonial-dots button {
  height: 10px; border-radius: 5px; background: rgba(255,255,255,0.3);
  transition: all 0.3s; cursor: pointer;
}
.testimonial-dots button.active { background: var(--teal); width: 32px; }
.testimonial-dots button:not(.active) { width: 10px; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  position: relative; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cta-banner .cta-bg {
  position: absolute; inset: 0;
  background: url('../images/villa-houston.jpg') center/cover;
}
.cta-banner .cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,46,37,0.8), rgba(15,46,37,0.7), rgba(15,46,37,0.8));
}
.cta-banner .cta-content { position: relative; z-index: 2; text-align: center; padding: 5rem 1.5rem; }
.cta-banner h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: white; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-top: 1rem; max-width: 600px; margin-inline: auto; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--forest-dark); color: white; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.footer h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.3s; }
.footer ul li a:hover { color: white; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 1rem; }
.footer-contact svg { color: var(--teal); flex-shrink: 0; margin-top: 0.125rem; }

.socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.3s;
}
.socials a:hover { color: white; background: rgba(255,255,255,0.2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 1.25rem 1.5rem;
  color: rgba(255,255,255,0.4); font-size: 0.875rem;
}

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */
.page-hero {
  position: relative; padding-top: 8rem; padding-bottom: 4rem;
  background: var(--forest-dark); overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; opacity: 0.25; object-fit: cover; width: 100%; height: 100%;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,46,37,0.7), var(--forest-dark)); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: white; margin-top: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; max-width: 600px; }

/* ========================================
   FILTERS BAR
   ======================================== */
.filters-bar {
  position: sticky; top: 80px; z-index: 40;
  background: white; border-bottom: 1px solid var(--lightgrey);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.filters-inner {
  max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.filter-search { position: relative; flex: 1; min-width: 200px; }
.filter-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--warmgrey); width: 18px; height: 18px; }
.filter-search input { padding-left: 2.5rem; }
.filter-view { display: flex; gap: 0.25rem; margin-left: auto; }
.filter-view button {
  width: 36px; height: 36px; border-radius: var(--radius-button);
  display: flex; align-items: center; justify-content: center;
  color: var(--warmgrey); transition: all 0.3s;
}
.filter-view button.active { background: var(--forest); color: white; }
.filter-view button:not(.active):hover { color: var(--forest); }

/* ========================================
   GRID & LIST VIEWS
   ======================================== */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 > a,
.h-scroll-track > a { display: flex; flex-direction: column; height: 100%; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* List view item */
.list-item {
  background: white; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: all 0.4s ease;
}
.list-item:hover { box-shadow: var(--shadow-card-hover); }
@media (min-width: 640px) { .list-item { flex-direction: row; } }
.list-item .list-img { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; }
@media (min-width: 640px) { .list-item .list-img { width: 280px; height: auto; } }
.list-item .list-img img { width: 100%; height: 100%; object-fit: cover; }
.list-item .list-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.list-item .list-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--lightgrey); }
.list-item .list-footer span { font-size: 0.875rem; color: var(--warmgrey); }
.list-item .list-footer .price { margin-left: auto; font-size: 1.25rem; font-weight: 700; color: var(--forest); font-family: 'Playfair Display', serif; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination button {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500; transition: all 0.3s;
}
.pagination button.active { background: var(--forest); color: white; }
.pagination button:not(.active) { background: white; color: var(--warmgrey); }
.pagination button:not(.active):hover { color: var(--forest); }

/* ========================================
   TESTIMONIAL CARD
   ======================================== */
.testimonial-card {
  background: white; border-radius: var(--radius-card); padding: 1.5rem;
  box-shadow: var(--shadow-card); transition: all 0.4s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-card-hover); }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.stars svg { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); }
.quote-icon { color: var(--teal); opacity: 0.3; width: 24px; height: 24px; }
.testimonial-card blockquote { font-family: 'Playfair Display', serif; font-style: italic; color: var(--forest-dark); line-height: 1.6; font-size: 0.9375rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--lightgrey); }
.testimonial-card .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }

/* Stats banner */
.stats-banner { background: var(--teal); padding: 2.5rem 0; }
.stats-banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .stats-banner-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-banner-grid .num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: white; }
.stats-banner-grid p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-top: 0.25rem; }

/* ========================================
   VALUE CARD
   ======================================== */
.value-card {
  background: white; border-radius: var(--radius-card); padding: 2rem;
  box-shadow: var(--shadow-card); text-align: center; transition: all 0.4s ease;
}
.value-card:hover { box-shadow: var(--shadow-card-hover); }
.value-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(27,77,62,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.value-card .icon-wrap svg { color: var(--forest); width: 26px; height: 26px; }
.value-card h3 { font-size: 1.25rem; color: var(--forest-dark); margin-top: 1.25rem; }
.value-card p { color: var(--warmgrey); font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.6; }

/* ========================================
   TEAM CARD
   ======================================== */
.team-card { text-align: center; }
.team-card .team-img {
  width: 140px; height: 140px; margin: 0 auto; border-radius: 50%;
  overflow: hidden; border: 4px solid var(--lightgrey); transition: border-color 0.3s;
}
.team-card:hover .team-img { border-color: var(--teal); }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.125rem; color: var(--forest-dark); margin-top: 1rem; }
.team-card p { color: var(--warmgrey); font-size: 0.875rem; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-info-card {
  background: white; border-radius: var(--radius-card); padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-info-item .icon-wrap {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(27,77,62,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item svg { color: var(--forest); width: 18px; height: 18px; }
.contact-info-item .label { font-weight: 500; color: var(--forest-dark); font-size: 0.875rem; }
.contact-info-item .value { color: var(--warmgrey); font-size: 0.875rem; }

.contact-form-card {
  background: white; border-radius: var(--radius-card); padding: 2rem;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--forest-dark); margin-bottom: 0.25rem; }
.form-group textarea { resize: vertical; min-height: 120px; }

.map-frame { width: 100%; height: 250px; border: 0; border-radius: var(--radius-card); }

/* Success message */
.success-msg { text-align: center; padding: 4rem 2rem; }
.success-msg .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: rgba(13,148,136,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.success-msg svg { color: var(--teal); width: 32px; height: 32px; }

/* ========================================
   DETAIL BIEN - GALLERY
   ======================================== */
.gallery-main { position: relative; height: 55vh; overflow: hidden; cursor: pointer; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main .hint {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.8); font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: var(--radius-pill);
}
.gallery-thumbs { background: var(--forest-dark); padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.gallery-thumbs-inner { display: flex; gap: 0.75rem; overflow-x: auto; }
.gallery-thumbs button { flex-shrink: 0; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: all 0.3s; padding: 0; }
.gallery-thumbs button.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.3); }
.gallery-thumbs button:not(.active) { opacity: 0.5; }
.gallery-thumbs button:not(.active):hover { opacity: 0.8; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid button { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; padding: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid button:hover img { transform: scale(1.1); }
.gallery-grid button::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; }
.gallery-grid button:hover::after { background: rgba(0,0,0,0.15); }

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox .lb-close {
  position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,0.1); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s; z-index: 10;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.2); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s; z-index: 10;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-counter {
  position: absolute; bottom: 6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.875rem;
}
.lightbox .lb-thumbs {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; max-width: 90vw; overflow-x: auto;
}
.lightbox .lb-thumbs button {
  width: 60px; height: 40px; border-radius: 4px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3); padding: 0; flex-shrink: 0;
  transition: border-color 0.3s;
}
.lightbox .lb-thumbs button.active { border-color: var(--teal); }
.lightbox .lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section-padding { padding: 4rem 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-banner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 55% 45%; } }

.two-col-reverse { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .two-col-reverse { grid-template-columns: 1.5fr 1fr; } }

/* Sticky sidebar */
.sticky-sidebar { position: sticky; top: 100px; }
