/* ============================================
   HD Bodyworks — site styles
   Values measured directly from the original
   GoHighLevel build at 1280px viewport so the
   layout, sizes, and colors match 1:1.
   Edit the variables below to retheme.
   ============================================ */

:root {
  /* Brand palette */
  --navy:        #112a46;
  --orange:      #ff7e00;
  --orange-dark: #e66f00;
  --service-gray:#cbd5e0;
  --testimonial-bg:#c9d5e5;
  --text-dark:   #101010;
  --white:       #ffffff;

  /* Type */
  --font-display: "Raleway", system-ui, sans-serif;
  --font-hero:    "Poppins", system-ui, sans-serif;  /* heavy sans-serif for hero */
  --font-body:    "Poppins", system-ui, sans-serif;

  /* Layout (matches original .container width / outer padding) */
  --max-width: 1170px;
  --gutter:    48px;          /* outer gutter on each side at desktop */
  --header-h:  109px;         /* original header height */
}

/* -- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -- Scroll-reveal animations -------------- */
.js-anim [data-anim] {
  opacity: 0;
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2,0.7,0.3,1);
  will-change: opacity, transform;
}
.js-anim [data-anim="from-right"] { transform: translateX(80px); }
.js-anim [data-anim="from-left"]  { transform: translateX(-80px); }
.js-anim [data-anim="from-top"]   { transform: translateY(-50px); }
.js-anim [data-anim="from-bottom"]{ transform: translateY(40px); }
.js-anim [data-anim="zoom-in"]    { transform: scale(0.92); }
.js-anim [data-anim].anim-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* -- Header (white, sticky, 109px) --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--text-dark);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.brand-logo { width: 235px; height: auto; max-width: 100%; }
.brand-text {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 1px;
}
.site-nav > ul { display: flex; gap: 0; }
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 23px;
  color: var(--text-dark);
  letter-spacing: 1px;
  padding: 3px 21px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* Burger button */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--text-dark);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Services dropdown (desktop) */
.has-dropdown { position: relative; }
.has-dropdown > a .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  transition: transform 0.2s ease;
}
.has-dropdown:hover > a .caret,
.has-dropdown.is-open > a .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  background: var(--orange);
  padding: 14px 0;
  min-width: 340px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 24px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  border-bottom: none;
  transition: background 0.15s ease;
}
.dropdown a:hover { background: rgba(0, 0, 0, 0.18); color: var(--white); border-bottom: none; }

/* -- Hero (595h, padding 100 0, navy + car bg) -- */
.hero {
  position: relative;
  min-height: 595px;
  padding: 100px 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(17,42,70,0.92) 0%, rgba(17,42,70,0.45) 45%, rgba(17,42,70,0) 100%),
    url("/assets/images/hero-bg-675a9ebb.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: flex-start;
}
.hero-title {
  margin: 0;
  font-family: var(--font-hero);                /* Poppins, heavy weight */
  font-size: 60px;
  font-weight: 800;                             /* ExtraBold — clean sans-serif, no serifs */
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-callouts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 5px solid var(--orange);
  border-radius: 20px;
  padding: 28px 36px;
  width: auto;
  max-width: 100%;
}
.hero-callouts li {
  font-family: var(--font-hero);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.hero-callouts li.accent { color: var(--orange); }
.hero-callouts li strong { font-weight: inherit; }

/* -- About (white, two columns, 43 0 40 padding) -- */
.about {
  background: var(--white);
  color: var(--text-dark);
  padding: 80px 0 70px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-body);              /* Poppins for the bolder look */
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 32px;
  letter-spacing: 0.01em;
}
.about-text p {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #8b95a3;                             /* gray, matches original */
}
.about-image img {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--text-dark);
  border-bottom-width: 2px;
  border-radius: 0;
}

/* -- "OUR SERVICES" banner (147h, navy) ---- */
.services-banner {
  background: var(--navy);
  padding: 45px 0;
}
.services-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 43.5px;
  line-height: 1.3;
  color: var(--white);
  text-align: left;
}

/* -- Service section (708h, padding 60 0) -- */
.service {
  padding: 60px 0;
}
.service.light { background: var(--white); }
.service.dark  { background: var(--navy); }

/* Title in full-width orange-bordered box (matches original 1170x70) */
.service-divider {
  border: 1px solid var(--orange);
  border-radius: 0;
  padding: 10px 5px;
  margin-bottom: 30px;
}
.service-divider h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.3;
  color: var(--orange);
  text-align: center;
  text-transform: uppercase;
}
.service.dark .service-divider h3 { color: var(--orange); }

/* Two columns: text-box ~41% / image ~59% (no gap, edge-to-edge) */
.service-grid {
  display: grid;
  grid-template-columns: 481fr 689fr;
  gap: 0;
  align-items: stretch;
  min-height: 458px;
}
.service.dark .service-grid {
  grid-template-columns: 689fr 481fr;
}

.service-text-col {
  border: 1px solid var(--orange);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-text-col p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
}
.service.dark .service-text-col p { color: var(--white); }
.service-text-col p:last-child { margin-bottom: 0; }

