/* Core Styling Rules - Dark Elegant Law Theme */
:root {
  --primary-dark: #111111;
  --secondary-dark: #1c1c1c;
  --accent-gold: #c5a059;
  --accent-gold-hover: #e0b86c;
  --text-light: #f4f4f4;
  --text-muted: #a0a0a0;
  --border-color: #333333;
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Bar */
.top-bar {
  background-color: #080808;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info span {
  margin-right: 15px;
}

/* Navbar */
.navbar {
  background-color: var(--secondary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-gold);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.brand-logo img {
  max-height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

.btn-nav {
  border: 1px solid var(--accent-gold);
  padding: 6px 16px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 75vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.hero-bg {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg.active {
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(17,17,17,0.7) 0%, rgba(17,17,17,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 25px auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: bold;
  margin: 5px;
}

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

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

/* Overview Cards */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.card {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* About & Sections */
section {
  padding: 70px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  color: var(--accent-gold);
}

.gold-divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 10px auto;
}

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

.about-image img {
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--accent-gold);
}

/* Practice & Services */
.practice-grid, .community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.practice-item, .community-card {
  background: var(--secondary-dark);
  padding: 25px;
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
}

.practice-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.services-section {
  background: var(--secondary-dark);
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.service-chip {
  background: var(--primary-dark);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
}

/* Courts List */
.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.courts-grid ul {
  list-style: none;
}

.courts-grid li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.additional-forums {
  margin-top: 30px;
  background: var(--secondary-dark);
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

/* Contact CTAs */
.contact-cta-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cta-box {
  background: var(--secondary-dark);
  border: 1px solid var(--accent-gold);
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.cta-box.whatsapp {
  border-color: #25d366;
}

.map-container {
  border: 2px solid var(--accent-gold);
  border-radius: 6px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: #080808;
  padding: 50px 0 20px 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.attribution {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; left: 0;
    background: var(--secondary-dark);
    padding: 20px 0;
  }
  .nav-links.open { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
}