:root {
  --red: #e30613;
  --black: #111;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  margin: 0;
  background: white;
  color: var(--black);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2374e5;
  outline-offset: 5px;
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

.wrap {
  width: min(1240px, 88%);
  margin: auto;
}

/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 23px 6%;
  background: white;
}

.brand {
  width: 260px;
  display: block;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-block;
  background: var(--red);
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: #ba0611;
}

/* HERO */

.hero {
  position: relative;
  min-height: 640px;
  background: #111 url("assets/hero.png") center/cover no-repeat;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #090909e8 0%,
    #090909b0 35%,
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  width: min(1240px, 88%);
  margin: auto;
  padding: 78px 0 100px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 25px;
}

h1,
h2,
h3 {
  font-family:
    Impact,
    "Arial Narrow",
    "Liberation Sans Narrow",
    Arial,
    sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -1px;
  margin: 0;
}

h1 {
  font-size: clamp(65px, 8.2vw, 118px);
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
}

h3 {
  font-size: 40px;
}

h1 span,
h2 span {
  color: var(--red);
}

.lead {
  font-size: 24px;
  line-height: 1.4;
  max-width: 590px;
  margin: 25px 0 30px;
}

/* DIAGONAL RED BAND */

.ribbon {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 22px 6%;
  background: var(--red);
  color: white;
  font-size: 24px;
  letter-spacing: 7px;
  font-weight: 800;
  transform: skewY(3deg);
}

/*
  Extend the tilted background above and below the band.
  This covers the exposed corners without moving the band
  out of its normal position in the page.
*/

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(2.63vw + 2px);
  background: var(--red);
  pointer-events: none;
  z-index: -1;
}

.ribbon::before {
  bottom: calc(100% - 1px);
}

.ribbon::after {
  top: calc(100% - 1px);
}

/* SERVICES */

.services {
  padding: calc(70px + 5.3vw) 0 70px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
  margin-bottom: 40px;
}

.section-head > p {
  max-width: 350px;
  color: #555;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cards article {
  color: white;
  background: linear-gradient(145deg, #242424, #080808);
  padding: 35px;
  position: relative;
  border-top: 4px solid var(--red);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.cards .red {
  background: var(--red);
  border-color: #111;
}

.number {
  font-size: 14px;
  margin: 0 0 20px;
  letter-spacing: 3px;
}

.number::after {
  content: "";
  display: inline-block;
  background: #fff8;
  width: 50px;
  height: 1px;
  vertical-align: middle;
  margin-left: 15px;
}

.cards ul {
  list-style: none;
  padding: 0;
  line-height: 1.9;
  margin: 25px 0;
  font-size: 16px;
}

.cards a {
  margin-top: auto;
  font-weight: bold;
  border-bottom: 1px solid #fff5;
  align-self: flex-start;
}

.small {
  font-size: 12px;
  margin-top: -10px;
}

/* WEBSITE SHOWCASE */

.work {
  padding: 65px 0;
  background: #111;
  color: white;
}

.website-heading > p {
  color: #ccc;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.website-card {
  min-width: 0;
}

.website-image {
  display: block;
  border: 1px solid #444;
  overflow: hidden;
  background: #222;
}

.website-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -5.62%;
  transition: transform 0.3s ease;
}

.website-image:hover img {
  transform: scale(1.02);
}

.website-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.website-info h3 {
  font-size: 32px;
}

.website-info p {
  color: #bbb;
  font-size: 14px;
  margin: 8px 0 0;
}

.website-info > a {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  border-bottom: 2px solid var(--red);
  padding-bottom: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 65px;
  padding: 75px 0;
}

.about .lead {
  margin-top: 0;
}

.about > div > p:not(.lead) {
  color: #555;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.steps span {
  font-size: 54px;
  color: #ccc;
  font-family: Impact, Arial, sans-serif;
}

.steps h3 {
  font-size: 28px;
}

.steps p {
  font-size: 14px;
  line-height: 1.5;
}

/* TESTIMONIALS */

.testimonials {
  padding: 65px 0;
  background: #f3f3f3;
}

.testimonial-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 35px;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-color: var(--red) #ddd;
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}

.testimonial-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  background: white;
  border-top: 4px solid var(--red);
  padding: 30px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 25px;
}

.testimonial-name {
  font-size: 15px;
  font-weight: bold;
  margin: auto 0 0;
  padding-top: 10px;
  color: var(--red);
}

.quote-mark {
  display: block;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  line-height: 0.8;
  height: 65px;
  flex-shrink: 0;
  margin: 5px 0 15px;
  font-weight: bold;
}

