/* ============================================================
   Sunbeam Consultants — Site Stylesheet
   Brand colors sampled from provided logo:
     blue  #1a66b1   green #0c8041
   ============================================================ */

:root {
  --blue-900: #0c2e4f;
  --blue-800: #103f6b;
  --blue-700: #1a5fa8;
  --blue-600: #1a66b1;
  --blue-100: #e7f0fa;
  --green-700: #0a6835;
  --green-600: #0c8041;
  --green-400: #4ecf94; /* brand green lightened for text on dark (navy) backgrounds */
  --green-100: #e6f4ea;
  --gray-900: #1f2530;
  --gray-700: #445062;
  --gray-500: #6b7686;
  --gray-300: #d7dce2;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(12, 46, 79, 0.08);
  --shadow-lg: 0 12px 32px rgba(12, 46, 79, 0.14);
  --radius: 6px;
  --max-width: 1040px;
  --font-body: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  --font-head: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--green-700); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-900);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 10px;
}

.placeholder {
  background: #fff6e0;
  border: 1px dashed #d8a900;
  color: #6b5300;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline-blue:hover { background: var(--blue-100); color: var(--blue-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 58px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-700);
  border-bottom-color: var(--green-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue-900);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
/* Flat navy with a faint drafting-grid texture (the "blueprint" cue) and a
   small green accent bar above the eyebrow label. A topographic-contour
   graphic was tried here and removed — at actual render size it read as a
   generic radar/target icon rather than a legible engineering motif, more
   ambiguous decoration than deliberate identity. */
.hero {
  position: relative;
  background: var(--blue-900);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-accent-bar {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--green-600);
  border-radius: 2px;
  margin-bottom: 16px;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 88px;
}
.hero.page-hero .hero-inner { padding: 64px 24px; }
.hero h1 { color: var(--white); max-width: 760px; font-weight: 600; }
.hero p.lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Two-part hero detail blocks (services.html): "What we do" / "How we
   differ" labeled sub-sections used in place of a single lead paragraph. */
.hero-detail-group { margin-top: 26px; }
.hero-detail-group + .hero-detail-group { margin-top: 22px; }
.hero-detail-label {
  color: var(--green-400);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.hero-discipline-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
}
.hero-discipline-tags li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-detail-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 620px;
  margin: 0;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--green-600);
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 12px; font-size: 0.95rem; }
.card a.more { font-weight: 600; font-size: 0.9rem; }

/* ---------- Value props / stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-row .stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue-700);
  display: block;
}
.stat-row .stat-label {
  color: var(--gray-500);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Service detail blocks (services.html) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-300);
}
.service-block:last-child { border-bottom: none; }
.service-block .badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.service-block ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.service-block ul li { margin-bottom: 8px; font-size: 0.95rem; color: var(--gray-700); break-inside: avoid; }

/* Description-style list: title + one line of explanation per item (used
   once a plain bullet list gets descriptions added — a 2-column layout of
   short fragments doesn't hold up once items wrap to 2-3 lines). */
.service-block ul.service-list-desc {
  columns: 1;
  padding-left: 0;
  list-style: none;
}
.service-list-desc li {
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 3px solid var(--green-100);
}
.service-list-desc li:last-child { margin-bottom: 0; }
.service-list-desc li strong {
  display: block;
  color: var(--blue-900);
  font-size: 0.97rem;
  margin-bottom: 2px;
}

/* Nested sub-list inside a .service-list-desc item (used by Geotechnical's
   "Foundation Design & Engineering" entry to break out shallow vs. deep
   foundations without switching to a different block-level layout). */
.service-list-desc li ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 2px;
}
.service-list-desc li ul li {
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--gray-300);
  font-size: 0.92rem;
}
.service-list-desc li ul li:last-child { margin-bottom: 0; }
.service-list-desc li ul li strong {
  display: inline;
  color: var(--gray-900);
  font-size: inherit;
  margin-bottom: 0;
}

/* ---------- About page ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-grid .card h3 { color: var(--blue-800); }

.leader-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.leader-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ---------- Projects page ---------- */
.project-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project-thumb {
  height: 150px;
  background: repeating-linear-gradient(135deg, var(--blue-100), var(--blue-100) 10px, #ffffff 10px, #ffffff 20px);
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 12px;
}
.project-card .project-body { padding: 22px; }
.project-card .badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-notice {
  background: #fff6e0;
  border: 1px solid #e6c200;
  color: #6b5300;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-size: 0.92rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-card .row .icon { width: 22px; height: 22px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.contact-info-card .row strong { display: block; color: var(--blue-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }

form.contact-form { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--gray-900); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.9rem; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.footer-logo img { height: 46px; display: block; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Breadcrumb-ish page header spacing ---------- */
.page-hero .eyebrow { color: rgba(255,255,255,0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 20px; }
  .service-block ul { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.justified {   /* ✅ CORRECT - NO SPACE */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 700px;
  margin: 0 auto 1.2em auto;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: flex; }
  .hero-inner { padding: 56px 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
