/* =========================================================
   HexPro Stop-gap Website
   Sprint 1 - Professional Landing Page
========================================================= */

/* ---------- Base reset ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #24313d;
  background: #f7f9fb;
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: inherit;
}

/* ---------- Layout ---------- */

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.content-narrow {
  max-width: 880px;
}

#about .content-narrow p {
  color: #4b5a66;
  font-size: 1.06rem;
  line-height: 1.75;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: #eef3f7;
}

.section-heading {
  margin-bottom: 38px;
}

.section-label,
.eyebrow {
  margin-bottom: 8px;
  color: #2b6f8d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b1f33;
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-navigation a {
  color: #eaf0f5;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #5dc4c4;
}

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

.hero {
  padding: 112px 0 104px;
  background:
    linear-gradient(
      180deg,
      #f7f9fb 0%,
      #f7f9fb 72%,
      #f1f5f8 100%
    );
  text-align: center;
}

.hero-content {
  max-width: 920px;
}

.hero h1 {
  margin: 0 auto 28px;
  color: #0b1f33;
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: #1f4e79;
}

.hero-intro {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #4c5b67;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-focus {
  margin-bottom: 34px;
  color: #314351;
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-focus span {
  display: inline-block;
  margin: 0 8px;
  color: #7a8b98;
}

.hero-actions,
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: #009b9b;
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus {
  background: #007f7f;
}

.button-secondary {
  background: transparent;
  border-color: #8fa3b4;
  color: #1f4e79;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: #1f4e79;
  background: #ffffff;
}

/* ---------- Typography ---------- */

h2 {
  color: #0b1f33;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h3 {
  color: #18344d;
  line-height: 1.3;
}

p + p {
  margin-top: 18px;
}

/* ---------- About ---------- */

#about {
  background: #ffffff;
}

#about .content-narrow p {
  color: #4b5a66;
  font-size: 1.04rem;
}

/* ---------- Expertise ---------- */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.expertise-card {
  min-height: 220px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.05);
}

.expertise-card h3 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.expertise-card p {
  color: #5a6975;
  font-size: 0.96rem;
}

/* ---------- Principles ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 26px;
}

.principle {
  padding-top: 20px;
  border-top: 2px solid #c6d5df;
}

.principle h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.principle p {
  color: #596874;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-section {
  background: #153653;
  color: #ffffff;
  text-align: center;
}

.contact-section .section-label {
  color: #71d1d1;
}

.contact-section h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

.contact-content > p:not(.section-label):not(.contact-location) {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #dce7ef;
}

.contact-actions {
  margin-top: 30px;
}

.contact-section .button-secondary {
  border-color: #9eb7c9;
  color: #ffffff;
}

.contact-section .button-secondary:hover,
.contact-section .button-secondary:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.contact-location {
  margin-top: 24px;
  color: #b8cad8;
  font-size: 0.9rem;
}

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

.site-footer {
  background: #0b1f33;
  color: #c8d5df;
  padding: 28px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 0.86rem;
}

.footer-content p {
  margin: 0;
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #5dc4c4;
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .expertise-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
  padding: 88px 0 86px;
  }
}

@media (max-width: 700px) {
  .header-content {
    min-height: auto;
    padding: 14px 0 12px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

    .brand {
    font-size: 1.25rem;
  }

  .main-navigation {
    width: 100%;
  }

  .main-navigation ul {
    display: flex;
    gap: 8px 22px;
    flex-wrap: wrap;
  }

    .main-navigation a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 76px 0 72px;
    text-align: left;
  }

  .hero-content {
    max-width: none;
  }

  .hero-intro {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-focus {
    line-height: 1.9;
  }

  .hero-focus span {
    margin: 0 5px;
  }

  .section {
    padding: 68px 0;
  }

  .expertise-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: auto;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 480px) {
  .container {
    width: min(92%, 1120px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .main-navigation ul {
    gap: 10px 16px;
  }

  .button {
    width: 100%;
  }
}