/* ==========================================================================
   HIHOMES CLEANING - UNIFIED MASTER STYLESHEET
   ========================================================================== */
:root {
  --linen: #f8f3ea; --sand: #efe6d6; --oat: #e3d5bb; --line: #dccfb6;
  --night: #2b1d12; --walnut: #3b2a1c; --brass: #b08a4a; --brass-d: #7d5b27;
  --ink: #2e241b; --muted: #6b5e4f; --white: #fffdf9; --beige-t: #eadfca;
  --ease: cubic-bezier(.22,.8,.26,1);
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

body { 
  margin: 0; 
  font-family: var(--f-body); 
  color: var(--h-text, #292524); 
  background: var(--night); 
  overflow-x: hidden; 
}

.wrap { 
  width: min(1200px, 100% - 40px); 
  margin-inline: auto; 
}

/* Base Component Containers */
#header-container, #footer-container {
  display: block !important;
  width: 100% !important;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.header-wrapper {
  width: 100%;
  position: relative;
  z-index: 1000;
  font-family: var(--f-body);
  background: var(--night);
}

.top-bar {
  background: rgba(27, 18, 11, 0.65);
  border-bottom: 1px solid rgba(234, 223, 202, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--beige-t);
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-left .region-badge {
  background: rgba(176, 138, 74, 0.2);
  color: var(--brass);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-link {
  color: var(--beige-t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease);
}
.top-bar-link:hover {
  color: #fff;
}

.main-header {
  padding: 16px 0;
  transition: background 0.3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-area img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  color: var(--beige-t);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brass);
  transition: width 0.25s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-btn {
  background: var(--brass);
  color: var(--night) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.header-btn:hover {
  background: var(--beige-t);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--beige-t);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--night);
  border-bottom: 1px solid rgba(234, 223, 202, 0.15);
  padding: 24px 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-dropdown a {
  color: var(--beige-t);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(234, 223, 202, 0.08);
}
.mobile-nav-dropdown a:hover {
  color: #fff;
}
.mobile-nav-contact {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 223, 202, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--beige-t);
}

@media (max-width: 992px) {
  .top-bar { display: none; }
  .desktop-nav, .header-btn { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav-dropdown { display: flex; }
}

/* ==========================================================================
   HERO, SECTIONS & CONTENT CARDS
   ========================================================================== */
.hero { 
  padding: clamp(80px, 12vw, 130px) 0; 
  background: linear-gradient(135deg, var(--walnut, #3b2a1c), var(--night, #2b1d12)); 
  color: #fff; 
  text-align: center; 
}
.hero h1 { 
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem); 
  font-weight: 900; 
  line-height: 1.1; 
  margin-bottom: 16px; 
  text-transform: uppercase; 
}
.hero p { 
  font-size: clamp(1rem, 2.2vw, 1.2rem); 
  color: var(--beige-t); 
  max-width: 68ch; 
  margin: 0 auto; 
  line-height: 1.6; 
}

.block { padding: clamp(60px, 8vw, 90px) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card { 
  background: var(--white); 
  border-radius: 16px; 
  padding: 32px; 
  box-shadow: 0 4px 20px rgba(43,29,18,.06); 
  border-top: 4px solid var(--brass); 
  transition: transform .3s var(--ease); 
}
.card:hover { transform: translateY(-5px); }
.card h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; color: var(--night); margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.7; font-size: .96rem; }

/* Buttons & CTA */
.cta { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 14px 28px; 
  border-radius: 999px; 
  font-weight: 700; 
  background: var(--brass); 
  color: var(--night); 
  text-decoration: none; 
  box-shadow: 0 10px 25px -5px rgba(176,138,74,.3); 
  transition: transform .25s, background .25s; 
}
.cta:hover { transform: translateY(-2px); background: var(--beige-t); }
.cta-outline { background: transparent; border: 2px solid #fff; color: #fff; box-shadow: none; margin-left: 10px; }
.cta-outline:hover { background: rgba(255,255,255,.1); }

/* ==========================================================================
   FOOTER CTA & SITE FOOTER
   ========================================================================== */
.footer-cta {
  position: relative;
  isolation: isolate;
  padding: clamp(54px, 7vw, 84px) 16px;
  text-align: center;
  color: #fff;
  background: url('/assets/images/14.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 22, 12, 0.85) 0%, rgba(43, 29, 18, 0.90) 100%);
  backdrop-filter: blur(2px);
}
.footer-cta-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer-cta .tag {
  color: var(--brass);
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-cta .tag::before, .footer-cta .tag::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}
.footer-cta h2 {
  color: #fff !important;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  display: block;
}
.footer-cta p {
  color: var(--beige-t) !important;
  font-family: var(--f-body);
  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  margin: 0 auto 28px;
  display: block;
}
.footer-cta .cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--night);
  color: var(--beige-t);
  font-family: var(--f-body);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  border-top: 1px solid rgba(234, 223, 202, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 44px;
}
.footer-brand-desc .logo-area {
  display: inline-block;
  margin-bottom: 18px;
}
.footer-brand-desc .logo-area img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand-desc p {
  color: #cdbfa6;
  line-height: 1.65;
  font-size: 0.92rem;
  margin: 0 0 12px;
  max-width: 34ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  font-family: var(--f-display);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: #cdbfa6;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-contact-item {
  color: #cdbfa6;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.footer-contact-item strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(234, 223, 202, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #a39580;
}
.footer-legal-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-legal-links a {
  color: #a39580;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-legal-links a:hover { color: #fff; }
.credit-link {
  color: var(--brass) !important;
  font-weight: 700;
}
.credit-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}