/* =========================================================
   Global
========================================================= */
:root {
  --blue: #0f3557;
  --dark: #1b1f27;
  --orange: #ff7a1a;
  --light: #f4f6f8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
}

/* Generic buttons */

.btn-primary {
  background-color: var(--orange) !important;
  color: #fff !important;
  padding: 0.7rem 1.35rem;
  border-radius: 0.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-primary:hover {
  background-color: #e76b0c !important;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 0.65rem 1.05rem;
  border-radius: 0.55rem;
  background: transparent;
  font-weight: 500;
}

/* outline button (hero secondary) */
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 0.6rem;
  font-weight: 600;
  background: transparent;
  display: inline-block;
  transition: 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}


/* =========================================================
   Header / Nav
========================================================= */
header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  display: inline-flex;
  align-items: center;
}

.jj-logo {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: #223;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-sm {
  background-color: var(--orange);
  color: #fff;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s ease;
}

.btn-sm:hover {
  background-color: #e76b0c;
}

/* Nav dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  color: #223;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 190px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  z-index: 100;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #223;
  padding: 0.65rem 1rem;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #f4f6f8;
  color: var(--orange);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: var(--orange);
}

/* Hamburger / pancake button */
.nav-toggle {
  display: none;              /* hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #333;           /* dark so it shows on white header */
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


/* =========================================================
   Home Hero
========================================================= */
.hero-wrap {
  position: relative;
  background: url('../images/driveway.jpg') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 6rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(4, 7, 11, 0.85) 0%,
    rgba(4, 7, 11, 0.1) 80%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.15rem, 3.2vw, 2.8rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 550px;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-aside {
  background: rgba(12, 16, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem 1.3rem;
  backdrop-filter: blur(16px);
  color: #fff;
  max-width: 360px;
  margin-left: auto;
}

.hero-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.hero-aside p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero-aside ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.hero-aside li {
  font-size: 0.88rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* =========================================================
   Home - Service Cards under hero
========================================================= */
.service-cards {
  max-width: 1180px;
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.25rem;
}

.service-card {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 26px 46px rgba(15, 43, 73, 0.12);
  padding: 1.3rem 1.1rem 1.1rem;
  border-top: 4px solid transparent;
  transition: 0.2s ease-out;
}

.service-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--orange);
}

.service-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #101119;
}

.service-card p {
  font-size: 0.88rem;
  color: #5a6371;
  margin-bottom: 0.4rem;
}

.service-card a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
}

/* =========================================================
   Tan Residential / Commercial Section
========================================================= */
.jj-divider-line {
  height: 12px;
  background: #0f3557;
  width: 100%;
}

.jj-service-panels {
  background: #e9ddcf;
  padding: 2.75rem 0 3.25rem;
}

.jj-panel {
  max-width: 1180px;
  margin: 0 auto 2.75rem;
  padding: 0 1.25rem;
}

/* header aligns with right column */
.jj-panel__header {
  display: grid;
  grid-template-columns: 360px 1fr;
  column-gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 1.9rem;
}

.jj-panel__header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #101010;
}

.jj-panel__header .dot {
  width: 11px;
  height: 11px;
  background: #e96522;
  border-radius: 50%;
  display: inline-block;
}

.jj-panel__header p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
  max-width: 540px;
  text-align: left;
}

.jj-panel__body {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
}

.jj-panel__mainimg {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  flex: 0 0 360px;
}

.jj-panel__mainimg img {
  width: 100%;
  height: auto;
  display: block;
}

.jj-panel__side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.jj-panel__small {
  background: #fff;
  border-radius: 6px;
  padding: 1rem 1.1rem 0.95rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  position: relative;
}

.jj-panel__small h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: #101010;
}

.jj-panel__small p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
  max-width: 75%;
}

.jj-panel__badge {
  width: 29px;
  height: 29px;
  background: #0f3557;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  position: absolute;
  top: -0.8rem;
  right: 1.1rem;
}

.jj-panel__cta {
  text-align: center;
  margin-top: 1.8rem;
}

.jj-btn {
  background: var(--orange);
  color: #fff;
  display: inline-block;
  padding: 0.75rem 2.6rem 0.78rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: 0.15s ease-out;
}

.jj-btn:hover {
  opacity: 0.92;
}

/* =========================================================
   About / Story Section
========================================================= */
.jj-about {
  background: #fff;
  padding: 3.5rem 0 3rem;
}

.jj-about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 0 1.25rem;
}

.jj-about__image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.jj-about__card {
  background: #fff;
  border-left: 5px solid #0f3557;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.25rem;
  border-radius: 10px;
  position: relative;
}

.jj-about__card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #0f3557;
}

.jj-about__card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.jj-about__btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: 0.2s ease-in-out;
}

.jj-about__btn:hover {
  opacity: 0.9;
}

