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

:root {
  --bg-primary: #0d1f1a;
  --bg-card: #142218;
  --bg-surface: #1a2e24;
  --text-primary: #f0f0ee;
  --text-muted: #9ea89c;
  --gold: #c9a84c;
  --gold-light: #e2c270;
  --border: #1f3329;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  min-width: 390px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1100px) {
  .container {
    padding: 0 40px;
  }
}

/* Navigation */
nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  font-size: 1.5rem;
  color: var(--gold);
}

.nav-links {
  display: none;
}

.nav-phone-container {
  display: none;
  align-items: center;
  gap: 15px;
}

.nav-phone {
  color: var(--gold);
  font-weight: 600;
}

.whatsapp-nav-btn {
  background-color: #25D366;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

@media (hover: hover) {
  .whatsapp-nav-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  background-color: var(--bg-surface);
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 500;
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
  }

  .nav-links a {
    font-weight: 500;
    position: relative;
  }

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

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

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

  .nav-phone-container {
    display: flex;
  }

  .nav-phone {
    display: block;
  }

  .hamburger {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--gold-light);
  }
}

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

@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--gold);
    color: #000;
  }
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 60px auto;
  max-width: 600px;
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--gold);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-legal {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 20px !important;
  line-height: 1.6;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 10px;
  display: block;
}

.footer-col ul {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 51, 41, 0.5);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1400') no-repeat center center/cover;
}

@media (min-width: 1100px) {
  .hero {
    height: 100vh;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 31, 26, 0.72);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin-bottom: 10px;
}

.hero .tagline {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  color: var(--gold);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero .subtext {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-btns {
    flex-direction: row;
  }
}

/* Sections General */
section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header .subheading {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.2rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 31, 26, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

@media (hover: hover) {
  .category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(13, 31, 26, 0.7), transparent);
  }
  .category-card:hover {
    transform: translateY(-5px);
  }
}

.category-card h3 {
  color: #fff;
  font-size: 1.8rem;
}

.category-card .price {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Why 2EZY */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 32px;
  border-top: 2px solid var(--gold);
}

.feature-card h3 {
  margin-bottom: 16px;
  color: var(--gold);
}

/* Rent to Own Banner */
.banner {
  background-color: var(--bg-surface);
  padding: 80px 0;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1100px) {
  .banner-content {
    flex-direction: row;
  }
}

.banner-text {
  flex: 1;
}

.banner-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.banner-text p {
  margin-bottom: 30px;
}

.banner-img {
  flex: 0 0 40%;
  display: none;
}

@media (min-width: 1100px) {
  .banner-img {
    display: block;
  }
}

/* Suburbs */
.suburbs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pill {
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Blog Teaser */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card img {
  width: 100%;
  height: 200px;
  border-radius: 6px 6px 0 0;
}

.blog-card-content {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Filter Bar */
.filter-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--gold);
  padding: 20px 0;
  position: sticky;
  top: 80px;
  z-index: 900;
}

.filter-controls {
  display: none;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

@media (min-width: 1100px) {
  .filter-controls {
    display: flex;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

select {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
}

select:focus {
  border-color: var(--gold);
}

.clear-filters {
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
}

.mobile-filter-toggle {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--gold);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

@media (min-width: 1100px) {
  .mobile-filter-toggle {
    display: none;
  }
}

/* Car Grid */
.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-card-img {
  position: relative;
  aspect-ratio: 16/9;
}

.car-card-img.booked img, .car-card-img.sold img {
  opacity: 0.6;
}

.status-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background-color: var(--gold);
  color: #000;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.status-ribbon.booked {
  background-color: #666;
  color: #fff;
}

.status-ribbon.sold {
  background-color: #d32f2f;
  color: #fff;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 0 0;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-available {
  background-color: #2e7d32;
  color: #fff;
}

.badge-reserved {
  background-color: var(--bg-surface);
  color: var(--text-muted);
}

.car-card-body {
  padding: 20px;
}

.car-card-body .category-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  border-radius: 4px;
  margin-bottom: 10px;
}

.car-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.car-specs {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.car-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-price-line {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.rto-tag {
  display: inline-block;
  background-color: var(--gold);
  color: #000;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
}

.results-count {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.contact-left h3 {
  margin-bottom: 10px;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

@media (min-width: 1100px) {
  .whatsapp-float {
    display: none;
  }
}

@media (hover: hover) {
  .whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
  }
}

.email-display {
  color: var(--gold);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 20px;
}

.hours-list {
  list-style: none;
  margin-top: 20px;
}

.hours-list li {
  margin-bottom: 8px;
}

/* Blog Page */
.blog-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 40px;
  scrollbar-width: none;
}

.blog-filters::-webkit-scrollbar {
  display: none;
}

.blog-filter-pill {
  white-space: nowrap;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
}

.blog-filter-pill.active {
  background-color: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
