/* =========================================================
   905 CONSTRUCTION LLC
   Arizona-inspired website
   ========================================================= */

:root {
  --black: #111111;
  --charcoal: #1b1b1b;
  --dark-gray: #292929;
  --text: #262626;
  --muted: #6f6f6f;
  --light: #f5f3ee;
  --white: #ffffff;

  --orange: #e86f2d;
  --gold: #e9a23b;
  --desert: #d9c3a3;
  --green: #66725c;

  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #eeeeee;
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.main-nav .portal-link {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.main-nav .portal-link:hover {
  border-color: var(--gold);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.92) 0%,
      rgba(10, 10, 10, 0.76) 43%,
      rgba(10, 10, 10, 0.32) 70%,
      rgba(10, 10, 10, 0.18) 100%
    ),
    url("assets/905-hero.png") center center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--orange),
    var(--gold),
    var(--orange)
  );
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  padding-top: 70px;
  padding-bottom: 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d9d9d9;
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: min(100%, 420px);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.4));
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 7px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #111111;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.button.full {
  width: 100%;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  padding: 100px 0;
}

.section h2 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-intro {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
  background: var(--light);
}

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

.service-card {
  min-height: 280px;
  padding: 30px;
  background: var(--white);
  border-top: 4px solid transparent;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
}

.service-number {
  display: block;
  margin-bottom: 45px;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 100px;
}

.about-copy {
  padding-top: 34px;
}

.about-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.credential {
  margin-top: 35px;
  padding: 22px 25px;
  border-left: 5px solid var(--orange);
  background: var(--light);
}

.credential strong,
.credential span {
  display: block;
}

.credential span {
  margin-top: 4px;
  color: var(--muted);
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
  background: var(--charcoal);
  color: var(--white);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.section-heading-row p {
  max-width: 360px;
  margin: 0;
  color: #bdbdbd;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
}

.project-placeholder {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(232, 111, 45, 0.75),
      rgba(233, 162, 59, 0.2)
    ),
    #303030;
}

.project-placeholder::before {
  content: "905";
  position: absolute;
  right: -10px;
  bottom: -45px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
}

.project-placeholder span {
  position: absolute;
  left: 25px;
  bottom: 25px;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 800;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  background:
    linear-gradient(
      120deg,
      rgba(17, 17, 17, 0.98),
      rgba(41, 41, 41, 0.96)
    );
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 90px;
  align-items: center;
}

.section-kicker.light {
  color: var(--gold);
}

.contact-grid > div:first-child > p:last-child {
  max-width: 600px;
  color: #c8c8c8;
  font-size: 1.08rem;
}

.contact-card {
  padding: 35px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid #e4e4e4;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-of-type {
  margin-bottom: 24px;
}

.contact-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item strong {
  font-size: 1.05rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 40px 0;
  background: #090909;
  color: #bcbcbc;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: var(--white);
}

.footer-brand span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.footer-contact {
  display: flex;
  gap: 25px;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: var(--gold);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 25px;
  border-top: 1px solid #262626;
  font-size: 0.78rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .nav-wrap {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a:not(.portal-link) {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-logo img {
    width: 300px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-copy {
    padding-top: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-placeholder {
    min-height: 280px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 70px 0;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .hero-grid {
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-logo img {
    width: 230px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 25px;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row p {
    margin-top: 20px;
  }

  .contact-card {
    padding: 25px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    flex-direction: column;
    gap: 6px;
  }

  .copyright {
    grid-column: 1;
  }
}
