*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink:     #0E0E0E;
  --asphalt: #2A2A2A;
  --steel:   #7A8A99;
  --sand:    #D4BC96;
  --rust:    #C45C2A;
  --fog:     #F4F0E8;
  /* Light theme semantic layer */
  --bg-page:       #F4F0E8;
  --bg-surface:    #FFFFFF;
  --bg-alt:        #EDE8DF;
  --text-on-light: #0E0E0E;
}
html { scroll-behavior: smooth; }

/* IMPROVEMENT: Increased font-weight from 200 to 300 for better readability */
body { background: var(--bg-page); color: var(--text-on-light); font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.7; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* IMPROVEMENT: Softened the road-rule divider to reduce visual noise */
.road-rule { width: 100%; height: 1px; background-color: var(--steel); opacity: 0.2; }

.section-label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.6rem; font-weight: 300; }
.section-title { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.03em; color: var(--text-on-light); line-height: 1; }

/* HEADER */
header { 
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; 
  background: rgba(14,14,14,0.92); /* Slightly lowered opacity */
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid var(--asphalt); }
/* Adds the matching asphalt grit to the header */
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 0;
}
.header-inner { 
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; 
  position: relative; z-index: 1; /* Keeps your logo and links safely above the grit layer */
}
.logo { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.06em; color: var(--sand); text-decoration: none; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a, .nav-links button { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; color: var(--fog); text-decoration: none; background: none; border: none; cursor: pointer; transition: color 0.2s; font-family: 'loos-extended', sans-serif; }
.nav-links a:hover, .nav-links button:hover { color: var(--sand); }
.nav-cta { padding: 0.5rem 1.25rem !important; border: 1px solid var(--sand) !important; color: var(--sand) !important; font-size: 0.78rem !important; letter-spacing: 0.1em !important; text-transform: uppercase; transition: all 0.3s ease-in-out !important; }
.nav-cta:hover { background: var(--sand) !important; color: var(--ink) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--fog); }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--asphalt); padding: 0.5rem 2rem 1rem; background: rgba(14,14,14,0.98); }
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav button { font-size: 0.9rem; color: var(--steel); text-decoration: none; background: none; border: none; border-bottom: 1px solid var(--asphalt); cursor: pointer; padding: 0.75rem 0; text-align: left; font-family: 'loos-extended', sans-serif; transition: color 0.2s; width: 100%; }
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--fog); }
.mobile-nav .m-cta { margin-top: 0.75rem; border: 1px solid var(--sand) !important; padding: 0.6rem !important; text-align: center; color: var(--sand) !important; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; position: relative; overflow: hidden; background: var(--ink); }
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Ensures the texture doesn't block your buttons */
  opacity: 0.05; /* Keeps the grit incredibly subtle */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(196,92,42,0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(212,188,150,0.04) 0%, transparent 60%); }
.hero-road { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(to right, var(--rust) 0px, var(--rust) 32px, transparent 32px, transparent 52px); opacity: 0.35; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(to bottom, transparent 0%, rgba(237,232,223,0.06) 70%, rgba(237,232,223,0.18) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; margin: 0 auto; padding: 4rem 0 5rem; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); margin-bottom: 1.5rem; font-weight: 300; }
.hero-h1 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: clamp(3.5rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.01em; color: var(--fog); margin-bottom: 0.1em; text-transform: uppercase; }
.hero-h1 .accent { color: var(--sand); }
.tagline-hard { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: clamp(0.85rem, 2vw, 1rem); letter-spacing: 0.2em; color: var(--rust); margin-top: 1.25rem; margin-bottom: 0.5rem; }

/* IMPROVEMENT: Slightly softened the hero subtext color opacity to reduce strain against the dark background */
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(122, 138, 153, 0.9); max-width: 540px; margin: 1.75rem auto 2.5rem; line-height: 1.9; font-weight: 300; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

