/* =========================================================
   TD Safety Consulting LLC — Stylesheet
   Colors pulled from the business card. Edit the variables
   below to retheme the whole site in one place.
   ========================================================= */

:root {
  --color-navy: #1c2b3a;      /* icon background / dark panels */
  --color-navy-light: #2b3f54;
  --color-orange: #e2711d;    /* primary accent — hardhat + wordmark */
  --color-orange-dark: #c25e14;
  --color-black: #111111;     /* bottom bar on card */
  --color-white: #ffffff;
  --color-gray-light: #f5f4f2; /* card background texture */
  --color-gray-mid: #c9c9c9;
  --color-text: #1a1a1a;
  --color-text-muted: #55606b;

  --font-heading: "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  --max-width: 1100px;
  --section-padding: 5rem 1.5rem;
  --transition-fast: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0 0 1rem; }

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-navy);
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-orange-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-outline.on-dark {
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline.on-dark:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #eaeaea;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand-name span {
  display: block;
  color: var(--color-orange);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.site-nav a {
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.site-nav a:hover {
  color: var(--color-orange);
  border-color: var(--color-orange);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 6.5rem 1.5rem 5.5rem;
}
.hero-mark {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  margin: 0 auto 2rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero .slogan {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  color: #d9dde2;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-padding);
  background: var(--color-white);
}
.services-header { margin-bottom: 2.5rem; }

.services-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 3rem;
  align-items: stretch;
}
.services-image {
  position: sticky;
  top: 100px;
  align-self: start;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
}
.services-image img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.services-content {
  min-width: 0;
}

.accordion {
  border-top: 1px solid #e4e4e4;
}
.accordion-item {
  border-bottom: 1px solid #e4e4e4;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}
.accordion-trigger:hover { color: var(--color-orange); }
.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-orange);
  transition: transform var(--transition-fast);
}
.accordion-icon::before {
  top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%);
}
.accordion-icon::after {
  left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner {
  padding: 0 0.25rem 1.75rem;
  color: var(--color-text-muted);
  max-width: 760px;
}
.accordion-panel-inner ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.accordion-panel-inner li { margin-bottom: 0.4rem; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }
.fine-print {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ---------- Occupational Medical callout ---------- */
.med-service {
  background: var(--color-gray-light);
  padding: var(--section-padding);
}
.med-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--color-white);
  border: 1px solid #e4e4e4;
  border-left: 6px solid var(--color-orange);
  border-radius: 4px;
  padding: 2.5rem;
  flex-wrap: wrap;
}
.med-logo {
  width: 96px;
  height: 96px;
  background: var(--color-navy);
  border-radius: 4px;
  flex-shrink: 0;
  /* Placeholder for the occupational medical service logo */
}
.med-content { flex: 1; min-width: 240px; }
.med-content h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.3rem;
  font-weight: 800;
}
.med-content p { color: var(--color-text-muted); }
.med-note {
  font-size: 0.85rem;
  color: #8a8a8a;
  font-style: italic;
}

/* ---------- About ---------- */
.about {
  padding: var(--section-padding);
}
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-gray-light);
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.about-body p { color: var(--color-text-muted); }
.about-credentials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.about-credentials a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-gray-mid);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.about-credentials a:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* ---------- Testimonials (placeholder for future) ---------- */
.testimonials {
  padding: var(--section-padding);
  background: var(--color-gray-light);
  text-align: center;
  display: none; /* remove this rule when testimonials content is ready */
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: var(--color-white);
}
.contact .section-title { color: var(--color-white); }
.contact .section-intro { color: #c8ced4; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.contact-info-list {
  list-style: none;
}
.contact-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-info-list .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-orange);
  margin-bottom: 0.25rem;
}
.contact-info-list a { font-size: 1.05rem; font-weight: 600; }
.contact-info-list a:hover { color: var(--color-orange); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: #d9dde2; }
.form-field input,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8b95a1; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #7fd99a; }
.form-status.error { color: #f2a3a3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: #999;
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--color-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-layout { grid-template-columns: 1fr; }
  .services-image {
    position: static;
    max-width: 100%;
  }
  .services-image img { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid #eaeaea;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
  }
  .site-nav.open { max-height: 300px; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .med-card { padding: 1.75rem; }
}
