/* ============================================================
   ELITE HSE COMPLIANCE CONSULTING — Main Stylesheet
   To adjust section height/spacing, edit the padding values
   under each section comment below.
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --slate:          #2d3142;
  --slate-light:    #3d4260;
  --slate-dark:     #1a1d2e;
  --glacier:        #4fc3d8;
  --glacier-light:  #7dd4e4;
  --offwhite:       #f4f5f7;
  --mid:            #e8eaee;
  --text:           #1a1c26;
  --muted:          #5a5f7a;
  --white:          #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- SHARED SECTION LAYOUT ---------- */
section {
  /* SPACING: Adjust padding to shorten/lengthen each section */
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--glacier);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* ---------- HERO ---------- */
/* SPACING: Change padding values below to adjust hero height */
#home {
  background: linear-gradient(160deg, var(--slate) 55%, #1a2035 100%);
  padding: 3.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(79,195,216,0.07) 100%);
  border-left: 1px solid rgba(79,195,216,0.12);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* LOGO: Controls the size of the logo image in the hero */
.hero-logo-img {
  width: 260px;       /* ← increase or decrease to resize the logo */
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.divider {
  width: 48px;
  height: 2px;
  background: rgba(79, 195, 216, 0.4);
  margin: 1.5rem 0;
}


.hero-eyebrow {
  display: inline-block;
  background: rgba(79, 195, 216, 0.85);
  border: 1px solid rgba(79, 195, 216, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8), -1px -1px 4px rgba(0,0,0,0.8);
}

.hero-title span {
  color: var(--glacier);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9), -1px -1px 4px rgba(0,0,0,0.9);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--glacier);
  line-height: 1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9), -1px -1px 3px rgba(0,0,0,0.9);
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9), -1px -1px 3px rgba(0,0,0,0.9);
}

/* ---------- ABOUT ---------- */
/* SPACING: Adjust padding in the shared 'section' rule above */
#about {
  background: var(--offwhite);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlight-card {
  background: var(--white);
  border-left: 3px solid var(--glacier);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
}

.highlight-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.highlight-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- CREDENTIALS ---------- */
#credentials {
  background: var(--white);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.cred-card {
  background: var(--offwhite);
  border: 1px solid var(--mid);
  border-top: 3px solid var(--glacier);
  padding: 1.25rem;
  border-radius: 2px;
}

.cred-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cred-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.cred-detail {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- CONTACT ---------- */
/* SPACING: Adjust padding in the shared 'section' rule above */
#contact {
  background: var(--slate);
}

#contact .section-title {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-dot {
  width: 6px;
  height: 6px;
  background: var(--glacier);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.contact-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-text strong {
  color: var(--white);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--glacier);
}

.contact-form textarea {
  min-height: 110px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glacier);
  color: var(--glacier);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-outline:hover {
  background: var(--glacier);
  color: var(--slate);
}

.form-note {
  font-size: 0.8rem;
  color: var(--glacier-light);
  min-height: 1.2rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--slate-dark);
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

footer p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-brand {
  color: var(--glacier);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-logo-img {
    width: 180px;
  }

  .cred-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- HERO NAV ---------- */
.hero-nav {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
.hero-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
 .hero-nav a:hover {
  color: var(--glacier);
  border-bottom-color: var(--glacier);
}
/* ---------- COMMUNITY PAGE ---------- */
.community-hero {
  background: linear-gradient(160deg, var(--slate) 55%, #1a2035 100%);
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.community-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.community-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  line-height: 1.8;
  margin-top: 1rem;
}

.posts-section {
  background: var(--offwhite);
  padding: 3rem 2rem;
}

.posts-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-left: 4px solid var(--glacier);
  border-radius: 0 6px 6px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(45, 49, 66, 0.1);
}

.post-date-badge {
  background: var(--slate);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.5rem;
  gap: 0.15rem;
}

.post-month {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glacier);
}

.post-day {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.post-body {
  padding: 1.5rem 1.75rem;
}

.post-tag {
  display: inline-block;
  background: rgba(79, 195, 216, 0.12);
  border: 1px solid rgba(79, 195, 216, 0.35);
  color: var(--glacier);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.65rem;
}

.post-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate);
  margin-bottom: 0.65rem;
  line-height: 1.15;
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.post-footer {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mid);
}

.post-location {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.community-footer {
  background: var(--slate-dark);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.community-footer p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
}

.btn-return {
  display: inline-block;
  border: 1px solid var(--glacier);
  color: var(--glacier);
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.btn-return:hover {
  background: var(--glacier);
  color: var(--slate);
}
/* ---------- COMMUNITY OVERRIDES ---------- */
.community-hero {
  padding: 2.5rem 2rem 2rem !important;
}

.posts-section {
  padding: 2rem !important;
}
