/* ===== CSS Reset & Variables ===== */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --secondary: #c9a962;
  --accent: #e8d5a3;
  --background: #faf9f7;
  --foreground: #1a1a1a;
  --muted: #6b7280;
  --muted-foreground: #9ca3af;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  position: relative;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background-color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&h=1080&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--secondary);
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero .btn-primary {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.hero .btn-primary:hover {
  background-color: var(--accent);
}

.hero .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.hero .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
  text-align: center;
  color: #ffffff;
}

.stat-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Services Section ===== */
.services {
  padding: 100px 0;
  background-color: var(--background);
}

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

.service-card {
  background-color: var(--card);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--secondary);
}

.badge-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.about-content .section-subtitle {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

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

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--foreground);
}

.about-features svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* ===== Properties Section ===== */
.properties {
  padding: 100px 0;
  background-color: var(--background);
}

.properties-category {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  margin-top: 50px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
}

.properties-category:first-of-type {
  margin-top: 0;
}

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

.property-card {
  background-color: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.property-tag.sale {
  background-color: #2563eb;
}

.property-tag.rent {
  background-color: #059669;
}

.property-content {
  padding: 24px;
}

.property-content h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.property-details {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.property-details span {
  font-size: 13px;
  color: var(--muted);
}

.property-price {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.properties-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 100px 0;
  background-color: var(--primary);
}

.testimonials .section-subtitle {
  color: var(--accent);
}

.testimonials .section-title {
  color: #ffffff;
}

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

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-rating svg {
  color: var(--secondary);
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
}

.author-title {
  font-size: 14px;
  color: var(--accent);
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info .section-subtitle {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-description {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-text a,
.contact-text address {
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}

.contact-text a:hover {
  color: var(--primary);
}

.business-hours h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
}

.business-hours ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-hours li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.business-hours li span:last-child {
  font-weight: 500;
  color: var(--foreground);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
  background-color: var(--card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

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

.contact-form .btn {
  grid-column: span 2;
  margin-top: 10px;
}

/* ===== Map Section ===== */
.map-section {
  width: 100%;
  height: 400px;
  filter: grayscale(20%);
}

.map-section iframe {
  width: 100%;
  height: 100%;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-dark);
  padding: 80px 0 0;
  color: #ffffff;
}

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

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-icon {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.footer-links h4,
.footer-contact h4 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-contact svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-4px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .services-grid,
  .properties-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-badge {
    position: static;
    display: inline-block;
    margin-top: 20px;
  }

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .contact-form .btn {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}
