/* ============================================================
   LANKTON.COM
   Main stylesheet
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #27364a;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.page-width {
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d6dce3;
}

.header-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.identity {
  min-width: 340px;
}

.site-name {
  display: inline-block;
  color: #16395e;
  text-decoration: none;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .01em;
}

.specialties {
  margin-top: 8px;
  color: #34475e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
}

.motto {
  margin-top: 7px;
  color: #66788d;
  font-size: 13px;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #253c55;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a:focus {
  background: #eef2f6;
}

.main-nav a.active {
  color: #ffffff;
  background: #234b72;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 72px;
}

.photo-wrap {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  box-shadow: 0 8px 22px rgba(26, 48, 72, .14);
}

.photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.intro h1 {
  margin: 0;
  color: #173b60;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 700;
}

.rule {
  width: 58px;
  height: 3px;
  margin: 18px 0 28px;
  background: #173b60;
}

.intro p {
  margin: 0 0 19px;
}

/* ---------- Feature cards ---------- */

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

.feature-card {
  min-height: 240px;
  padding: 31px 26px 25px;
  color: #33465c;
  background: linear-gradient(#f8f9fa, #f1f3f5);
  border: 1px solid #d9dee4;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(25, 45, 65, .08);
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.feature-card:hover,
.feature-card:focus {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(25, 45, 65, .13);
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 9px;
  fill: none;
  stroke: #234b72;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h2 {
  margin: 2px 0 10px;
  color: #173b60;
  font-size: 22px;
}

.feature-card p {
  margin: 0 auto 16px;
  max-width: 210px;
  font-size: 14px;
  line-height: 1.5;
}

.learn-more {
  color: #234b72;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Quote ---------- */

.quote-section {
  padding: 57px 24px 62px;
  background: #eef2f5;
  border-top: 1px solid #dce1e6;
  text-align: center;
}

.quote-section blockquote {
  max-width: 820px;
  margin: 0 auto;
  color: #173b60;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 700;
}

.quote-name {
  margin-top: 20px;
  color: #50647a;
  font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  color: #dce5ed;
  background: #173b60;
}

.footer-inner {
  min-height: 135px;
  padding-top: 32px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}

.footer-name {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
}

.copyright {
  text-align: right;
  color: #bdcbd8;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .photo-wrap {
    width: min(430px, 100%);
  }

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

@media (max-width: 560px) {
  .page-width,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .identity {
    min-width: 0;
  }

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

  .specialties {
    line-height: 1.7;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 8px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 48px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .copyright {
    text-align: left;
  }
}

/* Interior page margins */
.page-intro-inner,
.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 36px;
    padding-right: 36px;
}
