/*
Theme Name: HeavyWorks Equipment
Theme URI: https://theheavyworks.com/
Author: HeavyWorks Equipment LLC
Description: Custom responsive construction website for HeavyWorks Equipment LLC.
Version: 1.0.0
Text Domain: heavyworks
*/

:root {
  --ink: #121820;
  --ink-soft: #26313c;
  --yellow: #f6bf1a;
  --yellow-dark: #d99e00;
  --paper: #f7f8f9;
  --white: #ffffff;
  --line: #d8dde1;
  --muted: #5e6974;
  --mist: #dce7ec;
  --danger: #b53b30;
  --shadow: 0 12px 30px rgba(18, 24, 32, .12);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; background: rgba(247, 248, 249, .96); border-bottom: 1px solid rgba(18, 24, 32, .1); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 25px rgba(18, 24, 32, .08); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 220px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.button) { font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav > a:not(.button):hover { color: #8a6500; }
.menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.menu-button svg { width: 28px; height: 28px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; color: var(--ink); background: var(--yellow); border: 2px solid var(--yellow); border-radius: 4px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-2px); background: #ffcf3d; border-color: #ffcf3d; }
.button svg, .text-link svg { width: 18px; height: 18px; }
.button-small { min-height: 42px; padding: 9px 16px; font-size: .88rem; }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.text-link:hover { color: #7d5c00; }
.text-link.light { color: var(--white); }

.hero { min-height: min(790px, 90vh); margin-top: 84px; position: relative; display: flex; align-items: center; overflow: hidden; color: var(--white); background: #3e4850; }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(10, 15, 20, .87) 0%, rgba(10, 15, 20, .62) 43%, rgba(10, 15, 20, .18) 74%, rgba(10, 15, 20, .08) 100%); }
.hero-content { position: relative; padding-block: 100px; }
.hero-content > * { max-width: 690px; }
.eyebrow { margin: 0 0 16px; color: var(--yellow); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.eyebrow.dark { color: #765800; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(3.2rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: 0; }
.hero-copy { margin: 26px 0 0; font-size: clamp(1.05rem, 1.55vw, 1.3rem); color: #edf1f3; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 25px; }

.trust-band { color: var(--white); background: var(--ink); }
.trust-grid { min-height: 108px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; align-items: center; gap: 12px; padding: 22px 28px; border-right: 1px solid rgba(255,255,255,.13); font-size: .9rem; font-weight: 750; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--yellow); }

.section { padding-block: 110px; }
.section-heading { margin-bottom: 52px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 70px; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading h2, .about h2, .capabilities h2, .service-area h2, .contact h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.15rem); line-height: 1.06; letter-spacing: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.06rem; }

.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 28px; }
.service-number { color: #806000; font-size: .75rem; font-weight: 900; }
.service-body h3 { min-height: 58px; margin: 9px 0 12px; font-size: 1.42rem; line-height: 1.2; }
.service-body p { min-height: 100px; margin: 0 0 23px; color: var(--muted); }
.service-body .text-link { font-size: .88rem; }
.service-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr .85fr; }
.service-card-wide img { height: 100%; aspect-ratio: auto; }
.service-card-wide .service-body { padding: 45px; display: flex; flex-direction: column; justify-content: center; }
.service-card-wide .service-body h3, .service-card-wide .service-body p { min-height: 0; }

.about { color: var(--white); background: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; padding: 0 34px 34px 0; }
.about-image-wrap::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; width: 70%; height: 70%; background: var(--yellow); }
.about-image-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-caption { position: absolute; z-index: 2; right: 0; bottom: 0; display: grid; padding: 15px 18px; color: var(--ink); background: var(--yellow); font-weight: 900; line-height: 1.2; }
.about-copy .lead { margin: 27px 0 18px; color: var(--white); font-size: 1.18rem; font-weight: 700; }
.about-copy > p:not(.eyebrow):not(.lead) { color: #cfd7dc; }
.check-list { margin: 27px 0 32px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.check-list svg { width: 19px; flex: 0 0 auto; margin-top: 3px; color: var(--yellow); }
.about-copy .button-dark { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.capabilities { padding-block: 88px; color: var(--white); background: #334955; }
.capability-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.capabilities h2 { font-size: clamp(2rem, 3.4vw, 3.45rem); }
.capability-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.capability-list span { min-height: 70px; display: flex; align-items: center; padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); font-size: .85rem; font-weight: 800; }

.process { background: var(--paper); }
.process-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: process; border-top: 1px solid var(--line); }
.process-list li { min-height: 270px; padding: 28px 26px 20px; border-right: 1px solid var(--line); }
.process-list li:last-child { border-right: 0; }
.process-list > li > span { color: #806000; font-size: .76rem; font-weight: 900; }
.process-list h3 { margin: 60px 0 12px; font-size: 1.2rem; }
.process-list p { margin: 0; color: var(--muted); font-size: .94rem; }

.service-area { padding-block: 90px; color: var(--white); background: var(--ink); }
.area-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 80px; }
.area-copy p:last-child { max-width: 670px; color: #c8d0d5; }
.area-mark { min-height: 250px; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.2); background: #19232d; }
.area-mark svg { width: 90px; height: 90px; color: var(--yellow); }
.area-mark span { margin-top: 13px; font-weight: 900; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.contact-intro > p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: 1.05rem; }
.contact-links { margin-top: 40px; display: grid; gap: 16px; }
.contact-links > * { min-width: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-links svg { width: 22px; height: 22px; flex: 0 0 auto; color: #876500; }
.contact-links span { min-width: 0; overflow-wrap: anywhere; }
.contact-links small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .71rem; font-weight: 900; text-transform: uppercase; }
.estimate-form { padding: 38px; background: var(--paper); border-top: 5px solid var(--yellow); box-shadow: var(--shadow); }
.estimate-form .form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.estimate-form label { display: block; margin-bottom: 18px; font-size: .86rem; font-weight: 800; }
.estimate-form label > span { color: var(--danger); }
.estimate-form input, .estimate-form select, .estimate-form textarea { width: 100%; margin-top: 7px; border: 1px solid #bfc7cd; border-radius: 3px; background: var(--white); padding: 12px 13px; color: var(--ink); outline: none; }
.estimate-form input, .estimate-form select { height: 48px; }
.estimate-form textarea { resize: vertical; min-height: 132px; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { border-color: #7a5a00; box-shadow: 0 0 0 3px rgba(246,191,26,.28); }
.estimate-form .is-invalid { border-color: var(--danger); }
.form-submit { width: 100%; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }
.form-status { min-height: 24px; margin: 12px 0 0; font-weight: 750; }

.site-footer { color: #d4dbe0; background: #0d1218; }
.footer-main { padding-block: 65px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-brand img { width: 240px; }
.footer-brand p { max-width: 340px; color: #aab4bb; }
.footer-main h2 { margin: 0 0 17px; color: var(--white); font-size: .82rem; text-transform: uppercase; }
.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { color: var(--yellow); }
.footer-main span, .footer-main a { overflow-wrap: anywhere; }
.footer-bottom { padding-block: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #aab4bb; font-size: .8rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.footer-bottom svg { width: 15px; }

.legal-page { min-height: 100vh; padding: 150px 0 90px; background: var(--white); }
.legal-content { max-width: 800px; }
.legal-content h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; }
.legal-content h2 { margin-top: 36px; font-size: 1.35rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content .updated { color: var(--muted); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; top: 84px; right: 0; left: 0; display: none; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav .button { justify-self: start; }
  .hero { min-height: 760px; }
  .hero-shade { background: rgba(10, 15, 20, .55); }
  .hero-content { text-align: center; }
  .hero-content > * { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .section-heading, .about-grid, .capability-layout, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card-wide { grid-column: auto; display: block; }
  .service-card-wide img { aspect-ratio: 4/3; }
  .service-card-wide .service-body { padding: 28px; display: block; }
  .service-body h3, .service-body p { min-height: 0; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(2) { border-right: 0; }
  .process-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  html { scroll-padding-top: 72px; }
  .header-inner { height: 72px; }
  .brand { width: 155px; }
  .site-nav { top: 72px; }
  .hero { min-height: calc(100svh - 24px); margin-top: 72px; align-items: flex-end; }
  .hero-media { object-position: 59% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,15,20,.9) 0%, rgba(10,15,20,.48) 62%, rgba(10,15,20,.22) 100%); }
  .hero-content { padding-block: 80px 56px; text-align: left; }
  .hero-content > * { margin-inline: 0; }
  .hero h1 { font-size: 3.25rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { justify-content: flex-start; align-items: flex-start; flex-direction: column; gap: 18px; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .trust-grid > div { min-height: 62px; padding: 14px 6px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding-block: 80px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .about h2, .capabilities h2, .service-area h2, .contact h2 { font-size: 2.45rem; }
  .service-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 46px; }
  .about-image-wrap { padding: 0 18px 18px 0; }
  .about-caption { font-size: .78rem; }
  .capability-list { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: auto; padding: 24px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-list h3 { margin-top: 25px; }
  .area-mark { min-height: 200px; }
  .contact-grid { gap: 48px; }
  .estimate-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
  .footer-brand, .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