/* IMPROVEMENT: Smoother button transitions */
.btn-primary { display: inline-block; padding: 0.85rem 2.25rem; background: var(--rust); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--rust); font-family: 'loos-extended', sans-serif; transition: all 0.3s ease-in-out; }
.btn-primary:hover { background: #a84a20; border-color: #a84a20; }
.btn-outline { display: inline-block; padding: 0.85rem 2.25rem; background: transparent; color: var(--fog); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--asphalt); font-family: 'loos-extended', sans-serif; transition: all 0.3s ease-in-out; }
.btn-outline:hover { border-color: var(--steel); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--asphalt); padding-top: 2.5rem; }
.stat-num { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.04em; color: var(--sand); line-height: 1; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); font-weight: 300; }

/* SERVICES */
#services { padding: 6rem 0; background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { font-size: 1rem; color: var(--asphalt); max-width: 480px; margin: 0.75rem auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bg-alt); }
.service-card { background: var(--bg-surface); padding: 2rem 1.75rem; border-top: 2px solid transparent; transition: border-color 0.3s ease; }
.service-card:hover { border-top-color: var(--rust); }
.service-icon { width: 40px; height: 40px; border: 1px solid var(--rust); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 20px; height: 20px; stroke: var(--rust); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.88rem; color: var(--asphalt); line-height: 1.8; font-weight: 300; }

/* ABOUT */
#about { padding: 6rem 0; background: var(--bg-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { font-size: 0.95rem; color: var(--asphalt); line-height: 1.9; margin-bottom: 1rem; margin-top: 1.25rem; font-weight: 300; }
.values-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.values-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--ink); }
.values-list li::before { content: ''; display: block; width: 16px; height: 16px; min-width: 16px; border: 1.5px solid var(--rust); border-radius: 50%; background: radial-gradient(circle at center, var(--rust) 35%, transparent 36%); margin-top: 3px; }
.about-cards { display: flex; flex-direction: column; gap: 1px; background: var(--bg-alt); }
.about-card { background: var(--bg-surface); padding: 2rem; border-left: 3px solid var(--rust); }
.about-card h3 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.75rem; }
.about-card p { font-size: 0.88rem; color: var(--asphalt); line-height: 1.9; font-weight: 300; }

