:root {
    --black: #0a0a0a;
    --charcoal: #131313;
    --charcoal-2: #1a1a1a;
    --line: rgba(255,255,255,0.09);
    --off-white: #ececea;
    --muted: #9a9a95;
    --gold: #a9812f;
    --gold-bright: #c99a3f;
    --max-w: 1200px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--off-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
  }

  a { color: inherit; text-decoration: none; }

  /* ---------- Texture ---------- */
  .grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- Header ---------- */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  header.scrolled {
    border-bottom: 1px solid var(--line);
    background: rgba(10,10,10,0.92);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 96px;
    height: 84px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .brand img {
    height: 34px;
    width: auto;
    display: block;
  }
  .brand-text {
    font-family: 'Jost', sans-serif;
    font-size: 19px;
    letter-spacing: 0.24em;
    font-weight: 500;
    color: var(--off-white);
  }
  .brand-text span { color: var(--gold-bright); }

  nav.links {
    display: flex;
    align-items: center;
    gap: 44px;
    flex-shrink: 0;
  }
  nav.links a {
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s ease;
    position: relative;
    white-space: nowrap;
  }
  nav.links a:hover { color: var(--off-white); }

  .nav-cta {
    border: 1px solid rgba(255,255,255,0.22);
    padding: 10px 22px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--off-white) !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-cta:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright) !important;
  }

  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--off-white);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ---------- Nav dropdown (desktop) ---------- */
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s ease;
  }
  .nav-dropdown-toggle:hover { color: var(--off-white); }
  .nav-dropdown-toggle .chevron { transition: transform 0.25s ease; flex-shrink: 0; }
  .nav-dropdown:hover .nav-dropdown-toggle .chevron,
  .nav-dropdown.open .nav-dropdown-toggle .chevron { transform: rotate(180deg); }
  .nav-dropdown:hover .nav-dropdown-toggle,
  .nav-dropdown.open .nav-dropdown-toggle { color: var(--off-white); }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 280px;
    background: var(--charcoal-2);
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav-dropdown-menu a:hover {
    color: var(--gold-bright);
    background: rgba(255,255,255,0.03);
  }

  /* ---------- Mobile menu panel ---------- */
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--charcoal);
    border-top: 1px solid var(--line);
    padding: 8px 24px 28px;
  }
  header.menu-open .mobile-menu { display: flex; }
  .mobile-menu-section { border-bottom: 1px solid var(--line); }
  .mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--off-white);
  }
  .mobile-dropdown-toggle .chevron { transition: transform 0.25s ease; }
  .mobile-menu-section.open .mobile-dropdown-toggle .chevron { transform: rotate(180deg); }
  .mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 0 0 18px 4px;
  }
  .mobile-menu-section.open .mobile-dropdown-menu { display: flex; }
  .mobile-dropdown-menu a {
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .mobile-dropdown-menu a:hover { color: var(--gold-bright); }
  .mobile-cta {
    margin-top: 22px;
    display: block;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 15px 22px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--off-white);
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 84px;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1400px;
    height: 1400px;
    transform: translate(-50%, -46%);
    background: radial-gradient(circle, rgba(169,129,47,0.10) 0%, rgba(169,129,47,0.03) 40%, transparent 70%);
    pointer-events: none;
  }
  .hero-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 780px;
    max-width: none;
    opacity: 0.08;
    filter: grayscale(1) brightness(3);
    pointer-events: none;
    z-index: 0;
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
  }
  .hero-text {
    position: relative;
    z-index: 1;
  }
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }
  .eyebrow .dash {
    width: 36px;
    height: 1px;
    background: var(--gold-bright);
  }
  .eyebrow span {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .hero h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--off-white);
  }
  .hero h1 em {
    font-style: normal;
    color: var(--gold-bright);
  }
  .hero p {
    margin-top: 26px;
    font-size: 17px;
    color: var(--muted);
    max-width: 540px;
    font-weight: 300;
  }
  .hero-actions {
    margin-top: 44px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }
  .btn-primary {
    background: var(--gold-bright);
    color: #0a0a0a;
    font-weight: 500;
  }
  .btn-primary:hover {
    background: #e0b354;
  }
  .btn-ghost {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--off-white);
  }
  .btn-ghost:hover {
    border-color: rgba(255,255,255,0.5);
  }

  .scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
  }
  .scroll-cue .line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, var(--gold-bright), transparent);
  }
  .scroll-cue span {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
  }

  /* ---------- Section framing ---------- */
  section { position: relative; }
  .section-pad { padding: 130px 0; }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 72px;
    flex-wrap: wrap;
  }
  .section-head .eyebrow { margin-bottom: 18px; }
  .section-head h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.01em;
    max-width: 560px;
  }
  .section-head .lead {
    max-width: 380px;
    color: var(--muted);
    font-size: 15px;
    padding-bottom: 4px;
  }

  hr.rule {
    border: none;
    border-top: 1px solid var(--line);
  }

  /* ---------- About ---------- */
  .about { background: var(--charcoal); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about-copy p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 20px;
  }
  .about-copy p strong {
    color: var(--off-white);
    font-weight: 500;
  }
  .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .stat {
    background: var(--charcoal);
    padding: 34px 28px;
  }
  .stat .num {
    font-family: 'Jost', sans-serif;
    font-size: 40px;
    font-weight: 500;
    color: var(--gold-bright);
    line-height: 1;
  }
  .stat .label {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ---------- Divisions / Services ---------- */
  .divisions { background: var(--black); }

  /* Welding & Fabrication page only: photo background behind "What we do" */
  .welding-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.90), rgba(10,10,10,0.93)), url('assets/welding-bg.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    padding: 210px 0;
  }
  .welding-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .welding-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }

  /* Earthworks page only: photo background behind "What we do" */
  .earthworks-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.90), rgba(10,10,10,0.93)), url('assets/earthworks-bg.jpg');
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    padding: 210px 0;
  }
  .earthworks-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .earthworks-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }

  /* Equipment Rental page only: photo background behind "What we do" */
  .equipment-rental-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.90), rgba(10,10,10,0.93)), url('assets/equipment-rental-bg.jpg');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
  }
  .equipment-rental-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .equipment-rental-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }

  /* Snow & Ice Control page only: photo background behind "What we do" */
  .snow-ice-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.68), rgba(10,10,10,0.80)), url('assets/snow-ice-bg.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    padding: 210px 0;
  }
  .snow-ice-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .snow-ice-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }

  /* Power-washing & Property Maintenance page only: photo background behind "What we do" */
  .powerwashing-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.90), rgba(10,10,10,0.93)), url('assets/powerwashing-bg.jpg');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    padding: 210px 0;
  }
  .powerwashing-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .powerwashing-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }

  /* Crane & Hauling Services page only: photo background behind "What we do" */
  .crane-hauling-services-bg {
    background-image: linear-gradient(180deg, rgba(10,10,10,0.90), rgba(10,10,10,0.93)), url('assets/crane-hauling-bg.jpg');
    background-size: cover;
    background-position: center 62%;
    background-repeat: no-repeat;
    padding: 210px 0;
  }
  .crane-hauling-services-bg .division-card { background: rgba(19,19,19,0.78); }
  .crane-hauling-services-bg .division-card:hover { background: rgba(26,26,26,0.82); }
  .division-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .division-card {
    background: var(--charcoal);
    padding: 44px 38px;
    transition: background 0.35s ease;
    position: relative;
  }
  .division-card:hover { background: var(--charcoal-2); }
  .division-card .idx {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    font-family: 'Jost', sans-serif;
  }
  .division-card h3 {
    margin-top: 22px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 21px;
    color: var(--off-white);
  }
  .division-card p {
    margin-top: 14px;
    font-size: 14.5px;
    color: var(--muted);
  }
  .division-card .tag {
    margin-top: 24px;
    display: inline-block;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 6px 12px;
  }

  /* ---------- Approach ---------- */
  .approach { background: var(--charcoal); }
  .approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
  }
  .approach-list {
    display: flex;
    flex-direction: column;
  }
  .approach-item {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 26px;
  }
  .approach-item:last-child { border-bottom: 1px solid var(--line); }
  .approach-item .num {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: var(--gold-bright);
    padding-top: 3px;
    min-width: 26px;
  }
  .approach-item h4 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--off-white);
  }
  .approach-item p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 460px;
  }

  /* ---------- Equipment list (accordion) ---------- */
  .eq-accordion {
    border-top: 1px solid var(--line);
  }
  .eq-accordion-item {
    border-bottom: 1px solid var(--line);
  }
  .eq-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 26px 4px;
    text-align: left;
    transition: opacity 0.2s ease;
  }
  .eq-accordion-toggle:hover { opacity: 0.75; }
  .eq-cat-name {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--off-white);
  }
  .eq-cat-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }
  .eq-count {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
  .eq-accordion-toggle .chevron {
    color: var(--gold-bright);
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }
  .eq-accordion-item.open .eq-accordion-toggle .chevron { transform: rotate(180deg); }

  .eq-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
  }
  .eq-accordion-item.open .eq-accordion-panel { grid-template-rows: 1fr; }
  .eq-accordion-panel-inner {
    overflow: hidden;
    min-height: 0;
  }
  .equipment-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .eq-accordion-panel-inner .equipment-row:first-child { border-top: none; }
  .eq-accordion-panel-inner .equipment-row:last-child { padding-bottom: 22px; }
  .eq-name {
    font-size: 14.5px;
    color: var(--off-white);
    font-weight: 300;
  }
  .eq-spec {
    color: var(--muted);
    font-size: 12.5px;
  }
  .eq-price {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: var(--gold-bright);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ---------- CTA / Contact ---------- */
  .cta {
    background: var(--charcoal-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cta-inner {
    padding: 110px 0;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
  }
  .cta h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 48px);
  }
  .cta p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
  }
  .cta .hero-actions { justify-content: center; margin-top: 40px; }

  /* ---------- Footer ---------- */
  footer { background: var(--black); padding: 70px 0 34px; }
  .footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }
  .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .footer-brand img { height: 28px; }
  .footer-brand span {
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.2em;
    font-size: 14px;
  }
  .footer-col p.tag {
    color: var(--muted);
    font-size: 14px;
    max-width: 260px;
  }
  .footer-col h5 {
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-col ul a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.25s ease;
  }
  .footer-col ul a:hover { color: var(--gold-bright); }
  .footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--muted);
  }

  /* ---------- Reveal animation ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ---------- Responsive ---------- */
  @media (max-width: 1100px) {
    .nav { gap: 36px; }
  }
  @media (max-width: 980px) {
    .about-grid, .approach-grid { grid-template-columns: 1fr; gap: 48px; }
    .division-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-mark { opacity: 0.04; width: 520px; }
  }
  @media (max-width: 980px) {
    .nav { justify-content: space-between; gap: 20px; }
    nav.links { display: none; }
    .menu-toggle { display: flex; }
  }
  @media (max-width: 760px) {
    .wrap { padding: 0 24px; }
    .division-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .section-pad { padding: 90px 0; }
    .hero p { max-width: 100%; }
    .scroll-cue { display: none; }
    .brand-text { font-size: 14px; letter-spacing: 0.14em; }
    .brand img { height: 28px; }
    .brand { gap: 10px; }
    .nav { gap: 12px; }

    /* Division "What we do" background photos: on tall/narrow mobile viewports,
       "cover" forces heavy zoom + left/right cropping on landscape photos.
       Show the full, un-cropped photo instead, anchored under the section heading. */
    .welding-services-bg,
    .earthworks-services-bg,
    .equipment-rental-services-bg,
    .snow-ice-services-bg,
    .powerwashing-services-bg,
    .crane-hauling-services-bg {
      background-size: contain;
      background-position: center top;
    }
  }
