/* --- Color Palette & Variables --- */
:root {
  --bg-color: #d8dec4;    /* Muted olive background */
  --accent-green: #BDD71C; /* Bright lime green */
  --text-dark: #090807;    /* Near black */
  --text-muted: #5D5C5A;   /* Gray */
  --white: #EAEAEA;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Header & Navigation --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6rem;
  flex-wrap: wrap;
  gap: 1rem;
}



.logo img {
  display: block;
  max-width: 140px;
  max-height: 40px;
  width: auto;
  height: auto;
}

nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.btn-dark {
  background-color: hsl(214, 100%, 48%);
  color: var(--white);
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  border: 1.5px solid var(--text-dark);
  box-shadow: 3px 3px 0px var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  header {
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
  }

  .logo img {
    max-width: 120px;
    max-height: 36px;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    margin: 0.35rem;
    font-size: 0.9rem;
  }

  .btn-dark {
    width: 100%;
    text-align: center;
    padding: 0.85rem 0;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    justify-content: center;
  }
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 1.5rem;
  background-color: transparent;
  border: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-dark);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: hsl(214, 100%, 48%);
}

.footer-bottom {
  border-top: 1px solid rgba(9, 8, 7, 0.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text-muted);
}

.btn-dark {
  background-color: hsl(214, 100%, 48%);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s, background-color 0.2s ease;
}

.btn-dark:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  background-color: hsl(214, 100%, 40%);
}

.btn-dark:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--text-dark);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}


.btn-primary {
  background-color: hsl(214, 100%, 48%);
  color: var(--text-dark);
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  border: 1.5px solid var(--text-dark);
  box-shadow: 3px 3px 0px var(--text-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--text-dark);
}

.service-summary {
  margin-top: 3rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
}

.service-card {
  display: block;
  padding: 1.2rem 1rem;
  background-color: var(--white);
  border: 1.5px solid rgba(9, 8, 7, 0.14);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: hsl(214, 100%, 48%);
  box-shadow: 0 10px 30px rgba(9, 8, 7, 0.08);
}

.service-card h5 {
  margin: 0 0 0.7rem 0;
  font-size: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(9, 8, 7, 0.55);
  padding: 1.5rem;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: min(540px, 100%);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(9, 8, 7, 0.16);
  padding: 2rem;
  position: relative;
}

.modal-card h2 {
  margin-top: 0;
}

.modal-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-row label {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--text-dark);
}

.modal-row input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(9, 8, 7, 0.16);
  background: #f6f7f5;
  color: var(--text-dark);
  font-family: inherit;
}

.modal-row input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(189, 215, 28, 0.14);
}

.modal-row textarea {
  width: 100%;
  min-height: 124px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(9, 8, 7, 0.16);
  background: #f6f7f5;
  color: var(--text-dark);
  font-family: inherit;
  resize: vertical;
}

.modal-row textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(189, 215, 28, 0.14);
}

.modal-card button.btn-primary {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(189, 215, 28, 0.14);
}

.modal-card button.btn-primary {
  width: 100%;
}

@media (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }

  .hero {
    width: 100%;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.75rem, 5vw, 3.3rem);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 2rem;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .logo {
    display: flex;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100% !important;
  }

  .hero-content {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 720px !important;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 7vw, 2.9rem) !important;
  }

  .hero-content p {
    font-size: 0.98rem !important;
    margin: 0 auto 1rem !important;
  }

  .hero-content .btn-primary,
  .hero-content .btn-dark {
    margin: 0.75rem auto 0 !important;
    align-self: center !important;
    width: min(320px, 100%) !important;
    max-width: 100% !important;
  }

  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    justify-items: stretch !important;
  }

  .service-grid > *,
  .footer-grid > div {
    justify-self: stretch !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .modal-overlay {
    padding: 0.75rem !important;
  }

  .modal-card {
    width: min(100%, 520px) !important;
    max-height: calc(100vh - 2rem) !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-bottom > * {
    width: 100% !important;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 1rem;
  }

  nav a {
    margin: 0.35rem;
    font-size: 0.92rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.4rem);
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .service-card {
    padding: 1rem;
  }

  .modal-overlay {
    padding: 1rem;
  }

  .modal-card {
    padding: 1.25rem;
    border-radius: 18px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .modal-row input,
  .modal-row textarea {
    padding: 0.85rem 0.95rem;
  }

  .btn-primary,
  .btn-dark {
    width: 100%;
  }
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
