/* ===========================
   SPOLLEN CONCRETE — Global Styles
   =========================== */

:root {
  --red:        #C8102E;
  --red-dark:   #a50d26;
  --dark:       #1C1C1C;
  --charcoal:   #2E2E2E;
  --surface:    #1C1C1C;
  --surface-2:  #2E2E2E;
  --mid:        #555555;
  --stone:      #777777;
  --light:      #F4F4F4;
  --white:      #FFFFFF;
  --border:     #E0E0E0;
  --font:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;          /* prevent horizontal scroll at root level */
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;          /* belt-and-braces overflow guard */
  -webkit-text-size-adjust: 100%; /* prevent iOS font-size inflation */
}

/* Prevent iOS zoom on input focus — keep font-size ≥ 16px */
input, select, textarea {
  font-size: max(16px, 1rem);
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--mid); }

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

/* ===========================
   LAYOUT
   =========================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

/* ===========================
   NAVIGATION
   =========================== */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: #a50d26 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: #a50d26; }

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

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: #111111; }

/* ===========================
   HERO — HOME
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0f0f0f;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 70px;
  padding-left: 1.5rem;
  border-left: 3px solid var(--red);
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-tagline em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(240,237,232,0.65);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Rotating taglines */
.tagline-rotator {
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
  min-height: 1.5em;
  font-style: italic;
}

/* ===========================
   STATS BAR
   =========================== */

.stats-bar {
  background: var(--red);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================
   CARDS
   =========================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover::after { transform: scaleX(1); }

.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 16/9;
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
  width: 100%;        /* always fill the parent/grid cell */
  min-width: 0;       /* prevent grid blowout */
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal), var(--dark));
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body { padding: 1.25rem 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; color: var(--dark); }
.card-body p  { font-size: 0.9rem; }

/* ===========================
   TABS
   =========================== */

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition);
}

.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===========================
   PROJECTS TABLE
   =========================== */

.projects-list {
  display: grid;
  gap: 1rem;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 4px solid var(--red);
}

.project-row h4 { color: var(--dark); font-size: 1rem; }
.project-row .project-client { font-size: 0.85rem; color: var(--mid); margin-top: 0.2rem; }
.project-row .project-year { font-size: 0.85rem; font-weight: 700; color: var(--red); white-space: nowrap; }

/* Project card — image + details side by side */
.project-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 4px solid var(--red);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.project-card-img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.project-card h4 { color: var(--dark); font-size: 1rem; font-weight: 700; margin: 0; }
.project-card .project-client { font-size: 0.85rem; color: var(--mid); }
.project-card .project-year { font-size: 0.85rem; font-weight: 700; color: var(--red); }
.project-card .project-tag {
  display: inline-block;
  background: #C8102E;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .project-card { grid-template-columns: 1fr; }
  .project-card-img { max-height: 200px; min-height: 160px; }
}

/* ===========================
   CONCRETE CALCULATOR
   =========================== */

