/* ==========================================================================
   LA ESTENSE - Design System
   Premium Real Estate Platform
   "Non tutto è online" - consulenze immobiliari dal 1977
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Brand Red Theme (from brochure) */
  --color-primary: #E4302C;
  --color-primary-dark: #C41E1A;
  --color-primary-light: #FF5652;

  --color-dark: #1a1a1a;
  --color-dark-lighter: #2d2d2d;
  --color-dark-card: #242424;

  --color-light: #f8f9fa;
  --color-light-gray: #e9ecef;
  --color-muted: #6c757d;

  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;

  /* Typography - Raleway matches the brochure style */
  --font-primary: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */

/* WhatsApp icons - Official green color */
.bi-whatsapp {
  color: #25D366 !important;
}

/* Facebook icons - Official blue color */
.bi-facebook {
  color: #1877F2 !important;
}

/* Instagram icons - Gradient effect */
.bi-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Raleway:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&family=Satisfy&display=swap');

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: var(--space-lg);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  margin-top: var(--space-md);
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}


/* --- Arnaldo Chat Widget --- */
.arnaldo-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  font-family: 'Inter', sans-serif;
}

.arnaldo-toggle {
  background: white;
  border: none;
  border-radius: 50px;
  padding: 8px 20px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arnaldo-toggle:hover {
  transform: scale(1.05);
}

.arnaldo-avatar {
  position: relative;
  width: 50px;
  height: 50px;
}

.arnaldo-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #2ecc71;
  border: 2px solid white;
  border-radius: 50%;
}

.arnaldo-label {
  font-weight: 600;
  color: var(--color-dark);
}

.arnaldo-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.arnaldo-widget.closed .arnaldo-window {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  visibility: hidden;
}

