/* ===========================
   ARH GROUP — shared.css
   =========================== */

:root {
  --clr-dark:    #1A1A1A;
  --clr-red:     #C0392B;
  --clr-red-dk:  #96251F;
  --clr-off:     #F8F7F4;
  --clr-grey:    #6B7280;
  --clr-divider: #E5E3DF;
  --clr-white:   #FFFFFF;

  --ff-head: 'DM Sans', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --nav-h-tall: 84px;
  --nav-h-slim: 60px;
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-dark);
  background: var(--clr-off);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===========================
   NAV
   =========================== */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h-tall);
  background: var(--clr-dark);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  gap: 32px;
  transition: height var(--transition), box-shadow var(--transition), background var(--transition);
}
#site-nav.scrolled {
  height: var(--nav-h-slim);
  background: rgba(26,26,26,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition);
  filter: brightness(0) invert(1);
}
#site-nav.scrolled .nav-logo img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active,
.nav-links > li > button.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links .caret {
  font-size: 0.65rem;
  transition: transform 0.25s;
}
.nav-links > li.open .caret { transform: rotate(180deg); }

/* Nav CTA button */
.nav-cta {
  font-family: var(--ff-head) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: var(--clr-white) !important;
  background: var(--clr-red) !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  transition: background 0.2s !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--clr-red-dk) !important; }

/* ===========================
   SERVICES SUBMENU (slide-out)
   =========================== */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--clr-white);
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 500;
}
/* Hover-intent bridge: invisible area keeps submenu open */
.submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
}
.nav-links > li.open .submenu,
.nav-links > li:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-family: var(--ff-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-dark);
  border-bottom: 1px solid var(--clr-divider);
  transition: background 0.18s, color 0.18s;
}
.submenu a:last-child { border-bottom: none; }
.submenu a:hover { background: var(--clr-off); color: var(--clr-red); }
.submenu a .svc-icon {
  width: 28px;
  height: 28px;
  background: var(--clr-red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #fff;
}

/* ===========================
   MOBILE NAV
   =========================== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

#mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--clr-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 32px 40px;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu a, #mobile-menu button {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
#mobile-menu a:hover, #mobile-menu button:hover { color: var(--clr-red); }
#mobile-menu .mobile-sub a {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  padding: 10px 0;
}
#mobile-menu .mobile-sub a:hover { color: var(--clr-red); }
.mobile-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none; border: none;
  font-size: 1.8rem; color: #fff;
  cursor: pointer; z-index: 1001;
}

/* ===========================
   FAB — WhatsApp
   =========================== */
#wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: waGlow 2.4s ease-in-out infinite;
  transition: transform 0.2s;
  text-decoration: none;
}
#wa-fab:hover { transform: scale(1.08); }
#wa-fab svg { width: 30px; height: 30px; }

@keyframes waGlow {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===========================
   FOOTER
   =========================== */
#site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px clamp(20px,6vw,80px) 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p { line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--clr-red); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 0.8rem; }

/* ===========================
   SECTION UTILITIES
   =========================== */
.section-label {
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-red);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--clr-dark);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--clr-grey);
  max-width: 560px;
  margin-top: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--clr-red);
  padding: 14px 28px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--clr-red-dk); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-dark);
  background: transparent;
  border: 1.5px solid var(--clr-dark);
  padding: 13px 26px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--clr-dark); color: #fff; }

/* ===========================
   REVIEW CAROUSEL
   =========================== */
.reviews-section {
  background: var(--clr-dark);
  padding: 100px clamp(20px,6vw,80px);
}
.reviews-section .section-title { color: #fff; }
.reviews-section .section-sub { color: rgba(255,255,255,0.5); }
.reviews-header { max-width: 1100px; margin: 0 auto 52px; }
.carousel-wrap { max-width: 1100px; margin: 0 auto; }
.carousel-track-outer { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 32px;
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; }
.review-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  flex: 1;
}
.review-excerpt { display: block; }
.review-full { display: none; }
.review-text.expanded .review-excerpt { display: none; }
.review-text.expanded .review-full { display: block; }
.read-more-btn {
  background: none; border: none; cursor: pointer;
  color: var(--clr-red);
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
  margin-top: -8px;
  text-align: left;
  transition: color 0.2s;
}
.read-more-btn:hover { color: #e74c3c; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--clr-red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.review-name { font-family: var(--ff-head); font-weight: 600; color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.review-role { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  justify-content: center;
}
.car-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.car-btn:hover { background: var(--clr-red); border-color: var(--clr-red); }
.car-dots { display: flex; gap: 6px; }
.car-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.car-dot.active { background: var(--clr-red); transform: scale(1.3); }

/* ===========================
   GALLERY GRID
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-cell .gal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gallery-cell:hover .gal-overlay { background: rgba(0,0,0,0.35); }
.gallery-cell .gal-overlay span {
  color: #fff; font-size: 1.6rem;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-cell:hover .gal-overlay span { opacity: 1; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
#lb-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; z-index: 2001;
}
#lb-prev, #lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.25); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-card { flex: 0 0 100%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