/* =========================================================
   Why Trust Section
========================================================= */
.jj-trust {
  background: #fff;
  padding: 3rem 0 3rem;
  text-align: center;
}

.jj-hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

.jj-trust__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.jj-trust__inner h2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #0f3557;
  margin-bottom: 2rem;
}

.jj-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.jj-trust__item {
  text-align: center;
  max-width: 280px;
}

.jj-trust__item .icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--orange);
}

.jj-trust__item h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 0.3rem;
}

.jj-trust__item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* =========================================================
   Recent Projects & CTA (from home)
========================================================= */
.section {
  max-width: 1180px;
  margin: 3.25rem auto 0;
  padding: 0 1.25rem 3.25rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section-title p {
  max-width: 520px;
  margin: 0 auto;
  color: #5a6371;
  font-size: 0.98rem;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.project-card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}

.project-card .info {
  padding: 0.9rem 0.9rem 1.1rem;
}

.project-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.project-card span {
  font-size: 0.8rem;
  color: #707887;
}

.cta {
  background: linear-gradient(135deg, #0f3557 0%, #182c40 70%);
  border-radius: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
  margin-top: 2rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

/* =========================================================
   Inner Page Hero (Driveway, etc.)
========================================================= */
.inner-hero {
  background: linear-gradient(120deg, #0f1114 0%, #2f353e 80%);
  color: #fff;
  padding: 4.5rem 1.25rem 4rem;
}

.inner-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.inner-hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.inner-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

.hero-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Inner page sections */
.page-section {
  max-width: 1180px;
  margin: 3.25rem auto 0;
  padding: 0 1.25rem 3.25rem;
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-title h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #0f3557;
}

.page-title p {
  color: #555;
  max-width: 720px;
  font-size: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.content-box {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 12px 30px rgba(15, 43, 73, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 1.5rem 1.5rem 1.6rem;
  margin-bottom: 1rem;
}

.content-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.content-box p {
  font-size: 0.98rem;
  color: #555;
}

.list-check {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.list-check li {
  padding-left: 1.35rem;
  position: relative;
  font-size: 0.95rem;
  color: #333;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}

/* right column callout */
.side-panel {
  background: #f7f7f7;
  border-radius: 0.85rem;
  padding: 1.4rem 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.side-panel h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.side-panel p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.7rem;
}

.side-panel small {
  font-size: 0.8rem;
  color: #666;
}

.driveway-gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.3rem;
}

.dw-card {
  background: #fff;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.dw-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.dw-card .dw-body {
  padding: 0.75rem 0.75rem 1rem;
}

.dw-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.dw-card p {
  font-size: 0.88rem;
  color: #666;
}

/* =========================================================
   Footer
========================================================= */
footer {
  background: #0f1114;
  color: rgba(255, 255, 255, 0.5);
  padding: 2.25rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2.5rem;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    margin: 0;
    max-width: 100%;
  }
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* tan section */
  .jj-panel__header {
    grid-template-columns: 1fr;
  }
  .jj-panel__body {
    flex-direction: column;
  }
  .jj-panel__mainimg {
    max-width: 480px;
  }

  /* inner page */
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* general mobile typography boost */
@media (max-width: 768px) {
  .hero-text h1,
  .inner-hero h1 {
    font-size: 2.1rem;
  }

  .content-box p,
  .page-title p,
  .section-title p,
  .side-panel p,
  .jj-about__card p,
  .jj-panel__header p,
  .jj-trust__item p {
    font-size: 1rem;
  }

  .list-check li,
  .breadcrumbs,
  .side-panel small {
    font-size: 0.9rem;
  }

  .nav-links a,
  .nav-links .dropbtn {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .service-cards {
    grid-template-columns: 1fr;
    margin-top: -4.5rem;
  }
  .hero-wrap {
    padding-top: 4.5rem;
  }
  .cta {
    flex-direction: column;
    text-align: center;
  }
  .jj-service-panels {
    padding: 2.1rem 1rem 3rem;
  }
  .jj-panel {
    margin-bottom: 2.4rem;
  }
  .jj-panel__mainimg {
    flex: 1 1 auto;
  }
  .jj-panel__side .jj-panel__small {
    max-width: none;
  }
  .driveway-gallery {
    grid-template-columns: 1fr;
  }
  .jj-about__inner {
    grid-template-columns: 1fr;
  }
  .jj-about__card {
    padding: 1.8rem;
  }
}

/* Mobile nav behaviour */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: auto;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-radius: 0.9rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .dropbtn {
    display: block;
    padding: 0.25rem 0;
  }

  /* keep dropdown list usable inside the mobile menu */
  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding-top: 0.25rem;
  }

  .dropdown-content a {
    padding: 0.4rem 0;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block;
  }
}
