
/* Dewa Rayana Group - Premium Responsive & Drawer Navigation */
:root {
  --dr-charcoal-dark: #0A0E17;
  --dr-charcoal: #111827;
  --dr-charcoal-light: #1F2937;
  --dr-red: #DC2626;
  --dr-red-bright: #EF4444;
  --dr-red-gradient: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  --dr-gold: #D97706;
  --dr-gold-bright: #F59E0B;
  --dr-gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --dr-text-main: #111827;
  --dr-text-muted: #4B5563;
  --dr-border-light: #E5E7EB;
  --dr-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
  --dr-paper-opacity: 0.50;
  --dr-card-opacity: 0.70;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAFAFA;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, var(--dr-paper-opacity)) 0%, rgba(255, 255, 255, var(--dr-paper-opacity)) 100%), url('images/paper-texture.png');
  background-size: cover, 380px 380px;
  background-repeat: no-repeat, repeat;
  color: var(--dr-text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #111827 !important;
  letter-spacing: -0.3px;
}

p, li {
  color: #374151 !important;
  font-size: 1.05rem;
}

.container { 
  width: 100%; 
  max-width: 1536px; 
  margin: 0 auto; 
  padding: 0 2.25rem; 
}

@media (min-width: 1800px) {
  .container { max-width: 1720px; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

.section {
  padding: 6.5rem 0;
  background-color: #FFFFFF;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, var(--dr-paper-opacity)) 0%, rgba(255, 255, 255, var(--dr-paper-opacity)) 100%), url('images/paper-texture.png');
  background-size: cover, 380px 380px;
  background-repeat: no-repeat, repeat;
}
.section-darker {
  background-color: #F8FAFC;
  background-image: linear-gradient(180deg, rgba(248, 250, 252, var(--dr-paper-opacity)) 0%, rgba(248, 250, 252, var(--dr-paper-opacity)) 100%), url('images/paper-texture.png');
  background-size: cover, 380px 380px;
  background-repeat: no-repeat, repeat;
  border-top: 1px solid var(--dr-border-light);
  border-bottom: 1px solid var(--dr-border-light);
}

.section-header {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: #111827 !important;
  margin-bottom: 1rem;
}

.section-desc {
  color: #4B5563 !important;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Badges */
.badge-red {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626 !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309 !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cards */
.card {
  background: #FFFFFF;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, var(--dr-card-opacity)) 0%, rgba(255, 255, 255, var(--dr-card-opacity)) 100%), url('images/paper-texture.png');
  background-size: cover, 380px 380px;
  background-repeat: no-repeat, repeat;
  border: 1px solid #E5E7EB;
  border-top: 4px solid var(--dr-red);
  border-radius: 12px; 
  padding: 2.5rem; 
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.card:hover { 
  transform: translateY(-8px); 
  border-top-color: var(--dr-gold-bright);
  border-color: #D1D5DB; 
  box-shadow: 0 16px 35px -5px rgba(220, 38, 38, 0.15); 
}

.card-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--dr-red);
  margin-bottom: 1.5rem;
}

.card h3, .card h4 {
  color: #111827 !important;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.card p {
  color: #4B5563 !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* Link Colors */
a, a:link, a:visited { 
  color: var(--dr-red) !important; 
  text-decoration: none; 
  transition: all 0.3s ease; 
}
a:hover, a:focus, a:active { 
  color: var(--dr-gold) !important; 
}

/* Header & Hamburger Toggle Styles */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--dr-red);
  padding: 0.85rem 0;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; width: auto; object-fit: contain; background:#fff; padding:3px; border-radius:4px; }
.apave-header-logo { height: 42px; width: auto; object-fit: contain; background:#fff; padding:3px 6px; border-radius:4px; }

.header-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-menu { display: flex; gap: 1.15rem; align-items: center; list-style: none; }
.nav-menu .btn { padding: 0.65rem 1.25rem !important; font-size: 0.9rem !important; }
.nav-menu a.nav-link, .nav-menu a.nav-link:link, .nav-menu a.nav-link:visited { 
  color: #F9FAFB !important; 
  font-weight: 600; 
  font-size: 0.9rem; 
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}
.nav-menu a.nav-link:hover, .nav-menu a.nav-link:focus, .nav-menu a.nav-link.active {
  color: var(--dr-gold-bright) !important;
  border-bottom-color: var(--dr-gold-bright) !important;
}

/* Hamburger Icon */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}
.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Slide-out Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  right: -340px !important;
  width: 340px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: #0A0E17 !important;
  z-index: 999999 !important;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.6) !important;
  padding: 2.5rem 2rem !important;
  flex-direction: column !important;
  transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.25rem;
}
.drawer-close {
  font-size: 2.5rem;
  color: #FFFFFF;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-links li {
  margin-bottom: 1.25rem;
}
.mobile-nav-link {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  display: block;
  padding: 0.65rem 0;
  transition: all 0.25s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--dr-gold-bright) !important;
  padding-left: 8px;
}

