/* =============================================
   A. Murphy Inc. — style.css
   Design: Industrial-Sophisticated, Steel Navy + Amber
   ============================================= */

:root {
  --navy: #1b2a47;
  --navy-dark: #0d1520;
  --amber: #f0a500;
  --amber-dark: #c8880a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-light: #eef0f4;
  --gray-mid: #8a929e;
  --text: #2d3748;
  --text-light: #5a6474;
  --transition: 0.3s ease;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
}

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

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

/* ===================== REUSABLE ===================== */
.section-eyebrow {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: var(--amber); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }
.section-title span { color: var(--amber); }

.section-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 65ch;
}

/* Buttons */
.btn-primary-gold {
  background: var(--amber);
  color: var(--navy-dark);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid var(--amber);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary-gold:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-emergency {
  background: #dc2626;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-emergency:hover {
  background: #b91c1c;
  color: var(--white);
}

/* ===================== NAVBAR ===================== */
#mainNav {
  background: rgba(13, 21, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(13, 21, 32, 0.98);
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.brand-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8) !important;
  padding: 0.5rem 0.55rem !important;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover {
  color: var(--amber) !important;
}

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('img/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 25, 0.88) 0%,
    rgba(10, 15, 25, 0.65) 55%,
    rgba(10, 15, 25, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  border-left: 3px solid var(--amber);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 480px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 1.8s ease-in-out infinite;
  z-index: 2;
  transition: color var(--transition);
}
.hero-scroll-indicator:hover { color: var(--amber); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================== STATS BAND ===================== */
.stats-band {
  background: var(--navy-dark);
}

.stat-cell {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-cell:last-child { border-right: none; }

.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ===================== ABOUT ===================== */
.section-about {
  padding: 100px 0;
  background: var(--white);
}

.about-img-wrap {
  position: relative;
  display: inline-block;
}

.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  object-fit: cover;
  max-height: 500px;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amber);
  color: var(--navy-dark);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.4);
}
.badge-year {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-num {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.about-img-wrap { margin-bottom: 30px; }

.affiliation-logos img { opacity: 0.75; transition: opacity var(--transition); }
.affiliation-logos img:hover { opacity: 1; }

/* ===================== SERVICES ===================== */
.section-services {
  padding: 100px 0;
  background: var(--off-white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-img-wrap {
  height: 200px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-body {
  padding: 1.75rem 1.75rem 2rem;
  position: relative;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--amber);
  color: var(--navy-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: absolute;
  top: -24px;
  right: 1.75rem;
  box-shadow: 0 4px 16px rgba(240,165,0,0.4);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
  margin-top: 0.5rem;
}

.service-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ===================== FEATURED PROJECT ===================== */
.featured-project {
  background: var(--navy-dark);
}

.featured-project-img {
  min-height: 520px;
  overflow: hidden;
}
.featured-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-project-copy {
  padding: 80px 60px 80px 80px;
  color: var(--white);
}

.featured-project-copy p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.project-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.project-specs li i {
  color: var(--amber);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.project-partners {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* ===================== PROJECTS GRID ===================== */
.section-projects {
  padding: 100px 0;
  background: var(--white);
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.project-card:hover img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,25,0.9) 0%, rgba(10,15,25,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-overlay h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.project-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}

/* Always show project name at bottom on mobile */
@media (max-width: 768px) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10,15,25,0.85) 0%, transparent 60%);
  }
}

/* ===================== SAFETY ===================== */
.section-safety {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.section-safety p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.safety-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.safety-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.safety-feature > i {
  font-size: 1.4rem;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}
.safety-feature strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.safety-feature p {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(255,255,255,0.62);
}

.safety-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.safety-stat-card {
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.safety-stat-card.accent {
  background: var(--amber);
  color: var(--navy-dark);
}
.safety-stat-card.dark {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.ss-num {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.safety-stat-card.dark .ss-num { color: var(--amber); }
.safety-stat-card.accent .ss-num { color: var(--navy-dark); }

.ss-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.safety-stat-card.dark .ss-label { color: var(--white); }
.safety-stat-card.accent .ss-label { color: var(--navy-dark); }

.ss-desc {
  font-size: 0.78rem;
}
.safety-stat-card.dark .ss-desc { color: rgba(255,255,255,0.55); }
.safety-stat-card.accent .ss-desc { color: rgba(13,21,32,0.65); }

/* ===================== COMMUNITY ===================== */
.section-community {
  padding: 100px 0;
  background: var(--off-white);
}

/* Override Bootstrap for 5-column layout */
.col-lg-2-5 {
  width: 20%;
}
@media (max-width: 991px) {
  .col-lg-2-5 { width: 33.333%; }
}
@media (max-width: 767px) {
  .col-lg-2-5 { width: 50%; }
}

.community-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.community-card i {
  font-size: 1.8rem;
  color: var(--amber);
}
.community-card span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.4;
}

/* ===================== CONTACT ===================== */
.section-contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-info-block {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  height: 100%;
}

.contact-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail > i {
  font-size: 1.2rem;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-detail strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.contact-detail p {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}
.contact-detail a {
  color: var(--white);
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--amber); }

.emergency-detail > i { color: #ef4444; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 400px;
}
.map-wrap iframe {
  display: block;
  height: 100%;
  min-height: 400px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.footer-address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--amber); }

.footer-affiliations img { opacity: 0.6; }

.powered-by {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.powered-by a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.powered-by a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 40px;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1199px) {
  .featured-project-copy {
    padding: 60px 40px;
  }
}

@media (max-width: 991px) {
  .featured-project-img { min-height: 360px; }
  .safety-stat-grid { gap: 0.75rem; }
  .ss-num { font-size: 2rem; }
}

@media (max-width: 767px) {
  .section-about,
  .section-services,
  .section-projects,
  .section-safety,
  .section-community,
  .section-contact { padding: 70px 0; }

  .hero-title { font-size: clamp(2.8rem, 13vw, 4.5rem); }

  .about-img-badge {
    width: 80px;
    height: 80px;
    bottom: -12px;
    right: -12px;
  }
  .badge-num { font-size: 1.2rem; }

  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-cell:last-child { border-bottom: none; }

  .featured-project-copy { padding: 40px 24px; }

  .safety-stat-grid { grid-template-columns: 1fr 1fr; }
  .ss-num { font-size: 1.6rem; }
  .safety-stat-card { padding: 1.5rem 1rem; }

  .contact-info-block { margin-bottom: 1rem; }
}

@media (max-width: 575px) {
  .stat-cell { padding: 1.75rem 1rem; }
  .stat-number { font-size: 1.9rem; }
  .hero-title { line-height: 1.0; }
}
