/* Marathon Steel Erectors - Main Stylesheet */
:root {
  --navy: #171a1f;
  --navy-dark: #0b0d10;
  --orange: #d9a21b;
  --orange-dark: #ad7d0d;
  --white: #ffffff;
  --gray-100: #f2f0eb;
  --gray-200: #ded9cf;
  --gray-600: #6f6b63;
  --gray-800: #303238;
  --text: #25282d;
  --steel: #66717e;
  --shadow: 0 14px 36px rgba(23, 26, 31, 0.18);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #faf9f6;
}

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

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(11, 13, 16, 0.96);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(217, 162, 27, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
  height: 44px;
  width: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  opacity: 0.85;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition);
}

.nav-links a .nav-icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-dark);
  background: var(--orange);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(217, 162, 27, 0.65);
  border-radius: 999px;
}

.nav-phone:hover {
  color: var(--navy-dark);
  background: var(--orange);
  border-color: var(--orange);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero Slider */
.hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 700px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 13, 16, 0.76), rgba(11, 13, 16, 0.32) 48%, rgba(102, 113, 126, 0.42)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 120px);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-box {
  background: rgba(11, 13, 16, 0.82);
  border: 1px solid rgba(217, 162, 27, 0.5);
  padding: 48px 64px;
  text-align: center;
  max-width: 720px;
  box-shadow: 18px 18px 0 rgba(217, 162, 27, 0.2);
}

.hero-box h2 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-box h2::before,
.hero-box h2::after {
  content: '-';
  margin: 0 12px;
  opacity: 0.6;
}

.hero-box p {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-box p span { color: var(--orange); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.active { background: var(--white); }

/* Welcome Section */
.welcome {
  padding: 80px 0;
  background:
    linear-gradient(90deg, rgba(217, 162, 27, 0.08), transparent 38%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.welcome::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 100 L100 0 L200 100 L100 200Z' fill='none' stroke='%23e8eaed' stroke-width='1'/%3E%3Cpath d='M50 100 L100 50 L150 100 L100 150Z' fill='none' stroke='%23e8eaed' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.welcome h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
}

.welcome-text {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--gray-800);
}

.welcome-text p { margin-bottom: 18px; }

.welcome-text a { color: var(--orange); font-weight: 600; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

/* Three Columns */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--gray-100);
}

.col-block {
  padding: 48px 36px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}

.col-block:last-child { border-right: none; }

.col-block h4 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.col-block p { color: var(--gray-800); font-size: 0.95rem; }

.col-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy-dark);
  font-weight: 900;
}

/* Why Choose Us */
.why-section {
  padding: 80px 0;
  background:
    linear-gradient(135deg, rgba(217, 162, 27, 0.14), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(102, 113, 126, 0.32), transparent 32%),
    var(--navy);
  color: var(--white);
}

.why-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(217, 162, 27, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.045);
  transition: transform var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.why-card h4 {
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.why-card p { opacity: 0.9; font-size: 0.95rem; }

/* Photo Gallery Strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.photo-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-strip img:hover { transform: scale(1.05); z-index: 1; }

/* Featured Projects */
.featured {
  padding: 80px 0;
  background: var(--white);
}

.featured h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 40px;
}

.projects-carousel {
  position: relative;
  overflow: hidden;
}

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

.project-card {
  flex: 0 0 33.333%;
  padding: 0 12px;
}

.project-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--orange);
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 13, 16, 0.94));
  padding: 24px 20px 18px;
  color: var(--white);
}

.project-overlay h3 { font-size: 1rem; font-weight: 600; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2;
  transition: background var(--transition);
}

.carousel-btn:hover { background: var(--orange); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

/* Field Life Gallery */
.field-life {
  padding: 80px 0;
  background: var(--gray-100);
}

.field-life h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.field-life .subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-item.large { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(15, 24, 41, 0.88));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* Page Header */
.page-hero {
  background:
    linear-gradient(135deg, rgba(217, 162, 27, 0.2), transparent 34%),
    linear-gradient(90deg, var(--navy-dark), var(--navy));
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }

/* Projects Page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 32px 0;
  background: var(--gray-100);
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-800);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--orange);
  color: var(--navy-dark);
  border-color: var(--orange);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 80px;
}

.project-tile {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border-bottom: 5px solid transparent;
  transition: transform var(--transition);
}

.project-tile:hover {
  border-bottom-color: var(--orange);
  transform: translateY(-6px);
}

.project-tile img { width: 100%; height: 240px; object-fit: cover; }

.project-tile-info {
  padding: 20px;
  background: var(--white);
}

.project-tile-info h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.project-tile-info .type { color: var(--orange); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Company Page */
.company-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
  align-items: center;
}

.company-intro img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 400px;
  object-fit: cover;
}

.company-intro h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 18px;
}

.company-intro p { margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

.value-card {
  padding: 32px;
  background: var(--gray-100);
  border-left: 6px solid var(--orange);
  border-radius: 0;
}

.value-card h3 { color: var(--navy); margin-bottom: 10px; }

.team-section {
  padding: 80px 0;
  background:
    linear-gradient(135deg, rgba(102, 113, 126, 0.22), transparent 34%),
    var(--navy);
  color: var(--white);
}
.team-section h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 162, 27, 0.18);
}

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

.team-card-info { padding: 20px; }
.team-card-info h4 { color: var(--orange); margin-bottom: 4px; }
.team-card-info p { opacity: 0.85; font-size: 0.9rem; }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
}

.contact-info h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 20px; }

.contact-info a,
.form-intro a,
.careers-section a {
  color: var(--orange-dark);
  font-weight: 800;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 900;
  flex-shrink: 0;
}

