:root {
  --primary-dark: #03060f;
  --black: #14161f;
  --white: #fafafa;
  --paragraph-gray: #b2b2b2;
  --primary: #4674a5;
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --dark-gray: #afafaf;
  --container-width: 1200px;
  --section-padding: 100px;
  --radius-card: 8px;
  --radius-button: 30px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--primary-dark);
  color: var(--white);
  font-family: Inter, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

h1 { font-size: 76px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 42px; line-height: 1.2; }
h4 { font-size: 18px; line-height: 24px; }
h5 { font-size: 14px; line-height: 20px; }
h6 { font-size: 12px; line-height: 18px; }

p { color: var(--paragraph-gray); line-height: 1.6; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section.bg-a { background: var(--primary-dark); border-radius: 10px; }
.section.bg-b { background: var(--black); border-radius: 10px; }

.gradient-heading {
  background-image: linear-gradient(180deg, var(--white) 34%, var(--primary) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button-primary, .button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 38px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: var(--radius-button);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s;
}

.button-primary {
  background-color: var(--primary);
  color: var(--white);
}
.button-primary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

.button-secondary {
  background-color: var(--white);
  color: var(--primary-dark);
}
.button-secondary:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.card {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 440px;
  padding: 24px;
  background: linear-gradient(160deg, #1b1e2c 0%, var(--black) 60%, #0f1119 100%);
  transition: border-color 0.4s;
}
.card:hover { border-color: var(--white-50); }

.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-section > .container {
  width: 100%;
}
.hero-heading {
  max-width: 700px;
}

@media screen and (max-width: 767px) {
  .hero-heading { max-width: 100%; }
  .hero-section {
    background-size: auto 135% !important;
    background-position: 64% 70% !important;
    align-items: flex-end;
    padding-bottom: 90px;
  }
  .hero-subtext { display: none; }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    background-position: 42% 40% !important;
  }
  .hero-section .container {
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
    transform: translateY(20%);
  }
}

.contact-heading-wrap { padding-left: 24px; }

@media screen and (min-width: 992px) {
  .trust-inset { padding-left: 24px; padding-right: 24px; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.service-card {
  min-height: 260px;
  padding: 28px 20px;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(70, 116, 165, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

@media screen and (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 479px) {
  .services-grid { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: stretch;
}
.contact-form-card, .contact-info-card {
  min-height: auto;
}
.contact-info-card {
  display: flex;
  flex-direction: column;
}
.map-embed-wrap {
  flex: 1;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}
@media screen and (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed-wrap { min-height: 300px; }
}

/* Dark-theme form controls, shared by contact + admin login */
.form-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--paragraph-gray);
}
.form-control {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--primary-dark);
  border: 1px solid var(--white-20);
  border-radius: 10px;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-control::placeholder { color: var(--dark-gray); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: #ff8080; font-size: 13px; margin: -8px 0 12px; }

.site-footer p { margin: 0 0 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--dark-gray);
}
.footer-links a {
  color: var(--paragraph-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.site-footer__credit:hover { color: var(--white); }
.site-footer__credit svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-nav .nav-links { display: flex; gap: 24px; list-style: none; }
.site-nav .nav-links a { color: var(--white); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.site-logo-img { height: 40px; }

@media screen and (max-width: 991px) {
  h1 { font-size: 56px; }
  h3 { font-size: 32px; }
}

@media screen and (max-width: 767px) {
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
}

/* Wider than the 991px nav-collapse breakpoint on purpose: covers
   in-between viewports (e.g. 13" iPad Pro portrait, ~1024px CSS width)
   that are narrower than the 1200px container but wide enough to keep
   the horizontal nav - without this, .container's own 1200px max-width
   nearly equals the viewport and only the thin 15px base padding is
   left as a side gutter. */
@media screen and (max-width: 1240px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-toggle { display: block; font-size: 44px; line-height: 1; padding: 4px 8px; }
  .site-logo-img { height: 48px; }
  .site-nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 16px;
    gap: 12px;
    z-index: 50;
  }
  .site-nav .nav-links.is-open { display: flex; }
}

@media screen and (max-width: 479px) {
  h1 { font-size: 32px; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* Sticky nav with a background once scrolled past the hero */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.site-nav-wrap.is-scrolled {
  background-color: rgba(3, 6, 15, 0.92);
  backdrop-filter: blur(8px);
}

/*
 * Metro gallery: a flat grid, 4 columns wide. Every group of 5 photos forms
 * one large tile (2 cols x 2 rows) plus 4 small tiles filling the other
 * 2x2 block alongside it - exact tessellation, no gaps. Groups alternate
 * which side the large tile sits on. Because this is done with :nth-child
 * on the grid's direct children (not per-item classes), the pattern
 * continues correctly across infinite-scroll-appended items with no JS
 * bookkeeping needed.
 */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: row dense;
  gap: 10px;
}
.metro-grid > .photo-thumb:nth-child(10n+1) {
  grid-column: 1 / 3;
  grid-row: span 2;
}
.metro-grid > .photo-thumb:nth-child(10n+6) {
  grid-column: 3 / 5;
  grid-row: span 2;
}

.photo-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--black) 25%, rgba(255,255,255,0.04) 37%, var(--black) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}
.photo-thumb img.is-loaded { opacity: 1; }

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media screen and (max-width: 991px) {
  .metro-grid { grid-auto-rows: 130px; }
}

@media screen and (max-width: 767px) {
  .metro-grid { grid-auto-rows: 100px; gap: 8px; }
}

@media screen and (max-width: 479px) {
  .metro-grid { grid-auto-rows: 80px; gap: 6px; }
}
