/* ==========================================================
   By The Foot LLC — Site Stylesheet
   Theme derived from logo: black, hardhat-yellow, white
   ========================================================== */

:root {
  --black: #0A0A0A;
  --ink: #141414;
  --steel: #1F1F1F;
  --asphalt: #2A2A2A;
  --concrete: #6B6B6B;
  --line: #E6E6E6;
  --bone: #F5F4F1;
  --white: #FFFFFF;
  --yellow: #FFC72C;
  --yellow-deep: #E6AE13;
  --yellow-soft: #FFF4CC;

  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.18);

  --t-fast: 150ms ease;
  --t-base: 240ms ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--yellow-deep); }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 .4em;
  color: var(--black);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: .08em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  padding: 6px 0 6px;
  margin-bottom: 14px;
  border-top: 3px solid var(--yellow);
}

.lead { font-size: 1.18rem; color: var(--concrete); max-width: 60ch; }

/* ---------- Caution-tape divider ---------- */
.caution-tape {
  height: 18px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--yellow) 0 22px,
      var(--black) 22px 32px
    );
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: .04em;
  font-size: 1.05rem;
}

.brand img { height: 72px; width: auto; }
@media (max-width: 520px) { .brand img { height: 56px; } }

.brand small {
  display: block;
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--concrete);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .92rem;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid var(--black);
  transition: transform var(--t-fast), background var(--t-fast);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--black); color: var(--yellow) !important; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: var(--black);
  color: var(--yellow);
  border: 0;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  font-size: 1rem;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--black);
}
.btn-primary:hover {
  background: var(--black);
  color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--yellow); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 92px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,199,44,.18), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,199,44,.04) 0 24px, transparent 24px 56px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .9fr; gap: 60px; align-items: center; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
}
.hero h1 .accent {
  color: var(--yellow);
  display: inline-block;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 6px; background: var(--yellow);
}

.hero .eyebrow { color: var(--yellow); border-top-color: var(--yellow); }

.hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 58ch; }

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-badge {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  position: relative;
}
.hero-badge::before {
  content: "";
  position: absolute; inset: -10px;
  border: 1px dashed rgba(255,199,44,.4);
  border-radius: 6px;
  pointer-events: none;
}
.hero-badge .big {
  font-family: 'Oswald', sans-serif;
  font-size: 7.5rem;
  line-height: 1;
  color: var(--yellow);
  font-weight: 700;
}
.hero-badge .label {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 8px;
  font-size: 1rem;
  text-align: center;
}
.hero-badge .sub {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}

/* Logo-centric hero (used on home page) */
.hero-logo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  position: relative;
}
.hero-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(255,199,44,.25));
}
.hero-logo .years-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 20px;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .9rem;
}
.hero-logo .years-pill strong { font-size: 1.2rem; }

/* Watermark logo behind page-hero on inner pages */
.page-hero .watermark {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: .08;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .page-hero .watermark { display: none; }
  .hero-logo img { max-width: 320px; }
}

/* ---------- Generic page hero (for inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(255,199,44,.18), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,199,44,.04) 0 24px, transparent 24px 56px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; max-width: 880px; }
.page-hero h1 { color: var(--white); }
.page-hero h1 .accent { color: var(--yellow); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 58ch; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--bone); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { display: block; }

/* ---------- Service / Feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px; background: var(--yellow);
  transform: translateY(-6px);
  transition: transform var(--t-base);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: translateY(0); }

.card .icon {
  width: 56px; height: 56px;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--black);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--concrete); }
.card .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .9rem;
  color: var(--black);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.card .more:hover { color: var(--yellow-deep); }

/* ---------- Two-column ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cols-2 .col-img {
  border: 2px solid var(--black);
  background:
    repeating-linear-gradient(45deg, var(--bone) 0 12px, #ECEAE3 12px 24px);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--concrete);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .2em;
  position: relative;
}
.cols-2 .col-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--yellow);
  color: var(--black);
  padding: 6px 10px;
  font-size: .8rem;
  border: 2px solid var(--black);
  z-index: 2;
}

/* Photo variant of col-img */
.cols-2 .col-img.has-img { background: var(--black); overflow: hidden; }
.cols-2 .col-img.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--yellow);
  background: var(--black);
  color: var(--white);
}
.stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,199,44,.35);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem;
  color: var(--yellow);
  line-height: 1;
  font-weight: 700;
}
.stat .lbl {
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  color: var(--black);
  padding: 56px 0;
  text-align: center;
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  position: relative;
}
.cta-band h2 { color: var(--black); margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; color: var(--steel); }

/* ---------- Process list ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 26px;
  position: relative;
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -22px; left: 18px;
  background: var(--black);
  color: var(--yellow);
  padding: 4px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
}
.step h4 { margin: 6px 0 8px; font-size: 1.1rem; }
.step p { color: var(--concrete); margin: 0; }

/* ---------- List with check ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "✓";
  display: inline-grid; place-items: center;
  flex: 0 0 24px;
  width: 24px; height: 24px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  margin-top: 4px;
}

/* ---------- Gallery placeholders ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gallery .tile {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, #1B1B1B 0 14px, #232323 14px 28px);
  border: 2px solid var(--black);
  position: relative;
  overflow: hidden;
}
.gallery .tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 100%);
}
.gallery .tile::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px; left: 12px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  z-index: 1;
}
.gallery .tile .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow);
  color: var(--black);
  padding: 4px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  z-index: 2;
}

/* Photo tiles — show real image inside the tile */
.gallery .tile.photo {
  background: var(--black);
}
.gallery .tile.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.gallery .tile.photo:hover img {
  transform: scale(1.06);
}
.gallery .tile.photo::before {
  /* Stronger bottom gradient so the label is always readable */
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.gallery .tile.photo::after {
  z-index: 2;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--black);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--black);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(255,199,44,.35);
}
.form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .small {
  font-size: .85rem;
  color: var(--concrete);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.8);
  padding: 56px 0 24px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-size: .9rem;
  letter-spacing: .15em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand small { color: rgba(255,255,255,.6); }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 10px; max-width: 32ch; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom .license { color: var(--yellow); letter-spacing: .15em; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 70px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { padding: 24px; }
  .hero-badge .big { font-size: 5.5rem; }
  .cols-2 { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,199,44,.35); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    background: var(--white);
    padding: 12px 0;
    border-top: 2px solid var(--yellow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 4px 24px; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .form .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,199,44,.35); }
}
