/* Keylan Homes - Real Estate Website */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #b8860b;
  --accent-light: #d4a84b;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: var(--dark);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--gray);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

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

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,41,59,0.82) 100%),
    url("/images/hero.jpg") center/cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184,134,11,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Search box */
.search-box {
  background: var(--white);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
  border: 1px solid var(--border);
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-row input,
.search-row select {
  flex: 1;
  min-width: 140px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.search-row input:focus,
.search-row select:focus {
  outline: none;
  border-color: var(--primary);
}

.search-row .btn { flex: 0 0 auto; }

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray);
}

/* Featured Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  border-color: transparent;
}

.card-img {
  aspect-ratio: 16/10;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.card-body { padding: 1.25rem; }

.card-price {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.card-address {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray);
}

/* About section */
.about-section {
  background: var(--light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1rem; color: var(--primary); }

.about-text p { margin-bottom: 1rem; color: var(--gray); }

.about-img {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: var(--white);
}

.testimonials .section-title h2 { color: var(--white); }
.testimonials .section-title p { color: rgba(255,255,255,0.8); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-section .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-section .btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer p, .footer a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-header p { opacity: 0.9; font-size: 1.05rem; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.map-placeholder {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Services page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p { color: var(--gray); }

/* Property detail */
.property-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.property-gallery {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}

.property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-details h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.property-details .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.property-details .meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray);
}

.property-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.amenity-tag {
  background: var(--light);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Listings page filters */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filters select,
.filters input {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.open { display: flex; }
  
  .about-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .property-hero {
    grid-template-columns: 1fr;
  }
}