/* CONTACT */

.contact {
  background: var(--red);
  color: white;
  padding: 65px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact h2 span {
  color: #111;
}

.contact-layout > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 1px solid #ffffff70;
  padding-left: 50px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.white {
  background: white;
  color: #111;
  margin-bottom: 10px;
}

.white:hover {
  background: #eee;
}

/* FOOTER */

footer {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

footer .brand {
  width: 220px;
}

footer p {
  color: #666;
}

/* QUOTE PAGE */

/* QUOTE PAGE FULL-HEIGHT LAYOUT
   Flex keeps the footer at the bottom without preventing the sticky header. */
body.quote-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.quote-page main {
  flex: 1;
}


.quote-hero {
  background: #111;
  color: white;
  padding: 60px 0;
}

.quote-hero h1 {
  font-size: clamp(55px, 7vw, 88px);
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding: 60px 0;
}

.details {
  overflow-wrap: anywhere;
}

.details h2 {
  font-size: 42px;
}

.details a {
  display: block;
  margin: 15px 0;
}

.quote-form {
  background: #f3f3f3;
  padding: 35px;
  border-top: 5px solid var(--red);
}

label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
}

input,
textarea,
select {
  display: block;
  margin-top: 7px;
  padding: 12px;
  width: 100%;
  border: 1px solid #aaa;
  background: white;
  border-radius: 3px;
  color: #111;
}

textarea {
  min-height: 145px;
  resize: vertical;
}

.demo {
  padding: 15px;
  background: white;
  border-left: 3px solid var(--red);
  font-size: 14px;
}

.status {
  font-weight: 700;
  margin-top: 20px;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: white;
  border: 1px solid #ffffff80;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px #0003;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  background: #ba0611;
}

.back-to-top span {
  font-size: 22px;
  line-height: 1;
}

/* TABLET */

@media (max-width: 900px) {
  header {
    gap: 20px;
  }

  .brand {
    width: 220px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    background-position: 60% center;
  }

  .cards article {
    padding: 25px;
  }

  .section-head {
    gap: 30px;
  }

  .contact-layout > div {
    padding-left: 25px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 6%;
    gap: 20px;
  }

  nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  nav .button {
    font-size: 14px;
    padding: 10px 15px;
  }

  .hero {
    min-height: 670px;
    background-position: 68% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      #090909db,
      #090909aa 60%,
      #09090930
    );
  }

  .hero-inner {
    padding: 45px 0 100px;
  }

  h1 {
    font-size: 64px;
  }

  .hero .lead {
    font-size: 21px;
    max-width: 320px;
  }

  .ribbon {
    font-size: 17px;
    letter-spacing: 4px;
  }

  .section-head {
    display: block;
  }

  .services {
    padding: calc(55px + 5.3vw) 0 45px;
  }

  .cards,
  .about,
  .contact-layout,
  .quote-layout,
  .website-grid {
    grid-template-columns: 1fr;
  }

  .cards article {
    min-height: 330px;
  }

  .website-info {
    flex-wrap: wrap;
    gap: 15px;
  }

  .about {
    gap: 30px;
    padding: 55px 0;
  }

  .about h2 {
    font-size: 50px;
  }

  .steps {
    gap: 15px;
  }

  .testimonials {
    padding: 50px 0;
  }

  .testimonial-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-card {
    flex-basis: 100%;
    padding: 24px;
  }

  .testimonial-card blockquote {
    font-size: 18px;
  }

  .contact-layout {
    gap: 35px;
  }

  .contact-layout > div {
    border: 0;
    padding: 0;
  }

  .contact h2 {
    font-size: 50px;
  }

  footer {
    flex-wrap: wrap;
  }

  .quote-layout {
    gap: 30px;
  }

  .quote-form {
    padding: 25px;
  }

  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    padding: 10px 14px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .website-image img {
    transition: none;
  }
}

.ribbon {
  padding-left: max(6vw, calc((100vw - 1240px) / 2));
  padding-right: max(6vw, calc((100vw - 1240px) / 2));
}
/* STICKY SITE HEADER */
header#top {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* Keep in-page section headings visible below the sticky header. */
#graphic-design,
#printing,
#work,
#about,
#services,
#quote,
#main {
  scroll-margin-top: 125px;
}

@media (max-width: 700px) {
  #graphic-design,
  #printing,
  #work,
  #about,
  #services,
  #quote,
  #main {
    scroll-margin-top: 190px;
  }
}
