/* Modern Mammoth Group theme */
:root {
  color-scheme: dark light;
  --bg: #eff3f7;
  --surface: #ffffff;
  --surface-contrast: #f3f7fb;
  --text: #0f172a;
  --muted: #556674;
  --primary: #0f56d9;
  --accent: #ffb703;
  --accent-soft: rgba(255, 183, 3, 0.14);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
  --radius: 28px;
  font-size: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0a47ba;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

header.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img.site-logo {
  height: 52px;
  display: block;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  position: relative;
}

.site-nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav li a:hover,
.site-nav li a.active {
  background: var(--accent-soft);
  color: var(--text);
}

.site-nav li ul {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.08);
  display: none;
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul {
  display: block;
}

.site-nav li ul li {
  width: 100%;
}

.site-nav li ul li a {
  display: block;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0.85rem 1.1rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(3, 26, 75, 0.88), rgba(3, 26, 75, 0.62)), url('../../../images/home_thumbs/construct_1.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 26, 75, 0.3), rgba(3, 26, 75, 0.75));
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}

.eyebrow {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 0;
  max-width: 14ch;
  line-height: 1.02;
}

.hero p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 22px 50px rgba(255, 183, 3, 0.23);
}

.button:hover {
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1rem;
}

.text-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.core-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.core-grid .card {
  display: flex;
  flex-direction: column;
}

.core-grid .card img {
  height: 160px;
}


.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
}

.card img {
  border-radius: 22px;
  margin-bottom: 1.25rem;
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature {
  background: linear-gradient(135deg, #f8fbfe, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
}

.breadcrumbs {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.page-title {
  margin: 0 0 1rem;
}

.page-title h1,
.page-title h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.5rem);
}

.page-content {
  display: grid;
  gap: 2rem;
}

.page-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  margin: 1.5rem 0 2rem;
}

.page-content img {
  border-radius: 24px;
  max-height: 480px;
  object-fit: cover;
}

.page-content h3,
.page-content h4 {
  margin-bottom: 0.75rem;
}

.page-content ul {
  list-style: disc inside;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

label input,
label textarea {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font: inherit;
  background: #ffffff;
}

label textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 4rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    position: absolute;
    top: 80px;
    right: 1rem;
    width: calc(100% - 2rem);
    padding: 1rem;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  }
  .site-nav.open ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero .container {
    padding: 0 0.5rem;
  }
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 2.25rem;
  }
  .page-content {
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .card {
    padding: 1.5rem;
  }
  .card img {
    height: 180px;
  }
  .footer-inner {
    gap: 1.5rem;
  }
}

footer.site-footer {
  background: #0f172a;
  color: #d1d5db;
  padding: 2rem 0;
}

footer .footer-inner {
  display: grid;
  gap: 1.5rem;
}

footer h3 {
  margin-top: 0;
  color: #fff;
}

footer p,
footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: #fff;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer .footer-links li {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.84);
  margin-bottom: 1rem;
  display: inline-block;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
  }
}

/* In-page navigation and section indicator */
.inpage-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.25rem;
}
.inpage-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
  color: var(--text);
  font-weight: 600;
}
.inpage-nav a:hover { background: rgba(15,23,42,0.06); }

.section-indicator {
  position: sticky;
  top: 72px;
  z-index: 60;
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .section-indicator { top: 88px; }
}
