/* ============================================
   Ricardo Valadez — Laredo Real Estate
   Teal + Slate Grey | Confident Corporate
   ============================================ */

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

:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 50px -12px rgba(15, 23, 42, 0.18);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
address { font-style: normal; }

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

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 20px;
}

.text-center { text-align: center; }
.text-teal { color: var(--teal-600); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border: 2px solid var(--slate-200);
}
.btn-outline:hover {
  border-color: var(--teal-400);
  color: var(--teal-700);
  background: var(--teal-50);
}

.btn-white {
  background: #fff;
  color: var(--teal-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--slate-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--slate-800);
}
.logo svg { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-500);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--teal-600); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-50) 0%, var(--teal-50) 50%, var(--slate-100) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: var(--teal-700);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

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

/* ---- Floating Stat Cards ---- */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 400px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-card--1 { animation: floatA 4s ease-in-out infinite; }
.stat-card--2 { animation: floatB 4.5s ease-in-out infinite; animation-delay: 0.5s; }
.stat-card--3 { animation: floatA 5s ease-in-out infinite; animation-delay: 1s; }
.stat-card--4 { animation: floatB 4s ease-in-out infinite; animation-delay: 1.5s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
}

.stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.3;
}

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--slate-100); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about-image {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--teal-200);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-content { max-width: 520px; }
.about-features {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--slate-700);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
}
.service-card:hover .service-icon svg { stroke: #fff; }

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ---------- AREAS ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.area-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.area-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}
.area-card:hover img { transform: scale(1.08); }
.area-card:hover .area-overlay {
  background: linear-gradient(to top, rgba(13, 148, 136, 0.85) 0%, rgba(13, 148, 136, 0.2) 100%);
}

.area-name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.area-overlay p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--slate-200);
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-quote {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 36px;
  height: 36px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--teal-100);
  color: var(--teal-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-800);
}
.author-detail {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-top: 2px;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--slate-900);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(45, 212, 191, 0.15) 0%, transparent 50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.0625rem;
  color: var(--slate-400);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  margin: 36px 0;
  display: grid;
  gap: 24px;
}

.contact-item { display: contents; }
.contact-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 4px;
}
.contact-item dd {
  font-size: 1rem;
  color: var(--slate-800);
  line-height: 1.6;
}
.contact-item a {
  color: var(--teal-600);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--teal-700); text-decoration: underline; }

.contact-map {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---- Form ---- */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-top: 16px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--slate-800);
}

.logo-light { color: #fff; margin-bottom: 16px; }
.logo-light .logo-text { color: #fff; }

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-200);
  margin-bottom: 20px;
}

.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  font-size: 0.9375rem;
  color: var(--slate-400);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-400); }

.footer-address {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.footer-address a {
  color: var(--teal-400);
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--teal-300); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--slate-500);
}
.footer-legal { color: var(--slate-600); }

/* ---------- MOBILE NAV OVERLAY ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    font-size: 1.25rem;
    color: var(--slate-700);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
