:root {
  --blue: #235ba8;
  --blue-dark: #1e55a0;
  --text: #000;
  --light: #f4f4f4;
  --container: 1600px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  border-top: 16px solid #235ba8;
  background: #fff url("assets/main-bg.jpg") right top no-repeat;
}

h2 {
  font-size: 24px;
}

a {
  color: #235ba8;
}

@media screen and (max-width: 535px) {
  h2 {
    font-size: 18px;
  }
}

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

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

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: transparent;
}

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

.brand {
  width: 720px;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3vw, 65px);
}

.main-nav a,
.footer-nav a {
  font-size: 21px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #666;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 5px 0;
  background: #222;
}

/* Intro */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 530px;
  gap: 50px;
  align-items: stretch;
  padding-bottom: 0;
}

.intro-copy {
  background: #f4f4f4;
  padding: 55px 55px 0;
  line-height: 1.8;
}

.intro-copy > p:first-child {
  margin-top: 0;
}

.intro-rule {
  height: 2px;
  background: var(--blue);
  margin: 25px 0;
}

.intro-emphasis {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 3px;
}

.intro-areas {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.intro-areas span {
  padding: 0 10px;
  color: #555;
}

.black-button {
  display: block;
  width: min(100%, 900px);
  margin-top: 28px;
  padding: 18px 25px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 5px;
  font-weight: 500;
}

.intro-photo img {
  margin-top: -40px;
}

/* Name Bar */
.name-bar {
  color: #fff;
  margin-bottom: 45px;
}

.name-bar-inner {
  background: var(--blue);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 55px;
}

.tagline {
  font-size: 40px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 2px;
}

.person-name {
  white-space: nowrap;
  font-size: 60px;
  letter-spacing: 3px;
}

.person-name strong {
  font-weight: 800;
}

/* Services */
.services {
  background: #235ba8 url("assets/Homepage-design01-2017_06.jpg") center/cover;
  color: #fff;
  padding: 35px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
}

.service {
  border-bottom: 1px solid #fff;
  padding: 35px 0;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 35px;
  align-items: center;
}

.service .service-icon {
  text-align: center;
  width: 33.3333%;
}

.service .service-content {
  width: 66.6666%;
}

.service:last-child {
  border-right: 0;
  border-bottom: 0;
}

.service-icon {
  overflow: hidden;
}

.service-icon img {
  display: inline-block;
  margin-bottom: 25px;
  /* max-width: 35%; */
}

.service h2 {
  margin: 5px 0 18px;
  font-size: 48px;
  line-height: 1;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 5px;
}

.service p {
  margin: 0 auto 28px;
  line-height: 1.65;
  font-style: italic;
}

.learn-more {
  margin-top: auto;
  display: inline-block;
  min-width: 245px;
  padding: 13px 25px;
  background: #000;
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

/* Footer */
.footer-main {
  background: #fff url("assets/Homepage-design01-2017_07.jpg") center/cover;
}

.footer-inner {
  min-height: 205px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  width: 510px;
}

.footer-inner p {
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 50px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copyright {
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
  font-style: italic;
}

.copyright span {
  margin-left: 4px;
}

/* Tablet */
@media (max-width: 1100px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

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

  .brand {
    width: 500px;
  }

  .main-nav {
    gap: 22px;
  }

  .main-nav a {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .intro-photo img {
    margin-top: 0;
  }

  .intro-copy {
    padding: 35px;
    min-height: 470px;
  }

  .intro-areas {
    font-size: 15px;
  }

  .name-bar-inner {
    padding: 0 35px;
  }

  .tagline {
    font-size: 23px;
  }

  .person-name {
    font-size: 27px;
  }

  .service {
    padding-inline: 25px;
  }

  .footer-brand {
    width: 380px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

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

  .brand {
    width: 310px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 103px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intro-copy {
    min-height: auto;
    padding: 30px 22px 25px;
  }

  .intro-photo {
    height: 420px;
  }

  .intro-areas {
    font-size: 14px;
  }

  .intro-areas span {
    display: none;
  }

  .intro-areas {
    display: grid;
    gap: 5px;
  }

  .black-button {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .name-bar-inner {
    min-height: 125px;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .tagline {
    font-size: 20px;
  }

  .person-name {
    font-size: 25px;
    white-space: normal;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    padding: 35px 15px;
    text-align: left;
    display: block;
  }

  .service .service-icon,
  .service .service-content {
    width: 100%;
  }

  .footer-inner {
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    padding-block: 30px;
  }

  .footer-brand {
    width: 300px;
  }

  .footer-nav {
    justify-content: center;
    gap: 15px 25px;
  }

  .footer-nav a {
    font-size: 10px;
  }

  .copyright {
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
  }
}