/* CONSULTING */
#consulting { padding: 6rem 0; background: var(--bg-alt); }
.consulting-header { margin-bottom: 3.5rem; }
.consulting-header h2 { margin-bottom: 1rem; }
.consulting-header p { font-size: 1rem; color: var(--asphalt); max-width: 560px; line-height: 1.9; font-weight: 300; }
.consulting-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bg-alt); margin-bottom: 2.5rem; }
.consulting-card { background: var(--bg-surface); padding: 2rem 1.75rem; border-top: 2px solid transparent; transition: border-color 0.3s ease; }
.consulting-card:hover { border-top-color: var(--rust); }
.consulting-card-num { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 2.5rem; color: var(--rust); line-height: 1; margin-bottom: 1rem; opacity: 0.5; letter-spacing: -0.02em; }
.consulting-card h3 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.6rem; }
.consulting-card p { font-size: 0.88rem; color: var(--asphalt); line-height: 1.8; font-weight: 300; }
.consulting-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2rem; background: var(--bg-surface); border-left: 3px solid var(--rust); }
.consulting-cta-row p { font-size: 0.95rem; color: var(--asphalt); max-width: 520px; line-height: 1.8; font-weight: 300; }
.btn-consulting { display: inline-block; padding: 0.85rem 2.25rem; background: var(--rust); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--rust); font-family: 'loos-extended', sans-serif; transition: all 0.3s ease-in-out; white-space: nowrap; }
.btn-consulting:hover { background: #a84a20; border-color: #a84a20; }

/* CONTACT */
#contact { padding: 6rem 0; background: var(--bg-surface); }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: var(--bg-alt); max-width: 960px; margin: 0 auto; }
.contact-form-wrap { background: var(--bg-surface); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asphalt); }
.form-group input, .form-group textarea { background: var(--bg-surface); border: 1px solid var(--bg-alt); color: var(--ink); font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.9rem; padding: 0.65rem 0.9rem; outline: none; width: 100%; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--rust); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--steel); opacity: 0.6; }
.form-group textarea { resize: vertical; }
.phone-row { display: flex; align-items: center; gap: 0.5rem; }
.phone-row span { font-size: 0.88rem; color: var(--asphalt); white-space: nowrap; }
.btn-submit { width: 100%; padding: 0.9rem; background: var(--rust); color: #fff; border: none; font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; cursor: pointer; margin-top: 0.5rem; transition: all 0.3s ease-in-out; text-transform: uppercase; }
.btn-submit:hover { background: #a84a20; }
.contact-sidebar { background: var(--bg-page); display: flex; flex-direction: column; }
.contact-info-block { padding: 2rem; border-bottom: 1px solid var(--bg-alt); display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon { width: 36px; height: 36px; min-width: 36px; border: 1px solid var(--rust); display: flex; align-items: center; justify-content: center; }
.contact-info-icon svg { width: 16px; height: 16px; stroke: var(--rust); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-item strong { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.2rem; font-weight: 300; }
.contact-info-item a, .contact-info-item span { font-size: 0.85rem; color: var(--asphalt); text-decoration: none; transition: color 0.2s; }
.contact-info-item a:hover { color: var(--rust); }
.contact-cta-block { padding: 2rem; background: var(--bg-alt); flex: 1; }
.contact-cta-block h3 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.6rem; }
.contact-cta-block p { font-size: 0.85rem; color: var(--asphalt); line-height: 1.8; margin-bottom: 1.25rem; }
.btn-call { display: block; text-align: center; padding: 0.75rem; background: var(--rust); border: 1px solid var(--rust); color: #fff; font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-decoration: none; transition: all 0.3s ease-in-out; }
.btn-call:hover { background: #a84a20; border-color: #a84a20; }

/* FOOTER */
footer { background: var(--asphalt); border-top: 1px solid var(--ink); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { display: block; margin-bottom: 0.75rem; font-size: 1.6rem; }
.footer-brand p { font-size: 0.85rem; color: var(--steel); line-height: 1.8; }
.footer-col h4 { font-family: 'loos-extended', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; color: var(--fog); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li { font-size: 0.85rem; color: var(--steel); }
.footer-col ul li a { color: var(--steel); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid var(--ink); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p, .footer-bottom a { font-size: 0.75rem; color: var(--steel); letter-spacing: 0.04em; text-decoration: none; }
.footer-bottom a:hover { color: var(--sand); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #3a3a3a; color: var(--steel); border-radius: 2px; transition: color 0.2s, border-color 0.2s; }
.social-link:hover { color: var(--sand); border-color: var(--steel); }
.social-link svg { width: 15px; height: 15px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .consulting-layout { grid-template-columns: 1fr; }
  .consulting-cta-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .container { padding: 0 1.25rem; }
  .header-inner { padding: 1rem 1.25rem; }
}

/* IMPROVEMENT: Added fade-in animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* SUBPAGE HERO & LAYOUT FIX */
main {
  flex: 1;
  padding-top: 4.5rem; /* Pushes content safely below the fixed header */
}

.page-hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  /* This adds the map with an 85% dark overlay so it remains subtle and text stays readable */
  background-image: linear-gradient(rgba(14, 14, 14, 0.88), rgba(14, 14, 14, 0.88)), url('133EF6E8-ADE2-4D02-BDBC-80DD3FDEA4F9.jpg');
  background-size: cover;
  background-position: center center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--sand); }

.page-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

.page-title {
  font-family: 'loos-extended', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: 0.02em;
  color: var(--fog);
  line-height: 1.05;
  margin-bottom: 0;
}

.page-title .accent { color: var(--sand); }

.page-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--steel);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 5rem;
}

.hero-contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.hero-contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-contact-list .hcl-label { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.hero-contact-list .hcl-value { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 400; color: var(--fog); text-decoration: none; transition: color 0.2s; }
.hero-contact-list .hcl-value:hover { color: var(--sand); }