.service-image-col { display: flex; align-self: stretch; }
.service-image-col img {
  width: 100%;
  height: 100%;
  min-height: 458px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.service-image-col img:hover { transform: scale(1.02); }

/* -- Testimonials --------------------------- */
.testimonials {
  background: var(--testimonial-bg);
  color: var(--navy);
  padding: 80px 0 100px;
  text-align: center;
}
.testimonials-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 64px;
  color: var(--text-dark);
  margin: 0 0 56px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.testimonial {
  background: transparent;
  padding: 36px 32px 28px;
  border-radius: 6px;
  border: 3px solid var(--orange);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.testimonial:nth-child(2) { border-color: var(--navy); }

.testimonial blockquote {
  margin: 0 0 24px;
  font-family: var(--font-body);
  color: #4a5568;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}
.testimonial figcaption {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 20px;
  text-align: right;
  margin-top: auto;
}

/* -- Contact form (navy bg, white card) ---- */
.contact {
  background: var(--navy);
  padding: 60px 0;
}
.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.contact-form h3 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 28px;
  text-align: center;
}
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d0db;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.15);
}
.contact-form button {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.contact-form button:hover { background: var(--orange-dark); }
.contact-form button:active { transform: translateY(1px); }

/* -- Map + address -------------------------- */
.map-section {
  background: var(--navy);
  padding: 0 0 50px;
}
.map-link {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  line-height: 0;
}
.map-link img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.map-link:hover img { transform: scale(1.02); }
.map-address {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

/* -- Footer (fixed to bottom, mirrors header) -- */
:root { --footer-h: 70px; }
body { padding-bottom: var(--footer-h); }
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  padding: 12px 0;
  min-height: var(--footer-h);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
}
.footer-contact {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
}
.footer-contact a { color: var(--orange); }
.footer-contact a:hover { color: var(--white); }
.footer-contact .dot { color: var(--white); margin: 0 12px; }
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* At tablet/laptop, container shrinks gutter */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .site-nav a { font-size: 18px; padding: 3px 14px; }
  .brand-logo { width: 180px; }
  .brand-text { font-size: 20px; }
}

/* Mobile breakpoint — show burger, hide nav until opened */
@media (max-width: 900px) {
  :root { --header-h: 80px; --gutter: 20px; }

  .site-header { position: sticky; }
  .nav-toggle { display: block; }

  .brand { gap: 12px; }
  .brand-logo { width: 130px; }
  .brand-text { font-size: 18px; letter-spacing: 0.5px; }

  /* Off-canvas nav drawer */
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(88%, 380px);         /* a bit wider so long submenu items fit */
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 0;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    letter-spacing: 0.5px;
  }
  /* Mobile dropdown: inline accordion under Services */
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255, 126, 0, 0.06);
    box-shadow: none;
    padding: 4px 0;
    min-width: 0;
    margin: 0;
    display: none;
    border-radius: 0;
  }
  .has-dropdown.is-open .dropdown { display: flex; }
  .dropdown a {
    color: var(--navy);
    padding: 12px 32px;
    border-bottom: 1px solid rgba(255, 126, 0, 0.2);
    font-size: 13px;
    white-space: normal;            /* allow wrapping inside drawer */
    word-break: break-word;
    line-height: 1.4;
  }
  .dropdown a:hover { background: rgba(255, 126, 0, 0.12); color: var(--orange); }

  /* Backdrop when nav open */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 90;
  }

  /* Hero scales down */
  .hero { min-height: auto; padding: 60px 0 80px; background-position: 75% center; }
  .hero-title { font-size: 42px; }
  .hero-callouts { padding: 24px 24px; gap: 14px; width: 100%; }
  .hero-callouts li { font-size: 38px; }

  .about { padding: 50px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image img { margin: 0 auto; }
  .about-text h2 { font-size: 36px; margin-bottom: 20px; }
  .about-text p { font-size: 17px; line-height: 1.7; }

  .services-banner { padding: 28px 0; }
  .services-banner h2 { font-size: 30px; text-align: center; }

  .service { padding: 40px 0; }
  .service-divider { padding: 12px 16px; margin-bottom: 22px; }
  .service-divider h3 { font-size: 22px; }
  .service-grid,
  .service.dark .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }
  .service-image-col img { min-height: 220px; aspect-ratio: 16 / 10; }
  .service-text-col { padding: 22px 20px; }
  .service-text-col p { font-size: 17px; }

  .testimonials { padding: 50px 0 60px; }
  .testimonials-title { font-size: 38px; margin-bottom: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 18px; }
  .testimonial { min-height: auto; padding: 26px; }
  .testimonial blockquote { font-size: 17px; }

  .contact { padding: 40px 0; }
  .contact-form { padding: 24px; }
  .map-link img { max-height: 240px; }
  .map-address { font-size: 16px; }
  .map-section { padding: 0 0 28px; }

  :root { --footer-h: 88px; }
  .footer-contact { font-size: 14px; }
  .footer-copy { font-size: 11px; }
}

/* Phones */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand-logo { width: 100px; }
  .brand-text { font-size: 16px; }
  .hero-title { font-size: 34px; }
  .hero-callouts li { font-size: 30px; }
  .footer-contact .dot { display: block; height: 4px; margin: 4px 0; }
}