.arnaldo-header {
  background: linear-gradient(135deg, var(--color-primary), #8a6d2b);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arnaldo-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  margin-bottom: 5px;
}

.message.system {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
}

.message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.message.system .message-content {
  background: white;
  color: var(--color-dark);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.message-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 4px;
  margin-left: 2px;
}

.message.user .message-time {
  text-align: right;
  margin-right: 2px;
}

.arnaldo-input-area {
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
}

.arnaldo-input-area .input-group {
  background: #f1f3f5;
  border-radius: 25px;
  padding: 5px;
}

.arnaldo-input-area input:focus {
  box-shadow: none;
  background: transparent;
}

.arnaldo-input-area input {
  background: transparent;
  padding-left: 15px;
}

/* Typing Indicator */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: white;
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Mobile responsive */
@media (max-width: 576px) {
  .arnaldo-window {
    width: calc(100vw - 40px);
    height: 60vh;
    bottom: 70px;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn:focus,
.btn:active:focus {
  box-shadow: 0 0 0 3px rgba(201, 160, 50, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--color-dark);
  border: none;
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-dark-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-gold {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-premium {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-lighter) 100%);
  color: #fff;
}

.card-premium .card-title {
  color: #fff;
}

.card-premium .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.property-card .card-img-top {
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .card-img-top {
  transform: scale(1.05);
}

.property-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.property-card .price-tag {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.property-card .roi-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero Fullscreen - Exactly like laestense.it
   -------------------------------------------------------------------------- */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  /* Full viewport minus navbar, shows teaser below */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Keep image centered */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand {
  text-align: center;
  color: #fff;
}

.hero-logo-img {
  max-width: 700px;
  width: 85vw;
  height: auto;
  filter: drop-shadow(2px 2px 25px rgba(0, 0, 0, 0.8));
  opacity: 0.95;
}

.hero-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-logo-text .brand-la {
  color: var(--color-primary);
}

.hero-logo-text .brand-estense {
  color: #fff;
}

.hero-tagline-text .accent-red {
  color: var(--color-primary);
}

.hero-tagline-text {
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0.5rem 0;
  color: #fff;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-since-text {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  text-transform: lowercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-fullscreen {
    height: calc(100vh - 100px);
  }

  .hero-bg-image {
    object-position: center 60%;
    /* Show more of the square on mobile */
  }
}

/* Legacy hero-image-section styles kept for compatibility */
.hero-image-section {
  position: relative;
  width: 100%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-centered {
  text-align: center;
  color: #fff;
}

.hero-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0;
}

.hero-logo .brand-red {
  color: var(--color-primary);
}

.hero-tagline {
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: normal !important;
  margin: var(--space-sm) 0;
  transform: none !important;
}

.hero-since {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin: 0;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Content Section Below Hero */
.hero-content-section {
  background: var(--color-light);
  padding: var(--space-xl) 0;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-bar .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stats-bar .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Legacy Hero (for other pages) */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, #0a0a0a 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity var(--transition-slow);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-xxl) 0;
}

.section-dark {
  background: var(--color-dark);
  color: #fff;
}

.section-light {
  background: var(--color-light);
}

.section-gradient {
  background: linear-gradient(180deg, #fff 0%, var(--color-light) 100%);
}

/* --------------------------------------------------------------------------
   Feature Cards / Services
   -------------------------------------------------------------------------- */
.feature-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0a0a0a 100%);
  padding: var(--space-xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: #fff;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark) !important;
  letter-spacing: -0.02em;
}

.navbar-brand .brand-red {
  color: var(--color-primary);
  font-weight: 800;
}

.navbar-brand .brand-accent {
  color: var(--color-dark);
  font-weight: 700;
}

.navbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-dark .nav-link:hover {
  color: var(--color-primary) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-brand .brand-red {
  color: var(--color-primary);
}

.footer-brand .brand-accent {
  color: #fff;
}

.footer-tagline {
  font-family: 'Satisfy', cursive;
  font-style: normal !important;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transform: none !important;
}

.footer-since {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-heading {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-control {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 160, 50, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.bg-gold {
  background-color: var(--color-primary) !important;
}

.bg-dark-gradient {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0a0a0a 100%);
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.overlay-dark>* {
  position: relative;
  z-index: 2;
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .display-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-logo {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .stats-bar {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stat-value {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero-logo {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-since {
    font-size: 0.75rem;
  }

  .hero-image-wrapper {
    max-height: 60vh;
  }

  .hero-main-image {
    max-height: 60vh;
  }

  .stats-bar {
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .stats-bar .stat-value {
    font-size: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item-inline {
    flex: 1;
    min-width: 80px;
  }
}

/* ==========================================================================
   PREMIUM MOBILE EXPERIENCE - iPhone / Samsung Optimization
   ========================================================================== */

/* Mobile Menu - Full Screen Elegant Overlay */
@media (max-width: 991.98px) {

  /* Hamburger button styling */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* Fullscreen mobile menu */
  .navbar-collapse {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    padding: 80px 30px 40px;
    display: flex !important;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
  }

  .navbar-collapse.collapsing {
    opacity: 0;
    visibility: visible;
    transition: opacity 0.2s ease;
  }

  /* Close button for mobile menu - real button */
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-dark);
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 0;
    line-height: 1;
  }

  .mobile-menu-close:hover {
    color: var(--color-primary);
  }

  /* Mobile nav links */
  .navbar-nav {
    flex-direction: column !important;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    padding: 1.25rem 0 !important;
    text-align: center;
    color: var(--color-dark) !important;
    display: block;
    transition: color 0.2s ease;
  }

  /* Hide icons in mobile menu for perfect alignment */
  .navbar-nav .nav-link i {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:active {
    color: var(--color-primary) !important;
  }

  /* Mobile CTA buttons - perfectly centered */
  .navbar-nav .btn,
  .navbar-nav .btn-outline-primary,
  .navbar-nav .btn-outline-danger {
    margin: 0.5rem auto !important;
    display: block !important;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-align: center;
  }

  /* LABS link - center it perfectly */
  .navbar-nav .nav-item.ms-lg-3 {
    margin-left: 0 !important;
  }

  .navbar-nav .nav-item .btn-outline-danger {
    background: transparent !important;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
  }
}

/* Touch-Friendly Elements */
@media (max-width: 768px) {

  /* Minimum touch target size (44px Apple HIG) */
  .btn,
  .nav-link,
  a[role="button"],
  button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Larger buttons on mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 320px;
  }

  /* Hero adjustments for mobile */
  .hero-fullscreen {
    height: calc(100vh - 70px);
    height: calc(100svh - 70px);
    /* Small viewport height for mobile browsers */
  }

  .hero-logo-img {
    max-width: 90vw;
    padding: 0 1rem;
  }

  /* Better typography on mobile */
  .display-1 {
    font-size: 2.5rem !important;
  }

  .display-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.5rem !important;
  }

  h1,
  .h1 {
    font-size: 1.75rem;
  }

  h2,
  .h2 {
    font-size: 1.5rem;
  }

  h3,
  .h3 {
    font-size: 1.25rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  /* Cards - full width on mobile */
  .property-card {
    margin-bottom: 1.5rem;
  }

  .property-card .card-img-top {
    height: 200px;
  }

  /* Spacing adjustments */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .py-lg-6 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Philosophy section */
  blockquote.display-5 {
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
  }

  /* Three pillars - stack nicely */
  .col-md-4.border-end {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .col-md-4:last-child {
    border-bottom: none !important;
  }

  /* Footer mobile optimization - Steve Jobs level centering */
  .footer {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .footer .row>div {
    margin-bottom: 2rem;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-links {
    text-align: center;
    padding-left: 0;
    list-style: none;
  }

  .footer-links li {
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Arnaldo widget on mobile */
  .arnaldo-widget {
    bottom: 15px;
    right: 15px;
  }

  .arnaldo-toggle {
    padding: 6px 16px 6px 6px;
  }

  .arnaldo-avatar {
    width: 44px;
    height: 44px;
  }

  .arnaldo-window {
    width: calc(100vw - 30px);
    height: 70vh;
    bottom: 70px;
    right: -5px;
  }
}

/* iPhone Safe Area (notch support) */
@supports (padding: max(0px)) {
  .navbar {
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  }

  .arnaldo-widget {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Better image rendering */
  img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Small phones (iPhone SE, etc) */
@media (max-width: 375px) {
  .hero-logo-img {
    max-width: 95vw;
  }

  .display-2 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.25rem !important;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   House Builder Scroll Animation - Apple Minimal Style
   -------------------------------------------------------------------------- */

.house-builder-section {
  height: 200vh;
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
}

.house-builder-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.house-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 3rem;
}

.house-part {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.house-text {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.house-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.house-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -1px;
}

.house-year {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-primary);
  margin: 0.5rem 0 0 0;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .house-builder-section {
    height: 150vh;
  }

  .house-svg {
    max-width: 280px;
  }

  .house-tagline {
    font-size: 1.75rem;
  }

  .house-year {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Cookie Consent Banner - GDPR Compliant
   ========================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1000px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-text {
  color: white;
  flex: 1;
  min-width: 300px;
}

.cookie-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--color-primary-light);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-cookie-reject:hover {
  border-color: white;
  color: white;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cookie-text {
    min-width: unset;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie-accept,
  .btn-cookie-reject {
    width: 100%;
  }
}