/* MojoSigma – Clean, professional contractor website */

:root {
  --navy: #1a365d;
  --navy-dark: #0f2744;
  --orange: #dd6b20;
  --orange-hover: #c05621;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
  --shadow-lg: 0 10px 40px rgba(26, 54, 93, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

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

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

a:hover {
  color: var(--orange);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 42px;
  width: auto;
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}

.main-nav a:hover {
  color: var(--navy);
}

.btn-nav {
  background: var(--navy) !important;
  color: white !important;
  padding: 10px 18px !important;
  border-radius: 6px;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--navy-dark) !important;
  color: white !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 80px 0 90px;
  background: linear-gradient(160deg, #f0f5fa 0%, #ffffff 60%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: 32px;
}

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

.hero-logo {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Trust bar */
.trust-bar {
  background: var(--navy);
  color: white;
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy-dark);
  color: white;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header.light .eyebrow {
  color: #f6ad55;
}

.section-header.light h2 {
  color: white;
}

.section-header.light .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.25;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.about-list {
  list-style: none;
  margin-top: 20px;
}

.about-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--gray-700);
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.about-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-card ul {
  list-style: none;
}

.about-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 0.95rem;
}

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

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process-step {
  text-align: center;
  padding: 20px 12px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.process-step h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--gray-600);
}

/* Government */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gov-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.gov-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #f6ad55;
}

.gov-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--gray-700);
  margin-bottom: 28px;
}

.contact-details p {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.contact-details a {
  font-weight: 500;
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: white;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 14px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #f6ad55;
}

.footer-meta p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-meta .small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-width: 240px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gov-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
  }

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

  .mobile-toggle {
    display: flex;
  }

  .services-grid,
  .process-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .section {
    padding: 60px 0;
  }
}

/* Portfolio / Showcase */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--gray-200);
  aspect-ratio: 4 / 3;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder-inner {
  text-align: center;
  padding: 20px;
}

.portfolio-placeholder-inner span {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.portfolio-placeholder-inner p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.portfolio-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Services: support 8 cards */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  position: relative;
  background: #000;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(15, 39, 68, 0.85));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
