@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --red: #c8322f;
  --red-dark: #a92725;
  --black: #111111;
  --charcoal: #1b1b1b;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --light: #f5f5f3;
  --border: #e5e5e5;
  --white: #ffffff;
  --container: 1240px;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: 'Montserrat', Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--black);
  line-height: 1.12;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

p {
  margin-top: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 17px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 27px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .9);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: 180px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 38px 0;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 27px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--red);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-quote {
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, .82) 0%,
      rgba(10, 10, 10, .62) 38%,
      rgba(10, 10, 10, .20) 68%,
      rgba(10, 10, 10, .05) 100%
    ),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(to top, rgba(0, 0, 0, .18), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 115px 0;
}

.hero .eyebrow {
  color: #f16c69;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 26px;
  color: var(--white);
  font-size: clamp(48px, 5.7vw, 78px);
  font-weight: 900;
  line-height: 1.03;
}

.hero-text,
.hero p {
  max-width: 670px;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, .94);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* GENERAL SECTIONS */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 800;
}

.section-heading p {
  max-width: 760px;
  margin-bottom: 17px;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

.section-dark .section-heading h2 {
  color: var(--white);
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, .72);
}

/* INTRO */
.intro-section {
  padding-top: 95px;
  padding-bottom: 95px;
}

.intro-heading {
  max-width: 920px;
  margin-bottom: 0;
}

.intro-heading h2 {
  max-width: 900px;
  font-size: clamp(38px, 4.6vw, 58px);
}

/* SERVICE CARDS */
.service-grid,
.service-grid-three {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .11);
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.025);
}

.service-card-content {
  flex: 1;
  padding: 38px 38px 40px;
}

.service-card-content .eyebrow {
  margin-bottom: 13px;
}

.service-card h3 {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 17px;
  color: #555;
  font-size: 15.5px;
  line-height: 1.75;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .035em;
  transition: color .2s ease, transform .2s ease;
}

.text-link:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

/* Three-card homepage layout:
   Residential + Agricultural on row one.
   Commercial spans row two with image left and text right. */
.service-grid-three > .service-card:nth-child(3) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.service-grid-three > .service-card:nth-child(3) .service-image {
  min-height: 360px;
}

.service-grid-three > .service-card:nth-child(3) .service-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.service-grid-three > .service-card:nth-child(3) .service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px;
}

/* Optional commercial callout classes retained for current HTML */
.commercial-callout {
  background: var(--white);
}

.commercial-callout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.commercial-callout h2 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
}

.commercial-callout-copy {
  max-width: 570px;
}

.commercial-callout-copy p {
  margin-bottom: 25px;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

/* AJL DIFFERENCE */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.feature {
  position: relative;
  padding-top: 28px;
  border-top: 3px solid var(--red);
}

.feature-number {
  margin-bottom: 22px;
  color: #d6d6d6;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 21px;
  font-weight: 800;
}

.feature p {
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 15.5px;
  line-height: 1.75;
}

/* SERVICE & REPAIR SPLIT */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 70px;
}

.split-image {
  overflow: hidden;
  box-shadow: 0 15px 38px rgba(0, 0, 0, .10);
}

.split-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.split-content {
  max-width: 560px;
}

.split-content h2,
.split h2 {
  margin-bottom: 25px;
  font-size: clamp(38px, 4vw, 53px);
  font-weight: 800;
}

.split-content p,
.split p {
  margin-bottom: 18px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.split-content .btn {
  margin-top: 12px;
}

/* SERVICE AREA */
.service-area {
  position: relative;
  overflow: hidden;
}

.service-area::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--red);
}

.service-area .section-heading {
  max-width: 820px;
  margin-bottom: 0;
}

.service-area .eyebrow {
  color: #ef7773;
}

.service-area h2 {
  max-width: 760px;
}

.service-area .btn {
  margin-top: 15px;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: 95px 20px;
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -260px;
  right: -150px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, .045);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.cta .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.cta h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
}

.cta p {
  max-width: 670px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .90);
  font-size: 17px;
}

.cta .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.cta .btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* FOOTER */
.footer {
  padding: 72px 0 28px;
  background: #101010;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(200px, 1fr);
  gap: 70px;
}

.footer h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
}

.footer p {
  max-width: 520px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}

