/* College Dial — values extracted from the original GoDaddy build.
 *
 * Type and layout step at GoDaddy's breakpoints (768 / 1024 / 1280 / 1536)
 * rather than scaling fluidly, because that is what the original does:
 * body text is 16px until 1536px, headings 22px, hero h1 40 -> 48 -> 62 -> 64.
 * Container is a fixed width per breakpoint, not a max-width.
 */

:root {
  --teal: #2994ae;
  --teal-hover: #36bada;
  --dark: #161616;
  --heading: #e2e2e2;
  --body: #919191;
  --light: #f7f7f7;
  --footer-text: #969696;
  --rule: rgba(247, 247, 247, 0.15);

  --font-head: "Cabin", arial, sans-serif;
  --font-body: "Lato", arial, sans-serif;

  --gutter: 24px;
  --nav-h: 96px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--teal-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--teal-hover);
  outline-offset: 3px;
}

/* Container: full width with gutters, then fixed widths at each breakpoint. */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
}

/* Homepage: the header sits over the hero photo. */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.site-header--overlay.is-stuck {
  position: fixed;
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 75px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--light);
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.063em;
  color: var(--light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--teal);
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: #fff;
}

/* ---------- Hero (homepage) ---------- */

/* Original: min-height 500px (85vh from 1024px up), background centred and
 * covering, content stacked from the top — not vertically centred. */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 40px;
  background-color: #2a2a2a;
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/hero-1400.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    image-set(url("../img/hero-1400.webp") type("image/webp"),
      url("../img/hero-1400.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 8px;
}

.hero p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--light);
  margin: 0;
}

.hero-cta {
  margin: 16px 0;
  padding: 8px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.063em;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 0;
  padding: 8px 32px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff;
  text-decoration: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Sections ---------- */

.section {
  background: var(--dark);
  padding: 32px 0;
}

.page-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--heading);
  text-align: left;
  margin: 0 0 8px;
}

.title-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 24px;
}

.subhead {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 16px;
}

/* Paragraph rhythm mirrors the original, which used empty <p> elements as
 * spacers (one blank line at 16px/1.5 = 24px). */
.prose p {
  margin: 0 0 24px;
  color: var(--body);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin: 0;
}

.card h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 16px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li + li {
  margin-top: 20px;
}

.link-list .label {
  display: block;
  color: var(--heading);
  margin-bottom: 2px;
}

.link-list a {
  word-break: break-word;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.form-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading);
  text-align: center;
  margin: 0 0 24px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--heading);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--light);
  background: rgba(247, 247, 247, 0.06);
  border: 1px solid rgba(247, 247, 247, 0.22);
  border-radius: 0;
  padding: 12px 14px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(247, 247, 247, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 247, 247, 0.4);
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: rgba(41, 148, 174, 0.1);
  color: var(--heading);
  font-size: 16px;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  border-left-color: #e06c6c;
  background: rgba(224, 108, 108, 0.1);
}

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

.site-footer {
  background: var(--dark);
  padding: 32px 0;
  text-align: center;
}

.site-footer hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 24px;
}

.site-footer p {
  font-size: 16px;
  color: var(--footer-text);
  margin: 0;
}

/* ---------- Mobile navigation (below GoDaddy's 768px break) ---------- */

@media (max-width: 767px) {
  :root {
    --nav-h: 80px;
  }

  .logo img {
    height: 56px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    border-top: 1px solid var(--rule);
    padding: 8px 0;
  }

  .site-nav.is-open .nav-list {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 14px var(--gutter);
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--teal);
    background: rgba(247, 247, 247, 0.04);
  }

  .section {
    padding: 32px 0;
  }

  .page-title {
    margin-bottom: 8px;
  }

  .title-rule {
    margin-bottom: 24px;
  }
}

/* ---------- 768px and up ---------- */

@media (min-width: 768px) {
  .hero {
    padding-left: 32px;
  }

  .hero h1 {
    font-size: 48px;
    margin-bottom: 0;
  }

  .btn {
    width: auto;
  }

  .section {
    padding: 40px 0;
  }

  .title-rule {
    margin-bottom: 40px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}

/* ---------- 1024px and up ---------- */

@media (min-width: 1024px) {
  .container {
    width: 984px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-cta {
    margin-bottom: 8px;
  }
}

/* ---------- 1280px and up ---------- */

@media (min-width: 1280px) {
  .container {
    width: 1160px;
  }

  .hero h1 {
    font-size: 62px;
  }
}

/* ---------- 1536px and up: the only step where type grows ---------- */

@media (min-width: 1536px) {
  .container {
    width: 1280px;
  }

  body {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero p {
    font-size: 24px;
  }

  .btn,
  .nav-list a {
    font-size: 18px;
  }

  .page-title,
  .subhead,
  .card h2,
  .form-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
