:root{
  --bg: #f3f3f5;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #555;
  --line: rgba(0,0,0,.08);
  --shadow: 0 18px 40px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.10);
  --radius: 18px;
  --radius-sm: 14px;

  --brand: #8b1c1c;
  --brand-dark: #6f1414;

  /* ✅ backgrounds per your request */
  --hero-image-top: url("IMAGES/tophalfofpagebackground.png");
  --hero-image-bottom: url("IMAGES/bottomhalfpagebackground.png");
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica;
  color: var(--text);
  background: var(--bg);
}

.site{
  max-width: 1180px;
  margin: 28px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 120px;
}

.container{
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* TOP BAR */
.topbar{
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #444;
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  gap: 16px;
}

.topbar__left{
  display:flex;
  gap: 10px;
  opacity: .9;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap: 12px;
}

.topbar__sep{ opacity:.35; }

.topbar__link{
  color: var(--brand);
  text-decoration:none;
  font-weight: 700;
}

.topbar__link:hover{ text-decoration: underline; }

/* HEADER */
.header{
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 0 0;
  gap: 16px;
}

/* ✅ header logo sizing (desktop) */
.brand__logo{
  height: 160px;
  width: auto;
  display:block;
}

/* NAV */
.nav{
  display:flex;
  gap: 28px;
  align-items:center;
}

.nav a{
  color: #2a2a2a;
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
}

.nav a:hover{ color: var(--brand); }

.nav__toggle{
  display:none;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration:none;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, background .15s ease;
}

.btn:hover{
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn--sm{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn--ghost{
  background: #f2f2f2;
  color: #222;
}

.btn--ghost:hover{ background: #e9e9e9; }

/* HERO */
.hero{
  position: relative;
  padding: 28px 0 34px;
  background: #fff;
}

.hero__bg{
  position:absolute;
  inset:0;
  z-index: 0;
}

.hero__bg img,
.hero__bg source{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.hero__bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.70) 38%,
      rgba(255,255,255,.35) 55%,
      rgba(255,255,255,0) 72%
    );
  z-index: 1;
}

.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.15);
  z-index: 2;
}

.hero__grid{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: start;
}

.pill{
  display:inline-block;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 13px;
  color: #333;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.heroLeft{ padding: 22px 0 0; }

.heroLeft__title{
  margin: 14px 0 10px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.heroLeft__text{
  margin: 0;
  max-width: 520px;
  color: #2e2e2e;
  line-height: 1.55;
  font-size: 15px;
}

.heroLeft__actions{
  display:flex;
  gap: 12px;
  margin-top: 18px;
}

/* STATS */
.stats{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
  overflow:hidden;
}

.stat{ padding: 12px 14px; }
.stat + .stat{ border-left: 1px solid rgba(0,0,0,.08); }

.stat__k{
  font-size: 12px;
  color: #5a5a5a;
  font-weight: 900;
}

.stat__v{
  margin-top: 4px;
  font-weight: 900;
  font-size: 15px;
}

/* HERO CARD */
.heroCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 10px;
}

/* ✅ logo inside the fast turnaround card */
.heroCard__logo{
  width: 240px;
  max-width: 100%;
  display:block;
  margin: 6px auto 14px;
}

.heroCard__title{
  margin: 14px 0 10px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.heroCard__text{
  margin: 0 0 10px;
  color: #3a3a3a;
  line-height: 1.55;
  font-size: 14px;
}

.heroCard__list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #2f2f2f;
  line-height: 1.7;
  font-size: 14px;
}

/* SERVICES — bottom-half background image */
.services{
  position: relative;
  padding: 280px 0 220px;
  background: #fff;
  overflow: hidden;
}

/* picture-based services background */
.services__bg{
  position:absolute;
  inset:0;
  z-index: 0;
}

.services__bg img,
.services__bg source{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
/* nudge background up so more of the top portion is visible */
.services__bg img{ object-position: center top; }

.services::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 35%,
      rgba(255,255,255,.50) 55%,
      rgba(255,255,255,.80) 70%,
      rgba(255,255,255,1) 85%,
      rgba(255,255,255,1) 100%
    );
  z-index: 1;
}

.services > .container{
  position: relative;
  z-index: 2;
}

.services__head{
  text-align:center;
  margin-bottom: 26px;
}

.services__eyebrow{
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 8px;
}

.services__title{
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.serviceGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.serviceCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px;
  text-decoration:none;
  color: inherit;
  text-align:center;
  min-height: 240px;
  transition: transform .15s ease;
}

.serviceCard:hover{ transform: translateY(-2px); }

/* keyboard focus for service cards (accessibility) */
.serviceCard:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 6px;
}

.serviceCard__iconWrap{
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display:grid;
  place-items:center;
}

.serviceCard__icon{
  width: 56px;
  height: 56px;
  object-fit: contain;
  display:block;
}

.serviceCard__title{
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.serviceCard__text{
  margin: 0;
  color: #474747;
  line-height: 1.55;
  font-size: 13px;
  min-height: 62px;
}

.serviceCard__link{
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
}

/* FOOTER */
.footer{
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer__inner{
  padding: 18px 0;
  color: #6a6a6a;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .heroCard{ max-width: 520px; }
  .serviceGrid{ grid-template-columns: repeat(2, 1fr); }
  .services{ padding-bottom: 200px; }
}

/* ✅ header logo responsive sizing */
@media (max-width: 980px){
  .brand__logo{ height: 92px; }
}

@media (max-width: 768px){
  .topbar__left{ display:none; }
  .nav__toggle{ display:block; }

  .header__inner{ position: relative; }

  .nav{
    position:absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 12px 14px;

    display:flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: .2s ease;
    z-index: 50;
  }

  .nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .heroLeft__title{ font-size: 44px; }

  .stats{ grid-template-columns: 1fr; }
  .stat + .stat{
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,.08);
  }
}

@media (max-width: 520px){
  .serviceGrid{ grid-template-columns: 1fr; }
  .heroLeft__actions{
    flex-direction: column;
    align-items: flex-start;
  }
  .brand__logo{ height: 80px; }
  .services{ padding-bottom: 140px; }
}
/* =========================
   CONTACT FORM OVERRIDES
   ========================= */

.form label {
  display: block;
  margin-bottom: 14px;
}

.form input,
.form textarea {
  width: 100%;
  box-sizing: border-box;
}

.form textarea {
  min-height: 240px;
  font-size: 16px;
  padding: 14px;
  resize: vertical;
}
