/* Design + Planning — static recreation of the WordPress homepage */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 24px;
  color: #666666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2.section-title,
.why-heading h2,
.services-heading,
.contact-intro h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 48px;
  line-height: 48px;
  color: #222222;
}

h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 48px;
  color: #222222;
}

.about-intro,
.why-text,
.contact-lead {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #666666;
}

.contact-lead {
  text-align: center;
  font-weight: 600;
}

p {
  margin: 0 0 10px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

@media (min-width: 1000px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* Header */
.site-header {
  height: 60px;
  position: fixed;
  z-index: 1000;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  opacity: 0.91;
}

.site-header .container {
  max-height: 60px;
  position: relative;
}

.navbar-brand {
  display: inline-block;
  padding: 20px 0 0;
  height: 60px;
}

.navbar-brand img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hero — matches RevSlider 1600×600 force-full-width sizing */
.hero {
  position: relative;
  width: 100%;
  height: min(600px, calc(100vw * 600 / 1600));
  min-height: 320px;
  overflow: hidden;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/header-bg.jpg") center center / cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  text-align: center;
}

/* Matches Revolution Slider center + voffset positioning */
.hero-logo {
  position: absolute;
  left: 50%;
  top: calc(50% - 145px);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: heroFadeLogo 0.5s ease 0.5s forwards;
}

.hero-logo img {
  width: min(376px, 55vw);
  height: auto;
  display: block;
}

.hero-tagline {
  position: absolute;
  left: 50%;
  top: calc(50% + 30px);
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1400px;
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(18px, 2.4vw, 39px);
  line-height: 1.15;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  animation: heroFadeText 0.9s ease 0.7s forwards;
}

.hero-tagline span {
  display: block;
  white-space: nowrap;
}

@keyframes heroFadeLogo {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 16px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes heroFadeText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Sections */
.section {
  width: 100%;
}

.section-about {
  padding: 100px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.brand-color {
  color: #435f6c;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.about-col {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .about-col {
    width: 33.333333%;
    margin-bottom: 0;
  }
}

.about-intro {
  text-align: left;
  padding-bottom: 20px;
  margin-bottom: 0;
}

.about-col p {
  text-align: left;
}

.about-col strong {
  font-weight: 600;
}

.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-list li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0;
}

.support-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #666;
}

/* Why */
.section-why {
  background-color: #f3f3f3;
  padding: 30px 0;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  align-items: flex-start;
}

.why-col {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .why-col {
    width: 33.333333%;
    margin-bottom: 0;
  }
}

.why-heading {
  text-align: left;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.why-heading h2 {
  text-align: left;
  margin: 0;
}

.why-text {
  text-align: left;
  margin: 0;
}

/* Services */
.section-services {
  position: relative;
  padding: 100px 0;
  background-image: url("../images/services-bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #e0e0e0;
}

.section-services h2,
.section-services .services-list {
  color: #ffffff;
}

.services-heading {
  margin: 0;
}

.services-heading span {
  display: block;
}

.services-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.services-list li {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 8px;
}

.services-inner {
  max-width: 66.666667%;
}

/* Contact */
.section-contact {
  padding: 100px 0 80px;
  background: #fff;
}

.contact-intro {
  text-align: center;
  margin-bottom: 20px;
}

.contact-intro h2 {
  padding-bottom: 10px;
  margin: 0;
}

.contact-details {
  display: block;
  max-width: 320px;
  font-style: normal;
}

.contact-details p {
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #666;
}

.contact-link:hover,
.contact-link:focus {
  color: #3d5763;
}

.contact-details .icon {
  color: #3d5763;
  font-size: 16px;
  width: 1.1em;
  text-align: center;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding: 10px;
  background-color: #3d5763;
  color: #e0e0e0;
  text-align: center;
  font-size: 13px;
  line-height: 24px;
}

.site-footer a {
  color: #fff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  z-index: 200;
  bottom: max(1.25em, env(safe-area-inset-bottom, 0px));
  right: max(1.25em, env(safe-area-inset-right, 0px));
  text-decoration: none;
  color: #000000;
  background-color: rgba(135, 135, 135, 0.5);
  font-size: 14px;
  display: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  display: block;
}

.back-to-top:hover {
  color: #000;
  background-color: rgba(235, 235, 235, 0.8);
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-tagline span {
    white-space: normal;
  }

  .hero-logo {
    top: calc(50% - 100px);
  }

  .hero-tagline {
    top: calc(50% + 40px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 24px;
  }

  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    height: auto;
    min-height: 70vh;
    min-height: 70svh;
    max-height: none;
    display: flex;
    align-items: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 88px 16px 48px;
    height: auto;
    min-height: 70vh;
    min-height: 70svh;
  }

  .hero-logo,
  .hero-tagline {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    animation: none;
    opacity: 1;
  }

  .hero-logo img {
    width: min(240px, 72vw);
    margin: 0 auto;
  }

  .hero-tagline {
    font-size: clamp(17px, 4.6vw, 22px);
    line-height: 1.35;
    padding: 0 8px;
  }

  .hero-tagline span {
    white-space: normal;
  }

  h1,
  h2.section-title,
  .why-heading h2,
  .services-heading,
  .contact-intro h2 {
    font-size: 34px;
    line-height: 38px;
  }

  .about-intro,
  .why-text,
  .contact-lead {
    font-size: 16px;
    line-height: 26px;
  }

  .section-about,
  .section-services,
  .section-contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-why {
    padding: 40px 0;
  }

  .about-grid,
  .why-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .about-col,
  .why-col {
    padding: 0;
    margin-bottom: 24px;
  }

  .about-col:last-child,
  .why-col:last-child {
    margin-bottom: 0;
  }

  .about-intro {
    padding-bottom: 0;
  }

  .why-heading {
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .section-services {
    background-attachment: scroll;
    padding: 64px 0;
  }

  .services-inner {
    max-width: 100%;
  }

  .services-list li {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 4px;
  }

  .contact-details {
    max-width: 100%;
  }

  .contact-link {
    min-height: 44px;
    font-size: 15px;
  }

  .contact-details .icon {
    font-size: 18px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-content {
    gap: 20px;
    padding-top: 76px;
  }

  h1,
  h2.section-title,
  .why-heading h2,
  .services-heading,
  .contact-intro h2 {
    font-size: 30px;
    line-height: 34px;
  }

  .hero-tagline {
    font-size: 16px;
  }
}