.drawer-partner-logo {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

/* Hide Apave Partner Logo on Mobile Header Main Area */
.hide-on-mobile {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block; 
  padding: 0.9rem 2.25rem; 
  border-radius: 6px;
  font-weight: 800 !important; 
  font-size: 1rem; 
  text-align: center; 
  cursor: pointer; 
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-red, .btn-red:link, .btn-red:visited { 
  background: var(--dr-red-gradient) !important; 
  color: #FFFFFF !important; 
  border: 1px solid var(--dr-red-bright) !important;
}
.btn-red:hover, .btn-red:focus, .btn-red:active { 
  background: #B91C1C !important; 
  color: #FFFFFF !important; 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4); 
}

.btn-gold, .btn-gold:link, .btn-gold:visited { 
  background: var(--dr-gold-gradient) !important; 
  color: #FFFFFF !important; 
  border: 1px solid var(--dr-gold-bright) !important;
}
.btn-gold:hover, .btn-gold:focus, .btn-gold:active { 
  background: #B45309 !important; 
  color: #FFFFFF !important; 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); 
}

.btn-outline, .btn-outline:link, .btn-outline:visited { 
  border: 2px solid var(--dr-gold-bright) !important; 
  color: var(--dr-gold-bright) !important; 
  background: transparent !important;
}
.btn-outline:hover, .btn-outline:focus, .btn-outline:active { 
  background: var(--dr-gold-gradient) !important; 
  color: #FFFFFF !important; 
}

/* Hero Banners */
.hero-section {
  position: relative; 
  padding: 8.5rem 0 5.5rem; 
  min-height: 48vh;
  display: flex; 
  align-items: center; 
  background-size: cover; 
  background-position: center;
}
.sub-hero {
  padding: 8.5rem 0 5.5rem !important;
  min-height: 48vh !important;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.88) 0%, rgba(10,14,23,0.96) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-tag {
  display: inline-block; padding: 0.45rem 1.2rem; border-radius: 50px;
  background: rgba(220, 38, 38, 0.25); border: 1px solid var(--dr-red);
  color: var(--dr-red-bright) !important; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title { 
  font-size: clamp(2.25rem, 4.2vw, 4.25rem); 
  line-height: 1.15; 
  margin-bottom: 1.25rem; 
  color: #FFFFFF !important; 
  text-shadow: 0 4px 20px rgba(0,0,0,0.8); 
}
.hero-subtitle { 
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); 
  color: #E5E7EB !important; 
  margin-bottom: 0; 
  max-width: 1050px; 
  line-height: 1.65;
}

.hero-actions {
  margin-top: 3.25rem !important;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Grid Systems */
.grid { display: grid; gap: 2.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Counter Bar */
.counter-bar { background: var(--dr-charcoal-dark); border-y: 2px solid var(--dr-red); padding: 3rem 0; }
.counter-item { text-align: center; }
.counter-number { font-size: 3.25rem; font-weight: 800; color: var(--dr-gold-bright) !important; margin-bottom: 0.25rem; font-family: 'Outfit'; }
.counter-label { color: #9CA3AF !important; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* Contact Form Styling */
.contact-form-wrapper {
  background: #FFFFFF;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, var(--dr-card-opacity)) 0%, rgba(255, 255, 255, var(--dr-card-opacity)) 100%), url('images/paper-texture.png');
  background-size: cover, 380px 380px;
  background-repeat: no-repeat, repeat;
  border: 1px solid #E5E7EB;
  border-top: 4px solid var(--dr-red);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--dr-shadow);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; color: #111827 !important; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control, select.form-control {
  width: 100%; 
  height: 48px;
  padding: 0.75rem 1.15rem; 
  border-radius: 6px; 
  border: 1px solid #D1D5DB; 
  font-size: 1rem; 
  background-color: #FFFFFF;
  color: #111827 !important; 
  transition: all 0.3s ease;
  appearance: auto;
  -webkit-appearance: select;
}
textarea.form-control { height: auto; }
.form-control:focus { outline: none; border-color: var(--dr-red); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

/* Footer */
.site-footer { background: #0A0E17; border-top: 3px solid var(--dr-red); padding: 4.5rem 0 2rem; color: #E5E7EB; }
.footer-title { color: #fff !important; font-size: 1.15rem; margin-bottom: 1.25rem; border-left: 3px solid var(--dr-red); padding-left: 0.6rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a, .footer-links a:visited { color: #9CA3AF !important; }
.footer-links a:hover { color: var(--dr-gold-bright) !important; }

/* RESPONSIVE LAYOUTS & DRAWER TOGGLE */
@media (max-width: 991px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hide-on-mobile { display: none !important; }
  
  .mobile-nav-drawer {
    display: flex !important;
  }
  .mobile-nav-drawer.open {
    right: 0 !important;
  }
}


@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .hero-section, .sub-hero { padding: 6.5rem 0 4rem !important; min-height: auto !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .logo-img { height: 42px; }
  .counter-number { font-size: 2.5rem; }
  .card { padding: 1.75rem; }
  .contact-form-wrapper { padding: 1.75rem; }
  .hero-actions { margin-top: 2rem !important; flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .site-footer { padding: 3rem 0 2rem; }
}
