:root {
  --green: #0f5c3a;
  --green-dark: #0a3f29;
  --charcoal: #20262d;
  --gray: #6b7280;
  --light-gray: #f4f6f7;
  --stone: #d9dedc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(15, 92, 58, 0.12), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f5f7f6 55%, #eef2f0 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

/* HEADER */

header {
  margin-bottom: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  font-size: clamp(14px, 2.35vw, 48px);
}

.brand-logo {
  height: 4.5em;
  width: auto;
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.8em;
  line-height: 1.05;
  color: var(--green-dark);
  white-space: nowrap;
}

.brand-text .subtitle {
  margin: 0.25em 0 0;
  font-size: 0.85em;
  line-height: 1.25;
  color: var(--charcoal);
}

nav {
  margin: 1.2em 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.header-button {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(15, 92, 58, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.header-button:hover,
.header-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 92, 58, 0.3);
  background: var(--green-dark);
}

.header-button:focus {
  outline: 3px solid rgba(15, 92, 58, 0.25);
  outline-offset: 3px;
}

.request-button {
  border: 1px solid var(--green-dark);
}

/* MAIN CONTENT */

.main {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 92, 58, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
}


.hero-seal-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(260px, 420px) minmax(110px, 180px);
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin: 0 auto 2.5rem;
}

.hero-seal {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0 auto;
  transition: transform 0.2s;
}

.hero-seal-link {
  display: block;
  text-decoration: none;
}

.hero-seal-link:hover .hero-seal,
.hero-seal-link:focus .hero-seal {
  transform: translateY(-2px);
}

#hero-card {
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}


.service-container {
  margin-top: 2rem;
}

.service-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.8rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(15, 92, 58, 0.12);
}

.service-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.service-text h2 {
  margin: 0 0 0.8rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.service-text p {
  margin-top: 0;
}

/* Old float helpers neutralized for safety */

.left {
  float: none;
  margin: 0;
}

.clear {
  clear: none;
}

.hero-photo {
  margin: 0;
  text-align: center;
}

.hero-photo figcaption {
  margin-top: 0.75rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.3;
}

/* SERVICE AREA */

.service-area {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 92, 58, 0.12);
  border-radius: 18px;
  padding: 19px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.info-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--green-dark);
}

.info-card p {
  margin-bottom: 0;
}

footer {
  margin-top: 28px;
  text-align: center;
  color: var(--gray);
  font-size: 0.92rem;
}

footer a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}


#InterNACHISeals img {
    margin: 0.5em;
}

/* REQUEST INSPECTION FORM */

.request-page h2,
.form-thank-you h2 {
  margin-top: 0;
  color: var(--green-dark);
}

.inspection-form {
  margin-top: 2rem;
}

.inspection-form fieldset {
  border: 1px solid rgba(15, 92, 58, 0.18);
  border-radius: 18px;
  padding: 1.25rem;
  margin: 0 0 1.5rem;
  background: rgba(255, 255, 255, 0.62);
}

.inspection-form legend {
  padding: 0 0.5rem;
  color: var(--green-dark);
  font-weight: 700;
}

.inspection-form label {
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}

.inspection-form input[type="text"],
.inspection-form input[type="email"],
.inspection-form input[type="tel"],
.inspection-form input[type="datetime-local"],
.inspection-form select,
.inspection-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(32, 38, 45, 0.22);
  border-radius: 12px;
  font: inherit;
  background: var(--white);
  color: var(--charcoal);
}

.inspection-form input:focus,
.inspection-form textarea:focus {
  outline: 3px solid rgba(15, 92, 58, 0.18);
  border-color: var(--green);
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0.75rem;
}

.service-option {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 1rem;
  border: 1px solid rgba(15, 92, 58, 0.16);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
}

.service-option input {
  margin-top: 0.25rem;
  transform: scale(1.2);
}

.service-option span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-option em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}

.price-note {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.form-button {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15, 92, 58, 0.22);
}

.form-button:hover,
.form-button:focus {
  background: var(--green-dark);
}

.form-errors {
  border: 1px solid rgba(160, 32, 32, 0.28);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: rgba(255, 235, 235, 0.82);
  color: #6f1d1d;
  margin: 1.5rem 0;
}

.form-errors h3 {
  margin-top: 0;
}

.form-errors ul {
  margin-bottom: 0;
}

.form-thank-you {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.website-field {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

.service-option small {
  display: block;
  margin-top: 0.35rem;
  color: var(--gray);
  font-weight: 400;
  line-height: 1.35;
}


/* TABLET */

@media (max-width: 820px) {
  .service-area {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 140px 1fr;
  }

  .service-logo {
    max-width: 140px;
  }
  
}


/* MOBILE OVERRIDES */

@media (max-width: 720px) {
  .hero-seal-row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 2rem;
  }

  .hero-seal {
    max-width: 145px;
  }

  #hero-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hide-on-mobile {
      display: none;
  }
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    font-size: clamp(14px, 5vw, 28px);
  }

  .brand-logo {
    height: 5em;
  }

  .brand-text h1 {
    font-size: 1.55em;
    white-space: normal;
  }

  .brand-text .subtitle {
    font-size: 0.8em;
  }

  nav {
    margin: 0.9rem 0 1.2rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-button {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .main {
    padding: 24px 18px;
  }

  #hero-card {
    max-width: 100%;
  }

  .service-item {
    display: block;
    text-align: left;
  }

  .service-logo {
    max-width: 150px;
    margin: 0 auto 1rem;
  }

  .service-text h2 {
    text-align: center;
  }
  
  .service-options {
    grid-template-columns: 1fr;
  }

  .inspection-form fieldset {
    padding: 1rem;
  }

}
