:root {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --text: #202833;
  --muted: #5f6d79;
  --brand: #173247;
  --brand-2: #1f9be0;
  --accent: #f2a022;
  --line: rgba(23, 50, 71, 0.12);
  --line-strong: rgba(23, 50, 71, 0.2);
  --shadow: 0 14px 30px rgba(17, 30, 42, 0.09);
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header-home {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  width: 250px;
  overflow: hidden;
}

.site-header-home .brand {
  width: 320px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: auto;
  max-width: none;
  height: 92px;
  object-fit: contain;
  transform: scale(1.9);
  transform-origin: left center;
}

.site-header-home .brand-logo {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.92));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-label {
  display: flex;
  align-items: center;
}

.submenu-toggle {
  width: 24px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #30404b;
  cursor: pointer;
}

.submenu-toggle span {
  display: block;
  width: 7px;
  height: 7px;
  margin: -4px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.site-header-home .submenu-toggle {
  color: #ffffff;
}

.services-submenu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: -18px;
  display: none;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.services-submenu a {
  display: block;
  padding: 11px 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-submenu a:hover,
.services-submenu a:focus-visible {
  background: var(--surface);
  color: var(--brand-2);
}

.nav-dropdown:hover .services-submenu,
.nav-dropdown:focus-within .services-submenu,
.nav-dropdown.is-open .services-submenu {
  display: block;
}

.services-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-category {
  scroll-margin-top: 110px;
}

.trade-services {
  grid-column: 1 / -1;
}

.trade-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.trade-image-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.trade-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.trade-service-block {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.trade-service-block h3 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 1.1rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  color: #30404b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.site-header-home .nav-link {
  color: #ffffff;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-2);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  background: currentColor;
}

.site-header-home .nav-link:hover,
.site-header-home .nav-link.is-active {
  color: #ffffff;
}

.site-header-home .nav-link:hover::after,
.site-header-home .nav-link.is-active::after {
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.inner-page .menu-toggle {
  border-color: var(--line-strong);
  background: var(--surface);
}

.inner-page .menu-toggle span {
  background: var(--brand);
}

.home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(10, 18, 25, 0.48), rgba(10, 18, 25, 0.38)),
    url("../images/hero-construction.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 18, 0.1), rgba(7, 13, 18, 0.4));
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 142px 0 132px;
  text-align: center;
  color: #ffffff;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-hero p {
  max-width: 60ch;
  margin: 16px auto 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-button-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-button {
  background: #1fa0eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 160, 235, 0.28);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
}

.service-panel-wrap {
  position: relative;
  z-index: 2;
  margin-top: -62px;
}

.service-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid rgba(39, 54, 66, 0.14);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 28px 24px 24px;
  text-align: center;
  border-right: 1px solid rgba(39, 54, 66, 0.12);
}

.service-card:last-child {
  border-right: none;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  color: #2e353a;
}

.service-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h2 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.section-space {
  padding: 26px 0 0;
}

.home-sections .container {
  display: grid;
  gap: 24px;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.showcase-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.showcase-row.single-column {
  grid-template-columns: 1fr;
}

.service-feature-row {
  margin-top: 22px;
}

.text-card,
.image-card,
.list-card,
.director-card,
.page-block,
.contact-box {
  background: var(--surface);
  border: 1px solid rgba(39, 54, 66, 0.1);
  box-shadow: var(--shadow);
}

.text-card,
.list-card,
.page-block,
.contact-box {
  padding: 30px;
}

.home-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section-title {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(1.8rem, 2.7vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.body-copy-spaced {
  margin-top: 14px;
}

.bullet-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--brand-2);
  border-radius: 50%;
  transform: translateY(-50%);
}

.home-copy-card .secondary-button {
  align-self: flex-start;
  margin-top: 18px;
}

.image-card {
  min-height: 360px;
  overflow: hidden;
}

.image-card.hero-repeat {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 18, 25, 0.18), rgba(10, 18, 25, 0.48)),
    url("../images/hero-construction.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-card.hero-repeat .image-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #ffffff;
}

.image-caption small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.image-caption strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.image-caption span {
  display: block;
  max-width: 30ch;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.image-card.logo-panel {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.image-card.logo-panel img {
  width: min(100%, 560px);
  height: auto;
}

.director-photo-panel img,
.it-ai-panel img,
.student-room-panel img,
.director-card img,
.director-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.student-room-panel img {
  min-height: 360px;
  object-position: center center;
}

.it-ai-panel img {
  min-height: 360px;
  object-position: center center;
}

.director-photo-panel img {
  min-height: 360px;
}

.highlight-quote {
  margin: 18px 0 0;
  color: var(--brand);
  font-size: 1.02rem;
  line-height: 1.72;
}

.focus-section {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: grid;
  gap: 0;
}

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

.focus-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(39, 54, 66, 0.1);
  box-shadow: var(--shadow);
}

.focus-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1.3;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.credentials-section {
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

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

.credential-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid rgba(39, 54, 66, 0.1);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.credential-logo-wrap {
  display: flex;
  min-height: 170px;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.credential-logo-wrap img {
  width: auto;
  max-width: 220px;
  max-height: 165px;
  object-fit: contain;
}

.credential-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.credential-card strong {
  color: var(--brand);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.credential-card-certificate {
  justify-content: center;
  background: var(--brand);
}

.credential-card-certificate p,
.credential-card-certificate strong {
  color: #ffffff;
}

.credential-seal {
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.5rem;
}

.cta-band {
  margin-top: 22px;
  padding: 0 0 22px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid rgba(39, 54, 66, 0.1);
  box-shadow: var(--shadow);
}

.cta-button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 128px 0 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(39, 54, 66, 0.08);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-box h2 {
  margin: 10px 0 8px;
  color: var(--brand);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.contact-form-wrap {
  margin-top: 22px;
}

.director-profile-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.director-profile-media {
  border-right: 4px solid var(--brand-2);
  padding-right: 22px;
}

.director-profile-image {
  max-height: 520px;
}

.director-profile-copy .section-title {
  margin-top: 4px;
}

.director-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.director-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 155, 224, 0.18);
  background: #eef7fc;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input,
.textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(39, 54, 66, 0.18);
  background: #ffffff;
  color: var(--text);
}

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

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 4px solid transparent;
}

.notice-success {
  color: #205a3d;
  background: rgba(32, 90, 61, 0.08);
  border-left-color: #205a3d;
}

.notice-error {
  color: #8a3a23;
  background: rgba(138, 58, 35, 0.08);
  border-left-color: #8a3a23;
}

.site-footer {
  margin-top: 22px;
  padding: 28px 0 30px;
  background: #132838;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.footer-logo {
  max-width: none;
  height: 118px;
  width: auto;
  object-fit: contain;
  transform: scale(1.8);
  transform-origin: left center;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.75));
}

.footer-copy,
.footer-meta p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.footer-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links a:nth-child(2) .footer-link-icon svg,
.footer-links a:nth-child(3) .footer-link-icon svg {
  fill: currentColor;
  stroke: none;
}

.footer-meta {
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .service-panel,
  .focus-grid,
  .contact-grid,
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-row,
  .page-grid,
  .director-profile-block {
    grid-template-columns: 1fr;
  }

  .cta-band-inner,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(17, 29, 40, 0.96);
    box-shadow: var(--shadow);
  }

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

  .main-nav .nav-link {
    min-height: 32px;
    color: #ffffff;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .nav-dropdown-label {
    justify-content: space-between;
  }

  .submenu-toggle {
    color: #ffffff;
  }

  .services-submenu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0 4px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .services-submenu a {
    padding: 9px 12px;
    color: #ffffff;
  }

  .nav-dropdown:hover .services-submenu,
  .nav-dropdown:focus-within .services-submenu {
    display: none;
  }

  .nav-dropdown.is-open .services-submenu {
    display: block;
  }

  .site-header:not(.site-header-home) .main-nav {
    background: #ffffff;
  }

  .site-header:not(.site-header-home) .main-nav .nav-link {
    color: var(--brand);
  }

  .site-header:not(.site-header-home) .submenu-toggle,
  .site-header:not(.site-header-home) .services-submenu a {
    color: var(--brand);
  }
}

@media (max-width: 760px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }

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

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

  .trade-image-grid img {
    height: 220px;
  }

  .container {
    width: min(100vw - 24px, 1180px);
  }

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

  .brand-logo {
    height: 72px;
    transform: scale(1.7);
  }

  .brand {
    width: 210px;
  }

  .site-header-home .brand {
    width: 250px;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero-inner {
    padding: 118px 0 98px;
  }

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

  .service-panel-wrap {
    margin-top: -28px;
  }

  .service-panel,
  .focus-grid,
  .page-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid rgba(39, 54, 66, 0.12);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .text-card,
  .list-card,
  .page-block,
  .contact-box,
  .focus-card {
    padding: 22px;
  }

  .image-card {
    min-height: 300px;
  }

  .director-photo-panel img {
    min-height: 300px;
  }

  .student-room-panel img {
    min-height: 300px;
  }

  .it-ai-panel img {
    min-height: 300px;
  }

  .director-profile-media {
    border-right: none;
    padding-right: 0;
  }

  .hero-button-row,
  .cta-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