.contact-form {
  background: var(--gray-100);
  padding: 40px;
  border-radius: 0;
  border-top: 6px solid var(--orange);
}

.contact-form h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.form-intro {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

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

.form-group textarea { min-height: 140px; resize: vertical; }

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--navy-dark);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.cta-section {
  background:
    linear-gradient(rgba(11, 13, 16, 0.88), rgba(11, 13, 16, 0.88)),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-section h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 760px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.map-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-top: 32px;
  overflow: hidden;
  position: relative;
}

.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  background:
    linear-gradient(90deg, rgba(217, 162, 27, 0.12) 0 2px, transparent 2px 72px),
    linear-gradient(0deg, rgba(23, 26, 31, 0.08) 0 2px, transparent 2px 72px),
    #f7f4ee;
}

.map-marker-overlay {
  background: rgba(11, 13, 16, 0.9);
  border-left: 5px solid var(--orange);
  bottom: 70px;
  box-shadow: var(--shadow);
  color: var(--white);
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 14px 16px;
  position: absolute;
}

.map-marker-overlay span,
.map-marker-overlay small {
  display: block;
}

.map-marker-overlay span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-marker-overlay strong {
  display: block;
  line-height: 1.3;
  margin: 3px 0;
}

.map-marker-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.map-card-footer {
  align-items: center;
  background: var(--navy-dark);
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.map-card-footer a {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

/* Careers */
.careers-section {
  background:
    linear-gradient(135deg, rgba(217, 162, 27, 0.12), transparent 35%),
    var(--white);
  padding: 80px 0;
}

.section-heading {
  margin: 0 auto 42px;
  max-width: 880px;
  text-align: center;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--gray-800);
  font-size: 1.02rem;
}

.career-content {
  display: grid;
  gap: 32px;
  grid-template-columns: 0.78fr 1.22fr;
  margin-bottom: 42px;
}

.positions-panel {
  background: var(--navy);
  color: var(--white);
  padding: 34px;
  position: relative;
}

.positions-panel::before {
  background: var(--orange);
  content: '';
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.positions-panel h3 {
  color: var(--orange);
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.positions-list {
  column-gap: 28px;
  columns: 2;
  list-style: none;
}

.positions-list li {
  break-inside: avoid;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.positions-list li::before {
  color: var(--orange);
  content: '>';
  font-weight: 900;
  left: 0;
  position: absolute;
}

.career-photo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.career-photo-card {
  background: var(--gray-100);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.career-photo-card img {
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.career-photo-card div {
  padding: 20px;
}

.career-photo-card h4 {
  color: var(--navy);
  margin-bottom: 8px;
}

.career-photo-card p {
  color: var(--gray-800);
  font-size: 0.92rem;
}

.contact-methods {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.contact-method-card {
  background: var(--navy);
  color: var(--white);
  min-height: 230px;
  padding: 58px 28px 30px;
  position: relative;
  text-align: center;
}

.method-icon {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: var(--navy-dark);
  display: flex;
  font-weight: 900;
  height: 74px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: -37px;
  transform: translateX(-50%);
  width: 74px;
}

.contact-method-card h3 {
  color: var(--orange);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.contact-method-card a {
  color: var(--white);
  display: inline-block;
  font-weight: 800;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.contact-method-card p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: var(--orange); }
.site-footer a { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-bottom p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--orange);
  text-decoration: underline;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* Legal modals */
body.legal-modal-open { overflow: hidden; }

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.legal-modal[hidden] { display: none; }

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
}

.legal-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  background: var(--white);
  color: var(--navy-dark);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.legal-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.legal-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  background: var(--gray-200);
  outline: none;
}

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-modal-body h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1rem;
  color: var(--navy);
}

.legal-modal-body h3:first-child { margin-top: 0; }

.legal-modal-body p,
.legal-modal-body ul {
  margin: 0 0 1em;
}

.legal-modal-body ul {
  padding-left: 1.25em;
}

.legal-modal-body a {
  color: var(--orange-dark, #c45a00);
  text-decoration: underline;
}

.legal-modal-body .legal-meta {
  font-size: 0.88rem;
  color: var(--gray-600, #5a6472);
}

.legal-modal-body .legal-caps {
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-modal-body .legal-contact-block {
  padding: 12px 16px;
  background: var(--gray-50);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
}

.legal-modal-body ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

.legal-modal-body ol li { margin-bottom: 0.45em; }

.legal-accordion {
  margin: 0 0 10px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  background: var(--gray-50);
}

.legal-accordion summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}

.legal-accordion summary::-webkit-details-marker { display: none; }

.legal-accordion summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--orange-dark);
}

.legal-accordion[open] summary::after { content: "−"; }

.legal-accordion-body {
  padding: 0 14px 14px;
  font-size: 0.9rem;
}

.legal-accordion-body p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 992px) {
  .three-col, .why-grid, .projects-grid, .team-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-card { flex: 0 0 50%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .company-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .career-content { grid-template-columns: 1fr; }
  .career-photo-grid, .contact-methods { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
  }
  .nav-links { flex-direction: column; width: 100%; }
  .nav-links a { flex-direction: row; gap: 12px; padding: 12px 16px; }
  .nav-phone { margin: 12px 0 0; width: 100%; justify-content: center; }
  .three-col, .why-grid, .projects-grid, .team-grid, .footer-grid, .values-grid { grid-template-columns: 1fr; }
  .col-block { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .project-card { flex: 0 0 100%; }
  .hero-box { padding: 32px 24px; margin: 0 16px; }
  .hero-box p { font-size: 1.3rem; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta-section h2 { font-size: 1.45rem; }
  .positions-list { columns: 1; }
  .contact-methods { gap: 52px; }
}
