/* ==================================================
   THOMPSON PROPERTY CARE
   Main Website Styles
   ================================================== */


/* ---------- RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #080a0d;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}


/* ---------- HEADER ---------- */

.header {
  background: rgba(8, 10, 13, 0.97);
  border-bottom: 1px solid #252a30;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 225px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

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

nav a {
  color: #d8dadd;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.2s ease;
}

nav a:hover {
  color: #369be0;
}

.nav-quote {
  border: 1px solid #2585c7;
  padding: 10px 18px;
  border-radius: 4px;
}

.nav-quote:hover {
  background: rgba(37, 133, 199, 0.1);
}


/* ---------- HERO ---------- */

.hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(37, 133, 199, 0.17),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #0d1116 0%,
      #050607 75%
    );

  border-bottom: 1px solid #20252b;
}

.hero-content {
  padding: 85px 0;
}

.eyebrow,
.section-label {
  color: #369be0;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -4px;
  max-width: 900px;
  text-transform: uppercase;
}

.hero h1 span {
  color: #7f8992;
}

.hero-text {
  color: #b6bbc1;
  font-size: 1.1rem;
  max-width: 670px;
  margin-top: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.primary {
  background: #2585c7;
  color: #ffffff;
}

.primary:hover {
  background: #3299df;
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid #4b525a;
  color: #e8e8e8;
}

.secondary:hover {
  border-color: #2585c7;
  color: #369be0;
  transform: translateY(-2px);
}

.location {
  margin-top: 24px;
  color: #707880;
  font-size: 0.88rem;
}


/* ---------- GENERAL SECTIONS ---------- */

.services,
.about,
.service-area,
.contact {
  padding: 95px 0;
}

.services h2,
.about h2,
.service-area h2,
.contact h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-intro {
  color: #979ea5;
  max-width: 600px;
  margin-top: 18px;
}


/* ---------- SERVICES ---------- */

.services {
  background: #0d1014;
}

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

.service-card {
  min-height: 205px;
  padding: 32px;
  background: #13171c;
  border: 1px solid #272d34;
  border-radius: 5px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  border-color: #2585c7;
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: #9299a0;
}


/* ---------- ABOUT ---------- */

.about {
  background: #080a0d;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.about-grid > div:last-child {
  color: #aeb3b8;
  font-size: 1.05rem;
}

.about-grid > div:last-child p + p {
  margin-top: 18px;
}


/* ---------- SERVICE AREA ---------- */

.service-area {
  background:
    linear-gradient(
      120deg,
      rgba(37, 133, 199, 0.12),
      transparent 50%
    ),
    #101419;

  border-top: 1px solid #252a30;
  border-bottom: 1px solid #252a30;
}

.service-area p:last-child {
  color: #a5abb1;
  margin-top: 22px;
  font-size: 1.05rem;
  max-width: 700px;
}


/* ---------- CONTACT ---------- */

.contact {
  background: #080a0d;
}

.contact-box {
  text-align: center;
  max-width: 850px;
}

.contact-box p:not(.section-label) {
  color: #a7adb3;
  margin: 22px auto 0;
  max-width: 600px;
}

.contact-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 15px;
}


/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid #252a30;
  padding: 38px 0;
  background: #050607;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #747b82;
  font-size: 0.82rem;
}

.footer-content strong {
  color: #d9dde1;
  letter-spacing: 1px;
}


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

