/* =========================================
   HallmanCompany.com V5 Sitewide CSS
   - Replace assets/logo.png and assets/bg.jpg
   - Keep filenames stable; use ?v=#
   ========================================= */

:root{
  /* Responsive background images */
  --bgImg: url("assets/window-bg.jpg");

  /* Brand colors (tune these to match your existing look) */
  --bg: #070A0F;           /* deep midnight */
  --ink: #0E1116;          /* near-black for cards */
  --text: #E9EEF6;         /* primary text on dark */
  --muted: rgba(233,238,246,.78);
  --muted2: rgba(233,238,246,.62);

  --card: rgba(14,17,22,.60);
  --glass: rgba(14,17,22,.44);
  --stroke: rgba(255,255,255,.10);

  --linen: rgba(255,255,255,.92);
  --linenText: #101318;
  --linenMuted: rgba(16,19,24,.72);

  --accent: #C6A24A;       /* gold line */
  --accent2: #77D6FF;      /* cool cyan hints */
  --accent3: #9B7DFF;      /* subtle purple hints */

  --radius: 18px;
  --shadow: 0 12px 32px rgba(0,0,0,.38);
  --shadow2: 0 8px 22px rgba(0,0,0,.24);

  --max: 1120px;

  --fontSans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fontSerif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Global reset */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--fontSans);
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

/* Background image (your old BG goes here) */
.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,10,15,.38), rgba(7,10,15,.72)),
    var(--bgImg) center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
}

/* Accessibility */
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left: 16px;
  top: 12px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#fff;
  color:#000;
  border-radius:10px;
  z-index:9999;
}

/* Layout */
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section{
  padding: 64px 0;
}
.section-head{
  margin-bottom: 22px;
}
.section-head h2{
  margin: 0 0 8px 0;
  font-family: var(--fontSerif);
  letter-spacing:.3px;
  font-size: clamp(26px, 2.4vw, 36px);
}
.muted{ color: var(--muted); }
.small{ font-size: .95rem; }
.tiny{ font-size: .86rem; }

a{ color: inherit; text-decoration:none; }
a.link{ color: var(--accent2); text-decoration: underline; text-underline-offset: 4px; }
a.link:hover{ opacity:.9; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,10,15,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{
  font-weight: 700;
  letter-spacing:.2px;
}
.brand-tag{
  font-size: .82rem;
  color: var(--muted2);
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.header-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 10px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: rgba(255,255,255,.80);
}

/* Dropdown */
.dropdown{ position: relative; }
.dropbtn{
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}
.dropdown-menu{
  position:absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: rgba(14,17,22,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 8px;
  display:none;
}
.dropdown-menu.open{ display:block; }
.dropdown-menu a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.dropdown-menu a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(198,162,74,.95), rgba(198,162,74,.70));
  color: #111;
  font-weight: 700;
  border: 1px solid rgba(198,162,74,.55);
  box-shadow: 0 10px 24px rgba(198,162,74,.14);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0px); }
.btn-ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.btn-wide{ width: 100%; }

/* Cards */
.card{
  border-radius: var(--radius);
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
}
.glass{
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.linen{
  background: var(--linen);
  color: var(--linenText);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.linen p{ color: var(--linenMuted); }
.h3{ margin: 0 0 8px 0; font-family: var(--fontSerif); }

/* Hero */
.hero{
  position: relative;
  padding: 66px 0 36px 0;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 18px;
  align-items: start;
}
.hero-card{
  padding: 26px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-block;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.78);
}
.hero h1{
  margin: 0 0 12px 0;
  font-family: var(--fontSerif);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
}
.lead{
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  font-size: .86rem;
}

/* Side cards */
.hero-side{ display:flex; flex-direction:column; gap: 12px; }
.mini{ margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.10); }
.mini-label{ font-size: .82rem; letter-spacing:.08em; text-transform: uppercase; color: rgba(16,19,24,.65); }
.mini-value{ font-size: .95rem; color: rgba(16,19,24,.82); }

/* Grid */
.grid{
  display:grid;
  gap: 14px;
}
.grid.three{
  grid-template-columns: repeat(3, 1fr);
}
.grid article h3{
  margin: 0 0 6px 0;
  font-family: var(--fontSerif);
  color: var(--linenText);
}
.grid article p{ margin: 0; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}
.step-num{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  background: rgba(198,162,74,.18);
  border: 1px solid rgba(198,162,74,.35);
  color: rgba(255,255,255,.86);
}
.step-body h3{
  margin: 0 0 4px 0;
  font-family: var(--fontSerif);
}
.step-body p{ margin: 0; color: var(--muted); }

/* Callout */
.callout{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.callout h3{
  margin: 0 0 6px 0;
  font-family: var(--fontSerif);
}
.callout p{ margin: 0; color: var(--linenMuted); }
.callout strong{ color: var(--linenText); }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: start;
}
.bullets{
  margin: 10px 0 0 18px;
  color: var(--muted);
}
.contact-right{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.contact h3{ margin: 0 0 8px 0; font-family: var(--fontSerif); }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  background: rgba(7,10,15,.88);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}
.footer-brand{
  font-weight: 800;
}
.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.footer-links a{
  color: var(--muted2);
  padding: 6px 8px;
  border-radius: 10px;
}
.footer-links a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Page layout helpers */
.page-hero{
  position: relative;
  padding: 52px 0 22px 0;
  overflow:hidden;
}
.page-hero .hero-bg{ opacity:.85; }
.page-title{
  margin: 0 0 10px 0;
  font-family: var(--fontSerif);
  font-size: clamp(30px, 3.4vw, 46px);
}
.prose{
  max-width: 78ch;
}
.prose h2{
  font-family: var(--fontSerif);
  margin: 22px 0 8px 0;
}
.prose p{ margin: 0 0 12px 0; }

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Responsive bg swap */
@media (max-width: 980px){
  :root{
    --bgImg: url("assets/doorway-bg.jpg");
  }
  .hero-bg{
    background-position: center top;
  }
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .nav-toggle{ display:inline-block; }
  .nav-list{
    display:none;
    position:absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 10px;
    margin: 0;
    background: rgba(7,10,15,.96);
    border-bottom: 1px solid rgba(255,255,255,.10);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-list.open{ display:flex; }
  .header-cta{
    display:none;
    position:absolute;
    left: 0;
    right: 0;
    top: 64px;
    margin-top: 250px;
    padding: 10px;
    background: rgba(7,10,15,.96);
  }
  .header-cta.open{ display:flex; }
  .dropdown-menu{
    position: static;
    display:none;
    margin-top: 6px;
  }
  .dropdown-menu.open{ display:block; }
}

/* =========================================
   End V5 CSS
   ========================================= */