.footer a {
  display: block;
  width: fit-content;
  margin-bottom: 11px;
  color: #bdbdbd;
  font-size: 14px;
  transition: color .2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-quote {
  color: #ef6a66 !important;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 24px;
  border-top: 1px solid #303030;
  color: #777;
  font-size: 12px;
}

/* SMALL DESKTOP / NAV COLLAPSE */
@media (max-width: 1100px) {
  .header-inner {
    min-height: 84px;
  }

  .logo img {
    width: 160px;
  }

  .header-quote {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 18px 4% 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px 5px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .split {
    gap: 45px;
  }

  .split-image img {
    height: 460px;
  }
}

/* TABLET */
@media (max-width: 850px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: 620px;
    background-position: 60% center;
  }

  .hero-content {
    padding: 90px 0;
  }

  .hero h1 {
    max-width: 670px;
  }

  .service-grid,
  .service-grid-three {
    grid-template-columns: 1fr;
  }

  .service-grid-three > .service-card:nth-child(3) {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .service-grid-three > .service-card:nth-child(3) .service-image,
  .service-grid-three > .service-card:nth-child(3) .service-image img {
    min-height: 0;
  }

  .service-image img,
  .service-grid-three > .service-card:nth-child(3) .service-image img {
    height: 390px;
  }

  .service-grid-three > .service-card:nth-child(3) .service-card-content {
    padding: 38px 38px 40px;
  }

  .commercial-callout-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature {
    max-width: 700px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split-content {
    max-width: 700px;
  }

  .split-image img {
    height: 430px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .container {
    width: 90%;
  }

  .header-inner {
    min-height: 76px;
  }

  .logo img {
    width: 145px;
  }

  .menu-toggle {
    font-size: 28px;
  }

  .hero {
    min-height: 610px;
    align-items: flex-end;
    background-position: 62% center;
    background-image:
      linear-gradient(
        90deg,
        rgba(10, 10, 10, .84) 0%,
        rgba(10, 10, 10, .66) 60%,
        rgba(10, 10, 10, .30) 100%
      ),
      url('../images/hero.jpg');
  }

  .hero-content {
    width: 100%;
    padding: 85px 0 70px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .hero h1 {
    margin-bottom: 21px;
    font-size: 42px;
    letter-spacing: -.04em;
  }

  .hero-text,
  .hero p {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .intro-section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    margin-bottom: 20px;
    font-size: 35px;
  }

  .intro-heading h2 {
    font-size: 37px;
  }

  .section-heading p {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .service-grid,
  .service-grid-three {
    gap: 25px;
  }

  .service-image img,
  .service-grid-three > .service-card:nth-child(3) .service-image img {
    height: 250px;
  }

  .service-card-content,
  .service-grid-three > .service-card:nth-child(3) .service-card-content {
    padding: 28px 25px 31px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .feature-number {
    font-size: 30px;
  }

  .split-image img {
    height: 300px;
  }

  .split-content h2,
  .split h2 {
    font-size: 36px;
  }

  .cta {
    padding: 72px 20px;
  }

  .cta h2 {
    font-size: 38px;
  }

  .footer {
    padding: 55px 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-company {
    grid-column: auto;
  }

  .footer-bottom {
    margin-top: 40px;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 36px;
  }

  .section-heading h2,
  .intro-heading h2,
  .split-content h2,
  .split h2 {
    font-size: 32px;
  }

  .btn {
    padding: 0 20px;
  }
}


/* ==========================================================
   INNER PAGES — SHARED SYSTEM
   Residential / Agricultural / Commercial / Service /
   About / Contact
   ========================================================== */

/* INNER PAGE HERO */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 95px;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, .025);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.page-hero .eyebrow {
  color: #ef7773;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(46px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.04;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.8;
}

/* INNER PAGE INTRO */
.page-intro {
  padding: 95px 0;
}

.page-intro-inner {
  max-width: 900px;
}

.page-intro h2 {
  margin-bottom: 25px;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 800;
}

.page-intro p {
  max-width: 780px;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

/* CONTENT GRID / INFORMATION CARDS */
.content-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.content-card,
.info-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-card h3,
.info-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 800;
}

.content-card p,
.info-card p {
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 15px;
  line-height: 1.75;
}

/* IMAGE + TEXT CONTENT SECTIONS */
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 70px;
}

.page-split.reverse {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.page-split-image {
  overflow: hidden;
  box-shadow: 0 15px 38px rgba(0, 0, 0, .10);
}

.page-split-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.page-split-content {
  max-width: 580px;
}

.page-split-content h2 {
  margin-bottom: 25px;
  font-size: clamp(38px, 4vw, 53px);
  font-weight: 800;
}

.page-split-content p {
  margin-bottom: 18px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

/* OPTION / FEATURE LISTS */
.option-list,
.check-list {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.option-list li,
.check-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 27px;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.6;
}

.option-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 10px;
  height: 3px;
  background: var(--red);
}

/* DARK INNER-PAGE CALLOUT */
.dark-callout {
  padding: 90px 0;
  background: var(--charcoal);
  color: var(--white);
}

.dark-callout-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 70px;
}

.dark-callout h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
}

.dark-callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.8;
}

.dark-callout .eyebrow {
  color: #ef7773;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: start;
}

.contact-details h2,
.contact-form-wrap h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
}

.contact-details p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--black);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-form,
.quote-form {
  padding: 42px;
  background: var(--light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

/* ABOUT PAGE */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.about-value {
  padding-top: 28px;
  border-top: 3px solid var(--red);
}

.about-value h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 800;
}

.about-value p {
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 15.5px;
  line-height: 1.75;
}

/* SERVICE PAGE */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.repair-card {
  padding: 34px;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.repair-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 800;
}

.repair-card p {
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 15px;
  line-height: 1.75;
}

/* INNER PAGE RESPONSIVE */
@media (max-width: 1000px) {
  .page-split,
  .page-split.reverse,
  .dark-callout-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .page-split-content {
    max-width: 760px;
  }

  .content-grid,
  .info-grid,
  .repair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .page-hero {
    padding: 90px 0 82px;
  }

  .page-intro {
    padding: 80px 0;
  }

  .page-split-image img {
    height: 430px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 75px 0 70px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .page-intro {
    padding: 68px 0;
  }

  .page-intro h2,
  .page-split-content h2,
  .dark-callout h2 {
    font-size: 34px;
  }

  .content-grid,
  .info-grid,
  .repair-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .info-card,
  .repair-card {
    padding: 28px 25px;
  }

  .page-split-image img {
    height: 300px;
  }

  .dark-callout {
    padding: 68px 0;
  }

  .contact-form,
  .quote-form {
    padding: 28px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group.full {
    grid-column: auto;
  }
}

/* ==========================================================
   INNER-PAGE HERO IMAGE SUPPORT
   Keeps the original .page-hero system above intact.
   Supports pages that use <img class="page-hero-bg"> without
   overriding pages that use a CSS background image.
   ========================================================== */

.page-hero {
  isolation: isolate;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, .78) 0%,
    rgba(10, 10, 10, .50) 55%,
    rgba(10, 10, 10, .24) 100%
  );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .page-hero-bg {
    object-position: center center;
  }
}

/* ==========================================================
   INNER-PAGE HERO SIZING FIX
   Do NOT set background-image here.
   Each page keeps its own hero photograph.
   This only overrides old inline background-size: 100% auto.
   ========================================================== */
.page-hero {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ==========================================================
   INNER-PAGE HERO — MOBILE HEIGHT TUNING
   Keeps cover/no-repeat fix; makes inner-page heroes shorter
   than the homepage hero on phones.
   ========================================================== */
@media (max-width: 600px) {
  .page-hero {
    min-height: 540px;
    padding: 58px 0 52px;
  }

  .page-hero h1 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.04;
  }

  .page-hero p {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.65;
  }

  .page-hero .hero-buttons {
    gap: 12px;
  }
}


/* Floating back-to-top button shared by every page. */
#ajl-back-to-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: var(--red, #c8322f);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  cursor: pointer;
  line-height: 1;
  touch-action: manipulation;
}
#ajl-back-to-top[hidden] { display: none; }
#ajl-back-to-top:hover { background: var(--red-dark, #a92725); }
#ajl-back-to-top:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
#ajl-back-to-top svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
  #ajl-back-to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Visible tap-to-call contact number across the site. */
.ajl-phone-bar { background: var(--black, #111); color: #fff; text-align: right; }
.ajl-phone-bar a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #fff; font-size: 15px; text-decoration: none; }
.ajl-phone-bar a:hover { text-decoration: underline; }
.ajl-phone-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer a.ajl-footer-phone { font-weight: 800; font-size: 19px; }
@media (max-width: 600px) { .ajl-phone-bar { text-align: center; } }