@media (max-width: 760px) {

  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: 90%;
  }


  /* HEADER */

  .nav-container {
    min-height: 78px;
    gap: 12px;
  }

  .header-logo {
    width: 155px;
    max-height: 62px;
  }

  nav {
    gap: 0;
  }

  nav a:not(.nav-quote) {
    display: none;
  }

  .nav-quote {
    padding: 9px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }


  /* HERO */

  .hero {
    min-height: auto;
    align-items: flex-start;

    background:
      radial-gradient(
        circle at 90% 20%,
        rgba(37, 133, 199, 0.12),
        transparent 34%
      ),
      linear-gradient(
        145deg,
        #0d1116 0%,
        #050607 80%
      );
  }

  .hero-content {
    padding: 62px 0 58px;
  }

  .eyebrow,
  .section-label {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.7rem);
    line-height: 0.91;
    letter-spacing: -2.5px;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.65;
    margin-top: 27px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 29px;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }

  .location {
    margin-top: 23px;
    font-size: 0.8rem;
    line-height: 1.4;
  }


  /* SECTIONS */

  .services,
  .about,
  .service-area,
  .contact {
    padding: 68px 0;
  }

  .services h2,
  .about h2,
  .service-area h2,
  .contact h2 {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -1.5px;
  }

  .section-intro {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-top: 17px;
  }


  /* SERVICES */

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 35px;
  }

  .service-card {
    min-height: 0;
    padding: 27px 25px;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 9px;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }


  /* ABOUT */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-grid > div:last-child {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .about-grid > div:last-child p + p {
    margin-top: 16px;
  }


  /* SERVICE AREA */

  .service-area p:last-child {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.65;
  }


  /* CONTACT */

  .contact-box {
    text-align: left;
  }

  .contact-box p:not(.section-label) {
    margin: 18px 0 0;
    font-size: 0.98rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }


  /* FOOTER */

  footer {
    padding: 32px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 18px;
    line-height: 1.5;
  }
}


/* ---------- SMALL PHONES ---------- */

@media (max-width: 390px) {

  .header-logo {
    width: 140px;
  }

  .nav-quote {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

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

.contact-buttons {
  flex-wrap: wrap;
}

.contact-note {
  font-size: 0.85rem;
  color: #707880 !important;
  margin-top: 22px !important;
}

footer a {
  color: #8f969d;
  text-decoration: none;
}

footer a:hover {
  color: #369be0;
}


/* Mobile contact bar hidden on desktop */

.mobile-contact-bar {
  display: none;
}


/* MOBILE */

@media (max-width: 760px) {

  body {
    padding-bottom: 67px;
  }

  .mobile-contact-bar {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    bottom: 0;
    left: 0;
    right: 0;

    height: 67px;

    background: rgba(7, 9, 12, 0.97);
    border-top: 1px solid #2b3138;

    z-index: 2000;
  }

  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.4px;

    border-right: 1px solid #2b3138;
  }

  .mobile-contact-bar a:last-child {
    border-right: none;
    background: #2585c7;
  }

  .mobile-contact-bar a:active {
    background: #1d6fa7;
  }

  .contact-buttons .button {
    width: 100%;
  }

  .contact-note {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* =========================================
   MOBILE QUICK CONTACT BAR - FINAL FIX
   ========================================= */

footer a {
  color: #8f969d;
  text-decoration: none;
}

footer a:hover {
  color: #369be0;
}

.mobile-contact-bar {
  display: none;
}

@media (max-width: 760px) {

  body {
    padding-bottom: 64px;
  }

  .mobile-contact-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.25fr;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 64px;

    background: #080a0d;
    border-top: 1px solid #30363d;

    z-index: 9999;
  }

  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #0d1014;

    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    border-right: 1px solid #30363d;
  }

  .mobile-contact-bar a:last-child {
    border-right: none;
    background: #2585c7;
  }

  .mobile-contact-bar a:active {
    background: #1c6fa8;
  }
}

/* LOGO SIZE + MOBILE HEADER CLEANUP */

.header-logo {
  width: 275px;
  max-height: 82px;
}

@media (max-width: 760px) {

  .header-logo {
    width: 180px;
    max-height: 70px;
  }

  .nav-quote {
    display: none;
  }

}

/* FINAL LOGO SIZING */

.header-logo {
  width: 340px;
  max-height: 105px;
  height: auto;
}

@media (max-width: 760px) {

  .nav-container {
    justify-content: center;
  }

  .brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .header-logo {
    width: 220px;
    max-height: 90px;
    height: auto;
  }

  .nav-quote {
    display: none;
  }
}

/* OTHER JOBS */

.other-jobs {
  margin-top: 42px;
  padding: 28px 30px;
  border-left: 3px solid #2585c7;
  background: #101419;
}

.other-jobs h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.other-jobs p {
  color: #9299a0;
}

.other-jobs-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.other-jobs-buttons .button {
  padding: 10px 18px;
  font-size: 0.85rem;
}

@media (max-width: 760px) {

  .other-jobs {
    margin-top: 28px;
    padding: 23px 20px;
  }

  .other-jobs-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .other-jobs-buttons .button {
    width: 100%;
  }

}