.calculator-wrap {
  background: var(--light);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.calc-result {
  background: var(--dark);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc-result .result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

/* ===========================
   QUOTE / CONTACT FORM
   =========================== */

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quote-form .full-width { grid-column: 1 / -1; }

.quote-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit { display: flex; justify-content: flex-start; }

/* ===========================
   TESTIMONIALS
   =========================== */

.testimonials-section { background: var(--dark); }
.testimonials-section .section-label { color: #ff6b7a; }
.testimonials-section h2 { color: var(--white); }

.testimonial-slider { position: relative; overflow: hidden; }

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-company {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.dot.active { background: var(--red); }

/* ===========================
   LOGOS TICKER
   =========================== */

.logos-section { background: var(--light); padding: 2.5rem 0; overflow: hidden; }

.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: ticker 20s linear infinite;
  width: max-content;
}

.logos-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */

.page-hero {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 8rem 0 4rem;
  margin-top: 70px;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

/* ===========================
   QUALITY PAGE
   =========================== */

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

.quality-card {
  padding: 2rem;
  background: var(--light);
  border-radius: 8px;
  border-top: 3px solid var(--red);
}

.quality-card h3 { margin-bottom: 0.75rem; color: var(--dark); }
.quality-card ul { padding-left: 0; }
.quality-card ul li { padding: 0.3rem 0; color: var(--mid); font-size: 0.9rem; }
.quality-card ul li::before { content: '— '; color: var(--red); }

/* ===========================
   ABOUT PAGE
   =========================== */

.about-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Prevent grid children from overflowing their track */
.about-timeline > * { min-width: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-stat {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.about-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.about-stat p {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 500;
}

/* ===========================
   CAREERS PAGE
   =========================== */

.careers-intro {
  background: var(--light);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  border-top: 3px solid var(--red);
}

/* ===========================
   CONTACT / MAP AREA
   =========================== */

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

.coverage-map {
  background: var(--light);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.ireland-map-svg {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.coverage-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-dot.served { background: var(--red); }
.legend-dot.country { background: #ccc; }

/* ===========================
   FOOTER
   =========================== */

footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { font-size: 1.4rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===========================
   UTILITY
   =========================== */

.bg-light   { background: var(--light); }
.bg-dark    { background: var(--dark); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-timeline { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .blocks-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 680px) {
  section { padding: 3.5rem 0; }

  /* --- Nav --- */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-top: 2px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-links a.active { color: var(--red); }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    display: block;
    text-align: center;
    border-radius: 4px;
    padding: 0.75rem;
  }

  /* --- Hero: full-width dark overlay on mobile --- */
  .hero-overlay {
    background: rgba(0, 0, 0, 0.82);
  }
  .hero-content { max-width: 100%; padding-left: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* --- Stats: 2-column on small phone --- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* --- Cards: always single column --- */
  .card-grid { grid-template-columns: 1fr; }

  /* --- About --- */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* --- About timeline photo on mobile --- */
  .about-timeline {
    gap: 2rem;               /* tighter gap when stacked */
  }
  /* Cap the placeholder image height on mobile so it doesn't dominate */
  .about-timeline .card-img,
  .about-timeline [style*="min-height"] {
    min-height: 220px !important;  /* override inline style */
    width: 100% !important;
    max-width: 100%;
  }

  /* --- Calculator --- */
  .calc-form { grid-template-columns: 1fr; }
  .calculator-wrap { padding: 1.5rem; }

  /* --- Contact page --- */
  .contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .quote-form { grid-template-columns: 1fr; }

  /* --- Projects --- */
  .project-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .project-row .project-year { font-size: 0.8rem; }

  /* --- Quality grid --- */
  .quality-grid { grid-template-columns: 1fr; }

  /* --- Careers intro --- */
  .careers-intro { padding: 2rem 1.25rem; }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* --- Page hero text --- */
  .page-hero h1 { font-size: 2rem; }

  /* --- Testimonials --- */
  .testimonial-text { font-size: 1rem; padding: 0 0.5rem; }
}

/* Extra-small phones (320px) */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
  h1 { font-size: 1.75rem; }
}

/* ===========================
   PAGE TRANSITION OVERLAY
   =========================== */

#page-transition {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: all;
}

#page-transition.pt-out {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
   SCROLL REVEAL SYSTEM
   =========================== */

.reveal {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.reveal-up    { transform: translateY(35px); }
.reveal.reveal-left  { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.25s; }
.stagger-4 { transition-delay: 0.35s; }
.stagger-5 { transition-delay: 0.45s; }
.stagger-6 { transition-delay: 0.55s; }

/* ===========================
   HERO ENTRANCE ANIMATION
   =========================== */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Home hero text stagger */
.hero-content .section-label  { animation: heroFadeUp 0.6s ease 0.30s both; }
.hero-content .hero-tagline    { animation: heroFadeUp 0.7s ease 0.45s both; }
.hero-content .tagline-rotator { animation: heroFadeUp 0.6s ease 0.60s both; }
.hero-content .hero-sub        { animation: heroFadeUp 0.6s ease 0.65s both; }
.hero-content .hero-actions    { animation: heroFadeUp 0.6s ease 0.80s both; }

/* Inner page hero text stagger */
.page-hero .container > *:nth-child(1) { animation: heroFadeUp 0.6s ease 0.15s both; }
.page-hero .container > *:nth-child(2) { animation: heroFadeUp 0.6s ease 0.30s both; }
.page-hero .container > *:nth-child(3) { animation: heroFadeUp 0.6s ease 0.45s both; }

/* ===========================
   PARALLAX HERO
   =========================== */

.hero-bg { will-change: transform; }

/* ===========================
   ENHANCED HOVER EFFECTS
   =========================== */

/* Cards — more dramatic lift */
.card {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  transform: translateY(-6px);
}

/* Quality cards */
.quality-card {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.quality-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* Buttons — spring feel */
.btn {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover   { transform: translateY(-2px) scale(1.03); }
.btn:active  { transform: scale(0.97); transition-duration: 0.1s; }

/* Project rows — nudge right */
.project-row {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-row:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateX(5px);
}

/* Coverage map scale on hover */
.ireland-map-svg {
  transition: transform 0.4s ease;
}
.coverage-map:hover .ireland-map-svg {
  transform: scale(1.03);
}

/* ===========================
   NAV LINK UNDERLINE SLIDE
   =========================== */

.nav-links a:not(.nav-cta) { position: relative; }

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { width: 100%; }

/* Disable underline on mobile (stacked nav) */
@media (max-width: 680px) {
  .nav-links a:not(.nav-cta)::after { display: none; }
}

/* Logo */
.nav-logo img { height: 44px; width: auto; display: block; filter: none; }

/* Footer logo — same wordmark as the header, naturally sized */
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.footer-brand .nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}
.footer-brand .nav-logo:hover img { opacity: 0.85; }

/* ===========================
   CTA BAND
   =========================== */

.cta-band {
  background: linear-gradient(135deg, #E8102E 0%, #C00C25 100%);
  padding: 4rem 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.cta-btn {
  background: #fff !important;
  color: var(--red) !important;
  font-weight: 700 !important;
}

.cta-btn:hover {
  background: var(--light) !important;
}

/* ===========================
   CARD TAG (product sub-label)
   =========================== */

.card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem !important;
  margin-top: 0.25rem;
}

/* ===========================
   HISTORY TIMELINE & CAROUSEL
   =========================== */

.timeline-period {
  margin-bottom: 5rem;
}

.timeline-period-header {
  margin-bottom: 1.75rem;
}

.timeline-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
}

.timeline-period-header h3 {
  margin-bottom: 0.5rem;
}

.timeline-period-header p {
  color: var(--mid);
  max-width: 640px;
}

.timeline-carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.carousel-btn:hover { background: var(--red); }

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.carousel-dots .dot.active { background: var(--red); }

@media (max-width: 680px) {
  .carousel-img,
  .carousel-img img {
    height: 300px;
  }
}

/* ===========================
   ABOUT — STORY HERO
   =========================== */

.about-story-hero {
  padding: 7rem 0 4rem;
  background: var(--light);
  color: var(--dark);
}

.story-hero-inner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.story-red-bar {
  width: 6px;
  background: var(--red);
  border-radius: 3px;
  flex-shrink: 0;
}

.story-big-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 1rem;
}

.story-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 0;
}

.about-stats-bar {
  background: var(--red);
  padding: 3rem 0;
}

.about-story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.story-stat-box {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.story-stat-box h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.story-stat-box p {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-stat-box:last-child {
  border-right: none;
}

@media (max-width: 600px) {
  .about-story-stats {
    grid-template-columns: 1fr;
  }
  .story-stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .story-stat-box:last-child {
    border-bottom: none;
  }
}

/* ===========================
   ABOUT — PERIOD SECTIONS
   =========================== */

.about-period {
  padding: 5rem 0;
}

.period-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.period-inner--reverse {
  direction: rtl;
}

.period-inner--reverse > * {
  direction: ltr;
}

.period-text .timeline-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.period-text h2 {
  margin-bottom: 1.25rem;
}

.period-text p {
  color: var(--mid);
  line-height: 1.75;
}

.period-carousel {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .period-inner,
  .period-inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
}

/* ===========================
   PROJECTS — REDESIGN 2026
   =========================== */

/* ---- 1. HERO SLIDER ---- */

.proj-slider {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  background: #111;
  margin-top: 70px;
}

.proj-slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.proj-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.proj-slider-slide.is-active img {
  transform: scale(1.06);
}

.proj-slider-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  pointer-events: none;
}

.proj-slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 3rem;
  z-index: 2;
}

.proj-slider-caption h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.proj-slider-client {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 500;
}

.proj-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
  line-height: 1;
  padding: 0;
}

.proj-slider-btn:hover {
  background: rgba(200,16,46,0.8);
  border-color: transparent;
}

.proj-slider-prev { left: 1.5rem; }
.proj-slider-next { right: 1.5rem; }

.proj-slider-dots {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.proj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.proj-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

/* ---- 2. SECTOR NAV CARDS ---- */

.sectors-section {
  padding: 5rem 0;
  background: var(--light);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.sector-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sector-card:nth-child(4) { grid-column: 2 / span 2; }
.sector-card:nth-child(5) { grid-column: 4 / span 2; }

.sector-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.sector-card-img-wrap {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.sector-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.sector-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2e2e2e, #1a1a1a);
}

.sector-card:hover .sector-card-img { transform: scale(1.06); }

.sector-card-label {
  padding: 0.9rem 1.25rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  border-top: 2px solid var(--border);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sector-card:hover .sector-card-label {
  background: var(--red);
  color: var(--white);
  border-top-color: var(--red);
}

.sector-card-arrow {
  font-size: 1rem;
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sector-card:hover .sector-card-arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* ---- 3. FEATURED PROJECT GRID ---- */

.proj-grid-section { padding: 5rem 0; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proj-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: #1e1e1e;
}

.proj-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.proj-item:hover img { transform: scale(1.07); }

.proj-item-noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.proj-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
}

.proj-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
}

.proj-item-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.proj-item-client {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- 4. SUB-PAGE BACK LINK ---- */

.proj-back { padding: 5.5rem 0 0; }

.proj-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition);
}

.proj-back a:hover { gap: 0.65rem; }

/* ---- 5. AGRICULTURAL / DOMESTIC INFO HERO ---- */

.sector-info-hero {
  margin-top: 70px;
  position: relative;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
}

.sector-info-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sector-info-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.sector-info-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 0;
}

.sector-info-hero-text .section-label { color: rgba(255,255,255,0.7); }
.sector-info-hero-text h1 { color: var(--white); }

.sector-info-block { padding: 5rem 0; }

.sector-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sector-info-content h2 { margin-bottom: 1.25rem; }
.sector-info-content p { margin-bottom: 1rem; color: var(--mid); line-height: 1.75; }
.sector-info-content ul { padding-left: 1.25rem; list-style: disc; margin-bottom: 1rem; }
.sector-info-content ul li { margin-bottom: 0.5rem; color: var(--mid); line-height: 1.65; }

.sector-spec-box {
  background: var(--light);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 2rem;
}

.sector-spec-box h3 { margin-bottom: 1rem; font-size: 1rem; }
.sector-spec-box table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sector-spec-box td { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.sector-spec-box td:first-child { font-weight: 600; color: var(--dark); width: 45%; }
.sector-spec-box td:last-child { color: var(--mid); }
.sector-spec-box tr:last-child td { border-bottom: none; }

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-card { grid-column: span 1 !important; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-info-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .proj-slider { height: 60vw; min-height: 280px; }
  .proj-slider-caption { padding: 1.5rem; }
  .proj-slider-btn { width: 38px; height: 38px; font-size: 1rem; }
  .proj-slider-dots { right: 1.5rem; bottom: 1.25rem; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card { grid-column: span 1 !important; }
  .proj-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CONCRETE CALCULATOR
   =========================== */

.calc-section {
  background: var(--dark);
  padding: 5rem 0;
}

.calc-section.is-red {
  background: var(--red);
}

.calc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* White card sits on whatever section bg is used */
.calc-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.calc-field {
  min-width: 0;
}

.calc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.calc-input-row {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.calc-input-row:focus-within {
  border-color: var(--red);
}

.calc-input-row input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: none;
  outline: none;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font);
}

.calc-input-row input[type="number"]::-webkit-outer-spin-button,
.calc-input-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-input-row input[type="number"] { -moz-appearance: textfield; }

.calc-input-row select {
  width: 68px;
  padding: 0.85rem 0.5rem;
  background: var(--light);
  border: none;
  border-left: 2px solid var(--border);
  outline: none;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.calc-input-row select:focus {
  background: #e8e8e8;
}

.calc-btn {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 1.5rem;
}

.calc-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.calc-btn:active { transform: scale(0.98); }

.calc-result {
  display: none;
  background: #fff5f7;
  border: 2px solid var(--red);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.calc-vol {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.calc-vol-num {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.calc-vol-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

.calc-vol-waste {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 1.25rem;
}

.calc-vol-waste strong { color: var(--dark); }

.calc-quote-link {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.calc-quote-link:hover { background: var(--red-dark); transform: translateY(-1px); }

.calc-note {
  font-size: 0.8rem;
  color: var(--stone);
  text-align: center;
  margin: 0;
}

/* ---- CALCULATOR RESPONSIVE ---- */

@media (max-width: 640px) {
  .calc-card   { padding: 1.5rem 1.25rem; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-vol-num { font-size: 2.5rem; }
}

/* ===========================
   CONTACT INFO BLOCK
   =========================== */

.contact-info-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
}

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

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.contact-info-row:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info-row a { color: var(--dark); font-weight: 600; }
.contact-info-row a:hover { color: var(--red); }

/* ===========================
   CONTACT MAP SECTION RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  /* Map + info stacks on mobile */
  section .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* ===========================
   CAREERS PAGE
   =========================== */

/* ===== Careers hero — title band ABOVE a full-bleed photo =====
   Title sits in a white band that clears the fixed nav. Red accent
   bar is BESIDE the text (touching it), with the whole title block
   positioned close to the viewport's left edge — sidesteps both
   "too central inside .container" and "detached at the edge". */
.careers-hero-title-band {
  background: #fff;
  margin-top: 70px;          /* clears the fixed nav (title is first) */
  padding: 3.5rem 0 3rem;    /* overrides the global `section { padding: 6rem 0 }` */
}

.careers-hero-title-band .careers-hero-inner {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding-left: 1.5rem;      /* small indent — bar sits near the left edge */
  padding-right: 1.5rem;
}

.careers-hero-title-band .careers-hero-bar {
  flex-shrink: 0;
  width: 6px;
  background: var(--red);
  border-radius: 3px;
  align-self: stretch;
}

.careers-hero-copy .story-big-title {
  white-space: nowrap;
  /* Cap the font-size so 'Our People' can't outgrow narrow screens
     once `white-space: nowrap` is in effect. */
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  margin-bottom: 0.75rem;
}

.careers-hero {
  position: relative;
  height: clamp(360px, 56vh, 620px);
  padding: 0;                /* overrides the global section padding */
  overflow: hidden;
  background: var(--dark);
}

.careers-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* Subheadings on the careers page read in red, not grey
   (Conor's 14:03 / 14:04 note). Scoped to body.careers. */
body.careers .story-sub {
  color: var(--red);
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .careers-hero { height: 48vh; }
  .careers-hero-title-band { padding: 2.5rem 0 2rem; }
  .careers-hero-title-band .careers-hero-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: 1rem;
  }
}
