/* ============================================
   Davis Mecaj — Real Estate Agent Website
   ============================================ */

:root {
  --primary-dark: #0a1628;
  --navy-mid: #1a3a5c;
  --blue-accent: #2d6da8;
  --light-blue: #4d9de0;
  --light-bg: #f8fafc;
  --text-dark: #0a1628;
  --text-muted: #4a5568;
  --border-light: #e2e8f0;
  --footer-dark: #060e1a;
  --stats-bg: #0d1f35;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--primary-dark);
  padding: 12px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

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

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy-mid) 60%, var(--blue-accent) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 157, 224, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

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

.btn-primary {
  padding: 14px 32px;
  background: var(--blue-accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #3580be;
  transform: translateY(-1px);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.hero-image {
  flex: 0 0 320px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---- STATS BAR ---- */
.stats {
  background: var(--stats-bg);
  padding: 24px 60px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(45, 109, 168, 0.3);
  border-bottom: 1px solid rgba(45, 109, 168, 0.3);
}

.stat {
  text-align: center;
}

.stat-number {
  color: var(--light-blue);
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- SECTION COMMONS ---- */
.section {
  padding: 60px 60px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--blue-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* ---- ABOUT ---- */
.about {
  background: var(--light-bg);
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-image {
  flex: 0 0 280px;
}

.about-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-badge {
  font-size: 13px;
  color: var(--blue-accent);
  font-weight: 600;
}

/* ---- SERVICES ---- */
.services {
  background: var(--primary-dark);
  color: white;
}

.services .section-label {
  color: var(--light-blue);
}

.services .section-title {
  color: white;
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(77, 157, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  opacity: 0.6;
  line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  background: var(--light-bg);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---- CONTACT ---- */
.contact {
  background: linear-gradient(135deg, var(--primary-dark), var(--navy-mid));
  color: white;
  display: flex;
  gap: 48px;
}

.contact .section-label {
  color: var(--light-blue);
}

.contact .section-title {
  color: white;
}

.contact-info {
  flex: 1;
}

.contact-description {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 14px;
}

.contact-detail svg {
  flex-shrink: 0;
}

.contact-form-wrapper {
  flex: 1;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue-accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit:hover {
  background: #3580be;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--footer-dark);
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MOBILE NAV OVERLAY ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 40px 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-image {
    flex: 0 0 260px;
  }

  .hero-image img {
    height: 340px;
  }

  .section {
    padding: 60px 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    flex: none;
    width: 220px;
    order: -1;
    margin-bottom: 32px;
  }

  .hero-image img {
    height: 280px;
    width: 220px;
  }

  .stats {
    padding: 24px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat {
    flex: 0 0 45%;
  }

  .section {
    padding: 48px 24px;
  }

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

  .about-image {
    flex: none;
    width: 220px;
  }

  .about-image img {
    height: 280px;
    width: 220px;
    margin: 0 auto;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    text-align: center;
  }
}
