@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  --green: #a4c639;
  --text: #666666;
  --heading: #333333;
  --dark: #1f1f1f;
  --white: #ffffff;
  --light: #f7f7f7;
  --line: #e5e5e5;
  --overlay: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.1;
}

p {
  padding-bottom: 1em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

#logo {
  height: 46px;
  width: auto;
}

#top-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 80px;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

#top-menu a:hover,
#top-menu a:focus,
#top-menu a[aria-current="page"] {
  color: var(--green);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #555555;
}

.hero-section {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("assets/madison-capital.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.full-height {
  min-height: calc(100vh - 80px);
}

.page-hero {
  min-height: 430px;
}

.hero-overlay,
.contact-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-overlay {
  background: linear-gradient(
    rgba(176, 226, 88, 0.78) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 900px);
  color: var(--white);
}

.hero-content h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 500;
}

.page-hero .hero-content h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.hero-content p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--white);
  font-size: 18px;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  border: 2px solid var(--white);
  border-radius: 3px;
  padding: 10px 24px;
  color: var(--white);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.button-dark {
  background-color: var(--green);
  border-color: var(--green);
}

.button:hover,
.button:focus {
  border-color: white;
  background: rgba(255, 255, 255);
  color: var(--green);
}

.scroll-down-container {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.scroll-down {
  width: 60px;
  height: 60px;
}

.content-section {
  padding: 70px 0;
}

.choose-section {
  background: var(--white);
}

.two-column-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 52px;
}

.two-column-heading h2,
.center-title,
.contact-copy h2,
.simple-page h1,
.about-system h2 {
  color: var(--heading);
  font-size: clamp(30px, 4vw, 46px);
}

.two-column-heading p {
  font-size: 17px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.blurb-card {
  text-align: center;
}

.blurb-icon,
.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
}

.blurb-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.blurb-card p {
  line-height: 1.8;
}

.testimonial-section {
  padding-top: 90px;
  padding-bottom: 60px;
  background-image: linear-gradient(180deg, #edf000 0%, #6fbf00 100%);
  color: var(--white);
}

.center-title {
  color: var(--white);
  text-align: center;
}

.divider {
  width: 58px;
  height: 3px;
  margin: 24px auto 44px;
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}

.testimonial-card {
  color: var(--white);
}

.testimonial-card blockquote {
  font-size: 16px;
  line-height: 1.9;
}

.testimonial-card strong {
  display: block;
  margin-top: 22px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.testimonial-card span {
  color: rgba(255, 255, 255, 0.82);
}

.contact-band {
  position: relative;
  overflow: hidden;
  background-image: url("assets/business-01.jpg");
  background-size: cover;
  background-position: top center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-band .contact-overlay {
  display: none;
}

.contact-band .container {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3%;
  align-items: stretch;
}

.contact-copy {
  background: var(--white);
  padding: 50px 40px;
}

.contact-copy h2 {
  color: #1f1f1f;
  font-size: 22px;
}

.contact-copy p {
  margin-top: 20px;
  margin-bottom: 40px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 0;
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.contact-list span,
.contact-list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: center;
}

.contact-list img {
  width: 28px;
  height: 28px;
}

.static-contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 3px;
}

.contact-band .static-contact-form {
  padding: 50px 40px;
  background: var(--white);
  border-radius: 0;
}

.contact-band .name-row,
.contact-band .form-field-medium {
  max-width: 60%;
}

.contact-band .form-field textarea {
  height: 120px;
}

.standalone-form {
  margin-top: 34px;
  background: var(--white);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.form-field label {
  color: #444444;
  font-weight: 700;
  text-align: left;
}

.form-field label span {
  color: #d63637;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 2px;
  padding: 6px 10px;
  color: #444444;
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.form-field input {
  height: 38px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: 2px solid rgba(164, 198, 57, 0.2);
}

.static-contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 3px;
  padding: 12px 22px;
  color: var(--white);
  background: var(--green);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.static-contact-form button:hover,
.static-contact-form button:focus {
  background: #8fb030;
}

.form-status {
  min-height: 24px;
  padding: 0;
  color: #376500;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#main-footer {
  background: #171717;
}

.footer-inner {
  min-height: 54px;
}

.simple-page {
  text-align: center;
}

.narrow-container {
  max-width: 820px;
}

.simple-page p,
.about-system p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.contact-cards {
  padding-top: 20px;
}

.two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.info-card {
  text-align: center;
}

.info-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.about-system {
  text-align: center;
}

.phone-system-image {
  margin: 42px auto 0;
}

@media (max-width: 980px) {
  .container {
    width: 88%;
  }

  .header-inner {
    min-height: 74px;
  }

  #top-menu a {
    min-height: 74px;
  }

  .full-height {
    min-height: calc(100vh - 74px);
  }

  .two-column-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: 92%;
  }

  .mobile-menu-toggle {
    display: block;
  }

  #top-menu-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  #top-menu-nav.open {
    display: block;
  }

  #top-menu {
    display: block;
    width: 92%;
    margin: 0 auto;
    padding: 10px 0;
  }

  #top-menu a {
    min-height: 44px;
    display: flex;
    border-bottom: 1px solid var(--line);
  }

  .hero-section {
    min-height: 520px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-grid,
  .testimonial-grid,
  .two-card-grid,
  .name-row {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 56px 0;
  }

  .static-contact-form {
    padding: 22px;
  }

  .contact-band .name-row,
  .contact-band .form-field-medium {
    max-width: 100%;
  }
}
