/* ============================================
   RR Groups - Luxury Black & Gold Theme
   Premium Architecture & Construction Website
   ============================================ */

/* === LUXURY COLOR VARIABLES === */
:root {
  --gold: #D4AF37;
  --gold-light: #F4E5B8;
  --gold-dark: #B8941F;
  --black: #000000;
  --black-light: #1a1a1a;
  --black-lighter: #2d2d2d;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-gold: #D4AF37;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --border: rgba(212, 175, 55, 0.2);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.8);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E5B8 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
  --radius: 0;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
  letter-spacing: 0.3px;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 20px auto 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* === HEADER & NAVIGATION === */
.header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 3rem;
}

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

/* LARGER LOGO - Desktop */
.brand img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  transition: all 0.3s ease;
}

.brand img:hover {
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
  transform: scale(1.05);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.top-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

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

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

/* Language Button */
.lang-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* CTA Button */
.cta {
  padding: 12px 32px;
  background: var(--gradient-gold);
  color: var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.75rem;
  color: var(--gold);
  padding: 0.5rem;
}

#mobileMenu {
  background: var(--black-light);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

#mobileMenu a {
  display: block;
  padding: 1rem 2rem;
  color: var(--text);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

#mobileMenu a:hover {
  background: var(--black-lighter);
  color: var(--gold);
}

/* === HERO SECTION === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
  min-height: 85vh;
}

.hero .content h1 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero .content h1 span {
  display: block;
  font-size: 2.5rem;
  color: var(--text);
  margin-top: 1rem;
}

.hero .content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 550px;
}

.hero .media {
  position: relative;
}

.hero .media::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--gold);
  z-index: -1;
}

.hero .media img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
}

.hero .media:hover img {
  transform: translate(10px, 10px);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 36px;
  background: var(--gradient-gold);
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 36px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h4 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover img {
  border-color: var(--gold);
}

/* === FORMS === */
.input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--black-light);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* === FILTER === */
.filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter button {
  padding: 10px 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.filter button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.filter button.active {
  background: var(--gradient-gold);
  color: var(--black);
  border-color: transparent;
}

/* === PROJECT GALLERY === */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-images {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

.project-card:hover .project-image {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.project-card:hover .image-overlay {
  transform: translateY(0);
}

.image-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--gold);
  padding: 8px 16px;
  border: 1px solid var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.gallery-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.gallery-thumbnail:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* === FOOTER === */
.footer {
  background: var(--black-light);
  color: var(--text-muted);
  text-align: center;
  padding: 3rem;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--gold);
  transition: var(--transition);
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero .content h1 {
    font-size: 3rem;
  }
  
  .container {
    padding: 0 30px;
  }
  
  /* Logo slightly smaller on tablets */
  .brand img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
  
  .hero .content h1 {
    font-size: 2.5rem;
  }
  
  .hero .content h1 span {
    font-size: 2rem;
  }
  
  .hero .media::before {
    display: none;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .header-inner {
    padding: 20px;
  }
  
  /* Logo adjusted for mobile */
  .brand img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero .content h1 {
    font-size: 2rem;
  }
  
  .hero .content h1 span {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn, .btn-ghost {
    padding: 12px 24px;
    font-size: 0.875rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  /* Logo further adjusted for small mobile */
  .brand img {
    height: 50px;
  }
}

/* === LOADING STATES === */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
  .header, .footer, .btn, .filter {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}