/* ============================================
   JM All Solutions — main stylesheet
   ============================================ */

:root {
  --blue-dark: #0f2f5c;
  --blue: #1a6fb5;
  --blue-light: #3b9fdb;
  --green-dark: #145a24;
  --green: #2e8b3d;
  --green-light: #4caf50;
  --ink: #1c2530;
  --ink-soft: #4a5563;
  --paper: #ffffff;
  --paper-soft: #f4f7f6;
  --border: #e2e8e6;
  --shadow: 0 10px 30px rgba(15, 47, 92, 0.10);
  --radius: 14px;
  --max-width: 1180px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 2000;
  background: var(--blue-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--blue-dark);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.section {
  padding: 80px 0;
}

.section-tight { padding: 56px 0; }

.section-alt {
  background: var(--paper-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(46, 139, 61, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 640px;
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 111, 181, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 111, 181, 0.38); }

.btn-outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-dark-outline {
  background: transparent;
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}
.btn-dark-outline:hover { background: var(--blue-dark); color: #fff; }

.btn-block { width: 100%; justify-content: center; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}

.brand-name span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--green);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-cta .btn-primary { padding: 11px 22px; font-size: 0.9rem; }

.nav-mobile-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,45,0.65) 0%, rgba(10,35,30,0.72) 55%, rgba(8,30,20,0.85) 100%);
  z-index: -1;
}

.hero-content {
  color: #fff;
  max-width: 720px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,47,92,0.88), rgba(20,90,36,0.82));
  z-index: -1;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 600px; font-size: 1.05rem; margin: 0; }

/* ============ Cards / Grids ============ */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(15,47,92,0.16); }

.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 26px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card-body p { margin-bottom: 16px; font-size: 0.95rem; }

.card-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--green); }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 30px 18px;
}
.feature .icon-badge { margin: 0 auto 16px; }
.feature h4 { font-size: 1rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; margin: 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery .g-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery .g-item:hover img { transform: scale(1.07); }

/* Service detail sections */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-block.reverse .service-media { order: 2; }
.service-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-media-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
.service-media-grid .tall { aspect-ratio: auto; grid-row: span 2; }

.check-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46,139,61,0.14);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Badge strip */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.badge-pill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue-dark);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 460px; }

/* About page */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.value-card h4 { font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; margin: 0; }

.family-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.family-strip img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }

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

.contact-info-card {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon-badge { margin: 0; width: 44px; height: 44px; font-size: 1.15rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,111,181,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-status.success {
  background: rgba(20, 90, 36, 0.1);
  color: var(--green-dark);
  border: 1px solid rgba(20, 90, 36, 0.25);
}
.form-status.error {
  background: rgba(178, 34, 34, 0.08);
  color: #a32020;
  border: 1px solid rgba(178, 34, 34, 0.25);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 42px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.94rem; }
.footer-links a:hover { color: #fff; }
.footer-links a.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a.social-link svg { flex-shrink: 0; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .service-block, .family-strip, .contact-grid { grid-template-columns: 1fr; }
  .service-block.reverse .service-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-mobile-cta { display: block; margin-top: 6px; }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .section { padding: 56px 0; }
}

/* Real contact links (added once real phone/email were available) */
.contact-info-item p a,
.form-note a {
  color: var(--blue);
  font-weight: 600;
}
.contact-info-item p a:hover,
.form-note a:hover { color: var(--green); text-decoration: underline; }

.nav-links a.call-link {
  color: var(--blue-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a.call-link:hover { color: var(--blue); }
.nav-links a.call-link svg { flex-shrink: 0; }
