/* RESET + BASE ---------------------------------------------------------- */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #ffffff; /* keep white background */
  color: #1f2933;
  line-height: 1.6;
}

/* LAYOUT WRAPPER -------------------------------------------------------- */

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;

  /* helps footer sit nicely on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* NAVBAR ---------------------------------------------------------------- */

header {
  margin-bottom: 2rem;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* anchors the mobile dropdown */
  position: relative;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #0f172a;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-links a.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #0f172a;
}

/* HERO ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero-text p {
  font-size: 1.02rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #374151;
}

.hero-badges span {
  background: #e5f0ff;
  color: #1d4ed8;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* Hero image */
.hero-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  background: #111827;
  min-height: 320px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  padding: 0.75rem 1.4rem;
  border-radius: 0.7rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: #ffffff;
  color: #1f2933;
  border-color: #d1d5db;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

/* SECTIONS -------------------------------------------------------------- */

.section {
  margin-bottom: 3rem;
}

.section h1,
.section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.section p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.08rem;
  max-width: 50rem;
}

/* GRID ------------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.grid img {
  width: 100%;
  height: 260px;
  border-radius: 0.9rem;
  object-fit: cover;
  display: block;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

/* three-column helper */
.three-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* two-column layout */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

/* CARDS ----------------------------------------------------------------- */

.card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card h2,
.card h3 {
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.card p {
  margin-bottom: 0.6rem;
}

/* Lists ----------------------------------------------------------------- */

.checklist,
.bullet-list {
  list-style: none;
  padding-left: 0;
  color: #4b5563;
  font-size: 0.96rem;
}

.checklist li::before {
  content: "✔";
  color: #16a34a;
  margin-right: 0.5rem;
}

.bullet-list li::before {
  content: "•";
  color: #2563eb;
  font-weight: bold;
  margin-right: 0.35rem;
}

.checklist li,
.bullet-list li {
  margin-bottom: 0.4rem;
}

/* SERVICES PAGE: HERO STRIP -------------------------------------------- */
/* Goal: show FULL image, no filler frame color, mobile-safe */

.service-hero {
  margin-top: 1rem;
}

.service-hero .two-col {
  align-items: start;
}

.service-hero-image {
  width: 100%;
}

.service-hero-image img {
  width: 100%;
  height: auto;          /* KEY: no weird mobile cropping/boxing */
  display: block;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.service-hero-text h2 {
  margin-bottom: 0.75rem;
}

/* CTA STRIP ------------------------------------------------------------- */

.cta-strip {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 1.1rem;
  padding: 2rem;
  color: #e5edff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-strip h2 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.cta-strip p {
  color: #e5edff;
  margin-bottom: 0;
}

/* ABOUT PAGE SPECIALS --------------------------------------------------- */

.about-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* CONTACT --------------------------------------------------------------- */

.contact-layout {
  align-items: stretch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.contact-info h2,
.contact-info h3 {
  margin-top: 0.25rem;
}

/* FOOTER ---------------------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-grid h4 {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: inherit;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* LIGHTBOX (used on gallery / portfolio) -------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 0.8rem;
  object-fit: contain;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
}

/* RESPONSIVE ------------------------------------------------------------ */

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 0.75rem 1rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
    min-width: 220px;
  }

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

  .grid img {
    height: 220px;
  }
}
