/* ==============================================
   VELOX LIVING — MAIN STYLESHEET
   Design system, globals, landing page sections
   ============================================== */

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

/* ── CSS Custom Properties ── */
:root {
  --color-navy:       #001F3F;
  --color-navy-light: #002D5A;
  --color-green:      #228B22;
  --color-green-dark: #1a6b1a;
  --color-slate:      #4A5568;
  --color-slate-light:#718096;
  --color-offwhite:   #F8F9FA;
  --color-white:      #FFFFFF;
  --color-border:     #E2E8F0;
  --color-overlay:    rgba(0, 31, 63, 0.65);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);

  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  --max-width: 1200px;
  --section-pad: 96px 0;
  --section-pad-sm: 64px 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { line-height: 1.75; }

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: var(--section-pad); }
.section-pad-sm { padding: var(--section-pad-sm); }

.text-center { text-align: center; }
.text-navy { color: var(--color-navy); }
.text-green { color: var(--color-green); }
.text-slate { color: var(--color-slate); }

.bg-offwhite { background: var(--color-offwhite); }
.bg-navy { background: var(--color-navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
}
.btn-primary:hover {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
  border: 2px solid var(--color-green);
}
.btn-green:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline-navy:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ── Section Labels ── */
.section-header {
  margin-bottom: 56px;
}
.section-header.centered { text-align: center; }
.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--color-slate-light);
  max-width: 560px;
}
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-green);
  margin: 16px 0;
  border-radius: 2px;
}
.centered .divider { margin: 16px auto; }

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

#navbar.transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  padding-top: 10px;
}

#navbar.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background var(--transition);
}

#navbar.scrolled .nav-logo {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-logo img {
  display: block;
  height: 60px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.25));
  transition: filter var(--transition);
}

#navbar.scrolled .nav-logo img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.12));
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
  line-height: 1;
  white-space: nowrap;
}

#navbar.scrolled .nav-logo-text {
  color: var(--color-navy);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-green);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a {
  color: var(--color-slate);
}
#navbar.scrolled .nav-links a:hover {
  color: var(--color-navy);
}

/* Language Switcher – Dropdown */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--color-white);
  transition: background var(--transition-fast);
  line-height: 0;
}

.lang-trigger:hover,
.lang-switcher.open .lang-trigger {
  background: rgba(255,255,255,0.15);
}

#navbar.scrolled .lang-trigger {
  color: var(--color-navy);
}

#navbar.scrolled .lang-trigger:hover,
#navbar.scrolled .lang-switcher.open .lang-trigger {
  background: var(--color-offwhite);
}

.lang-chevron {
  display: block;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  overflow: hidden;
  min-width: 80px;
}

.lang-switcher.open .lang-menu {
  display: block;
}

.flag-icon {
  width: 22px;
  height: auto;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.lang-trigger .flag-icon {
  width: 24px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-navy);
  transition: background var(--transition-fast);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.lang-btn:hover {
  background: var(--color-offwhite);
}

.lang-btn.active {
  background: var(--color-offwhite);
  font-weight: 600;
  color: var(--color-green);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

#navbar.scrolled .nav-hamburger span {
  background: var(--color-navy);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 1000;
  flex-direction: column;
  gap: 16px;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.drawer-lang {
  display: flex;
  padding-top: 8px;
  gap: 8px;
}

.drawer-lang .lang-btn {
  width: auto;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  color: inherit;
}

.drawer-lang .flag-icon {
  width: 28px;
}

.drawer-lang .lang-btn.active,
.drawer-lang .lang-btn:hover {
  background: var(--color-offwhite);
  border-color: var(--color-green);
}

/* ==============================================
   HERO SECTION
   ============================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/house.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 0 80px;
  animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .eyebrow {
  color: var(--color-green);
  opacity: 0.9;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.15;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==============================================
   SERVICES GRID (2x2)
   ============================================== */
#services {
  padding: var(--section-pad);
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-green);
}

.service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(34,139,34,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-body h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-body p {
  font-size: 0.93rem;
  color: var(--color-slate-light);
  line-height: 1.65;
}

/* ==============================================
   TRUST BAR (Languages)
   ============================================== */
#trust-bar {
  background: var(--color-navy);
  padding: 56px 0;
}

.trust-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.trust-bar-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  letter-spacing: 0.02em;
}

.trust-bar-tagline strong {
  color: var(--color-white);
}

.trust-langs {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-lang .flag-icon {
  width: 28px;
  height: auto;
  border-radius: 3px;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* ==============================================
   WHY VELOX LIVING SECTION
   ============================================== */
#why-velox {
  padding: var(--section-pad);
  background: var(--color-offwhite);
}

.why-velox-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-velox-content .section-header {
  margin-bottom: 36px;
}

.why-velox-content .section-header p {
  max-width: 480px;
}

.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.trust-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.bullet-icon svg {
  width: 20px;
  height: 20px;
}

.bullet-text h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--color-navy);
}

.bullet-text p {
  font-size: 0.88rem;
  color: var(--color-slate-light);
}

.why-velox-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-navy);
  box-shadow: var(--shadow-lg);
}

.why-velox-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.why-velox-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(0,31,63,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.badge-text {
  color: var(--color-white);
}

.badge-text strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.badge-text span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ==============================================
   FOOTER
   ============================================== */
#footer {
  background: var(--color-navy);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 10px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-green);
  color: var(--color-white);
  background: var(--color-green);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-col ul a:hover { color: var(--color-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-green);
}

.footer-contact-item a:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================================
   FLOATING WHATSAPP BUTTON
   ============================================== */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

#whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* ==============================================
   RESPONSIVE — LANDING PAGE
   ============================================== */
@media (max-width: 1024px) {
  :root { --max-width: 960px; }

  .why-velox-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
    --section-pad-sm: 48px 0;
  }

  /* Nav */
  .nav-links { display: none; }
  #navbar .lang-switcher { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-content { padding: 100px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

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

  /* Trust */
  .trust-langs { gap: 24px; }
  .trust-divider { display: none; }

  /* Why Velox */
  .why-velox-inner { grid-template-columns: 1fr; }
  .why-velox-image { aspect-ratio: 16/9; order: -1; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-content h1 { font-size: 1.85rem; }

  .service-card { flex-direction: column; gap: 12px; }

  #whatsapp-float { bottom: 20px; right: 20px; }
}
