:root {
  --navy: #1c2839;
  --header-height: 89px;
  --footer-height: 117px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Arial, sans-serif;
}

/* ========================================
   SITE LAYOUT
======================================== */

.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* ========================================
   HEADER
======================================== */

.site-header {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--header-height);
  height: var(--header-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px 20px;

  /* Subtle blue-grey shadow */
  box-shadow:
    0 4px 18px rgba(87, 111, 139, 0.16),
    0 1px 3px rgba(87, 111, 139, 0.09);
}

.brand-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  max-width: 100%;
}

.brand-logo {
  display: block;
  object-fit: contain;
  flex: none;
}

.brand-logo--pgm {
  width: 121px;
  height: 61px;
}

.brand-logo--ss {
  width: 150px;
  height: 61px;
}

.brand-arrow {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: none;
}

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #b4d1eb;
}

.hero-picture,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image {
  object-fit: cover;
  object-position: center bottom;
}

/* Hide gradient overlay */

.hero-gradient {
  display: none;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--footer-height);
  min-height: var(--footer-height);
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding: 10px 40px;
}

.footer-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1 {
  margin: 0;
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ========================================
   CTA
======================================== */

.cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 57px;
  padding: 17px 30px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'League Spartan', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s;
}

.cta img {
  display: block;
  width: 16px;
  height: 15px;
  object-fit: contain;
}

.cta:hover,
.cta:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* ========================================
   MOBILE
   Max-width: 767px
======================================== */

@media (max-width: 767px) {
  :root {
    --footer-height: 284px;
  }

  .brand-transition {
    gap: 8px;
  }

  .brand-logo--pgm {
    width: 102px;
    height: 51px;
  }

  .brand-logo--ss {
    width: 126px;
    height: 51px;
  }

  .brand-arrow {
    width: 19px;
    height: 19px;
  }

  /* Hero image positioning */

  .hero {
    overflow: visible;
  }

  .hero-picture,
  .hero-image {
    bottom: -2px;
    height: calc(100% + 2px);
  }

  .hero-image {
    object-position: center bottom;
  }

  /* Footer overlaps hero by 2px to prevent visible seam */

  .site-footer {
    z-index: 2;
  }

  .site-footer {
    padding: 24px 20px;
  }

  .footer-content {
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    text-align: center;
  }

  h1 {
    font-size: 34px;
    max-width: 440px;
  }
}

/* ========================================
   SMALL MOBILE
   Max-width: 380px
======================================== */

@media (max-width: 380px) {
  h1 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .cta {
    padding: 15px 22px;
  }

  .brand-logo--pgm {
    width: 88px;
  }

  .brand-logo--ss {
    width: 112px;
  }
}

/* ========================================
   SMALL DESKTOP HEIGHT
   Max-height: 530px
======================================== */

@media (max-height: 530px) and (min-width: 768px) {
  :root {
    --footer-height: 100px;
  }

  h1 {
    font-size: clamp(20px, 2.4vw, 30px);
  }

  .cta {
    min-height: 48px;
    padding: 12px 20px;
  }
}

/* ========================================
   SMALL MOBILE HEIGHT
   Max-height: 550px
======================================== */

@media (max-height: 550px) and (max-width: 767px) {
  :root {
    --footer-height: 220px;
  }

  .site-footer {
    padding: 12px 20px;
  }

  .footer-content {
    gap: 14px;
  }

  h1 {
    font-size: clamp(23px, 6vw, 30px);
  }

  .cta {
    min-height: 45px;
    padding: 12px 18px;
  }
}