/* ==========================================================================
   RR DEVELOPERS - OM RESIDENCY STYLESHEET
   (Standalone CSS compiled from Tailwind & Custom Template Classes)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  --primary: #1a202c;        /* Deep Charcoal Navy Header/Footer */
  --primary-dark: #0f172a;   /* Slate 900 Top Bar */
  --accent: #d97706;         /* Warm Golden Amber / Construction Accent */
  --accent-hover: #b45309;   /* Darker Amber Hover */
  --bg-light: #f8fafc;       /* Light Slate 50 Page Background */
  --bg-card: #ffffff;        /* White Card Background */
  --bg-highlight: #fffbebf5; /* Soft Amber Light Tint */
  --text-dark: #1e293b;      /* Slate 800 Main Body Text */
  --text-muted: #64748b;     /* Slate 500 Secondary Text */
  --border-color: #e2e8f0;   /* Slate 200 Border Line */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

body {
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Structure */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   3. Top Bar Component
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar i {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. Main Navigation Header
   -------------------------------------------------------------------------- */
.navbar {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 2px;
  object-fit: contain;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.btn-nav-call {
  background-color: var(--accent);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-nav-call:hover {
  background-color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   5. Hero Image Slider Carousel
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background-color: #000000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.45));
  display: flex;
  align-items: center;
}

.slide-body {
  color: #ffffff;
  max-width: 650px;
}

.badge-tag {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.slide-body h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.slide-body h1 span {
  color: var(--accent);
}

.slide-body p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #cbd5e1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 32, 44, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 20;
}

.slider-arrow:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--accent);
  width: 28px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   6. Sections Layout & Grid Systems
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1rem;
}

/* 6-Grid Feature Cards Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-icon {
  width: 58px;
  height: 58px;
  background-color: #fef3c7;
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Contact Us & Map Section
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-box {
  background-color: var(--bg-light);
  padding: 35px;
  border-radius: var(--radius);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-row i {
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 4px;
}

.info-row h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.info-row p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: #1da851;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* --------------------------------------------------------------------------
   8. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary);
  color: #94a3b8;
  padding-top: 50px;
  padding-bottom: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   9. Mobile & Tablet Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none; /* Can be toggled with JS mobile drawer */
  }

  .hero-slider {
    height: 420px;
  }

  .slide-body h1 {
    font-size: 1.9rem;
  }

  .cta-button-group {
    flex-direction: column;
  }
}
