/* =========================================================================
   Keeton Construction — styles.css
   Brand: near-black + white + orange-red accent. Industrial, bold, clean.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0d0d0d;
  --ink-2: #141519;
  --ink-3: #1d1f24;
  --white: #ffffff;
  --paper: #ffffff;
  --paper-2: #f4f3ef;   /* light concrete */
  --paper-3: #eae8e2;
  --text: #191a1d;
  --text-2: #565a61;    /* muted body */
  --line: #e4e2db;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ee4a23;
  --accent-2: #d23c16;  /* hover / darker */
  --accent-soft: rgba(238, 74, 35, 0.10);
  --ring: rgba(238, 74, 35, 0.45);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --shadow: 0 14px 36px rgba(0,0,0,.10);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.22);

  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: 0;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: .9rem;
}
.eyebrow-accent { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.02;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--ink);
}

.section-lead {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-top: .9rem;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .98rem;
  line-height: 1;
  padding: .95em 1.5em;
  border: 2px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-lg { padding: 1.1em 1.8em; font-size: 1.08rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(238,74,35,.28); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(238,74,35,.36); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-call { background: var(--accent); color: #fff; padding: .7em 1.05em; font-size: .92rem; border-radius: 8px; }
.btn-call:hover { background: var(--accent-2); }

.link-call { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.link-call:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(0,0,0,.35); background: rgba(10,10,10,.97); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand-mark { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 2.5px; font-size: 1.18rem; }
.brand-sub { font-family: var(--font-display); font-weight: 500; letter-spacing: 4.5px; font-size: .6rem; color: var(--accent); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  padding: .3rem 0;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-call .call-short { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Real job-site photo, darkened so the headline stays high-contrast.
     Layer order: orange glow > dark overlay > photo > fallback gradient. */
  background:
    radial-gradient(1200px 500px at 82% 8%, rgba(238,74,35,.16), transparent 55%),
    linear-gradient(180deg, rgba(11,11,11,.90) 0%, rgba(11,11,11,.74) 45%, rgba(8,8,8,.94) 100%),
    url("../assets/img/hero.jpg") center 58% / cover no-repeat,
    linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #ff7a4d);
}
.hero-inner {
  position: relative;
  padding-block: clamp(4rem, 11vh, 8rem);
  max-width: 860px;
}
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 8.5vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.5px;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 620px;
  font-size: 1.16rem;
  color: rgba(255,255,255,.82);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-phone { margin-top: 1rem; color: rgba(255,255,255,.7); font-size: 1rem; }
.hero-phone .link-call { color: #fff; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 2.4rem; }
.trust-chips li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: rgba(255,255,255,.9); font-size: .98rem; }
.trust-chips .ico, .trust-chips svg { width: 1.2rem; height: 1.2rem; color: var(--accent); fill: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.6rem, 8vw, 6rem); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }

.services { background: var(--paper); }
.why { background: var(--paper-2); }
.work { background: var(--paper); }
.process { background: var(--ink); }
.about { background: var(--paper-2); }
.area { background: var(--paper); }
.contact { background: var(--ink); }

.grid { display: grid; gap: 1.5rem; }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(238,74,35,.35); }
.service-ico {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  transition: background .2s ease, color .2s ease;
}
.service-ico svg { width: 27px; height: 27px; fill: currentColor; }
.service-card:hover .service-ico { background: var(--accent); color: #fff; }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: .3px; color: var(--ink); margin-bottom: .35rem; }
.service-card p { color: var(--text-2); font-size: .97rem; }

.services-note { text-align: center; margin-top: 2.2rem; color: var(--text-2); font-size: 1.02rem; }
.services-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.services-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--accent); color: #fff; padding-block: clamp(2.4rem, 5vw, 3.4rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.cta-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; }
.cta-text { color: rgba(255,255,255,.92); margin-top: .35rem; font-size: 1.08rem; }

/* ---------- Why us ---------- */
.why-grid { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 1.8rem; }
.why-ico {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .9rem;
}
.why-ico svg { width: 26px; height: 26px; fill: currentColor; }
.why-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-bottom: .35rem; letter-spacing: .3px; }
.why-item p { color: var(--text-2); }

/* ---------- Gallery ---------- */
.gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,13,13,0);
  transition: background .25s ease;
}
.gallery-item::before {
  content: "+";
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(13,13,13,.28); }
.gallery-item:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Process (dark) ---------- */
.process .section-title { color: #fff; }
.process .section-lead { color: rgba(255,255,255,.72); }
.process-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.process-step { position: relative; padding-top: .5rem; border-top: 3px solid rgba(255,255,255,.10); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  margin: .6rem 0 .6rem;
}
.process-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: #fff; margin-bottom: .5rem; letter-spacing: .3px; }
.process-step p { color: rgba(255,255,255,.74); }
.process-step p a { color: #fff; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { display: grid; place-items: center; }
.about-badge {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 340px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  border-left: 6px solid var(--accent);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}
.about-badge::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 15%, rgba(238,74,35,.18), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M0 44L44 0' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
}
.about-badge > * { position: relative; }
.about-badge-k { display: grid; place-items: center; }
.about-logo { width: min(232px, 66%); height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); }
.about-badge-text { font-family: var(--font-display); font-weight: 600; letter-spacing: 1px; font-size: 1.45rem; line-height: 1.2; }
.about-copy p { color: var(--text-2); margin-top: 1rem; }
.about-copy .btn { margin-top: 1.6rem; }
.about-copy .section-title { margin-top: 0; }

/* ---------- Service area ---------- */
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 820px; margin: 0 auto; }
.area-list li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .4px;
  color: var(--ink);
  font-size: 1rem;
}
.area-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- Contact (dark) ---------- */
.contact-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact .section-head { text-align: left; margin: 0; }
.contact .section-title { color: #fff; }
.contact-copy > p { color: rgba(255,255,255,.75); margin-top: 1rem; font-size: 1.08rem; }
.contact-copy .btn { margin-top: 1.7rem; }
.contact-details {
  display: grid;
  gap: 1.15rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.contact-details li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(238,74,35,.16);
  color: var(--accent);
}
.contact-ico svg { width: 22px; height: 22px; fill: currentColor; }
.contact-details strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .1rem;
}
.contact-details li > span { display: flex; flex-direction: column; color: rgba(255,255,255,.9); font-size: 1.06rem; }
.contact-details a { color: #fff; text-decoration: none; }
.contact-details a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0a; color: rgba(255,255,255,.7); padding-block: 2.6rem; border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; place-items: center; gap: 1rem; text-align: center; }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: rgba(255,255,255,.6); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; }
.footer-nav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-nav a.js-call { color: var(--accent); font-weight: 700; }
.footer-legal { font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- Mobile sticky call bar ---------- */
.mobile-callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 1rem;
  padding: .95rem 1rem calc(.95rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0,0,0,.28);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.mobile-callbar .ico { width: 1.25rem; height: 1.25rem; }
.mobile-callbar.visible { transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.in-view { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  background: rgba(6,6,6,.92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #fff; font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; margin-top: 1rem; font-size: 1.05rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 46px; height: 46px;
  border: none; background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.6rem; line-height: 1;
  border-radius: 50%;
}
.lightbox-close:hover { background: var(--accent); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(10px);
    padding: .5rem 22px 1.4rem;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-125%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line-dark); font-size: 1.06rem; }
  .main-nav a::after { display: none; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-badge { max-width: 520px; min-height: 300px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact .section-head { text-align: center; }
}

@media (max-width: 768px) {
  .mobile-callbar { display: flex; }
  body { padding-bottom: 62px; }  /* room for sticky call bar */
  .site-footer { padding-bottom: calc(2.6rem + 10px); }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .trust-chips { gap: .7rem 1.3rem; }
}

@media (max-width: 460px) {
  .brand-sub { letter-spacing: 3.5px; }
  .header-call .call-full { display: none; }
  .header-call .call-short { display: inline; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .mobile-callbar { font-size: .92rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .will-reveal { opacity: 1; transform: none; }
}
