/* ===========================================
   A ARNOLD TRANSPORT — Industrial Kinetic
   Angular cuts, crane rigging, heavy-lift motion
   =========================================== */
:root {
  --slate: #1B2432;
  --charcoal: #2D3748;
  --ember: #E85D24;
  --amber: #F7B84D;
  --sand: #FAF5EE;
  --fog: #94A3B8;
  --concrete: #64748B;
  --white: #FFFFFF;
  --font: 'Outfit', sans-serif;
  --shadow: 0 8px 30px rgba(27,36,50,0.10);
  --shadow-sm: 0 2px 12px rgba(27,36,50,0.06);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 24px;
  --radius-sm: 16px;
  --color-primary: var(--slate);
  --color-secondary: var(--ember);
  --color-accent: var(--amber);
  --color-light: var(--sand);
  --color-dark: var(--slate);
  --color-gray: var(--concrete);
  --color-light-gray: #E2DED6;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); }

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  position: relative;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  border-radius: 0;
}

p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========== HEADER =========== */
header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header #logo img { max-height: 55px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  border-radius: 1px;
  transition: width 0.3s ease;
}

nav ul li a:hover { color: var(--ember); }
nav ul li a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* =========== HERO =========== */
.hero-section {
  background-image:
    radial-gradient(ellipse at 25% 85%, rgba(232,93,36,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 15%, rgba(247,184,77,0.1) 0%, transparent 45%),
    linear-gradient(170deg, rgba(27,36,50,0.88), rgba(45,55,72,0.82)),
    url("hero-background.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 0 7rem;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-section h2 {
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-section h2::after { display: none; }

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.88;
}

.hero__trust-bar {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin: 0 auto 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* =========== CTA BUTTON =========== */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--ember) 0%, #D04A1A 100%);
  color: white;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,93,36,0.30);
  letter-spacing: 0.01em;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232,93,36,0.40);
}

.cta-container { text-align: center; margin-top: 2rem; }

/* Hero entrance */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-section h1        { animation: heroIn 0.7s 0.05s ease both; }
.hero-section h2        { animation: heroIn 0.7s 0.15s ease both; }
.hero-section p          { animation: heroIn 0.7s 0.25s ease both; }
.hero__trust-bar         { animation: heroIn 0.7s 0.35s ease both; }
.hero-section .cta-button{ animation: heroIn 0.7s 0.45s ease both; }

/* =============================================
   ANGULAR DIVIDERS — Industrial edge shapes
   ============================================= */
.hero-section::after,
#about::after,
#services::after,
#gallery::after,
#certified::after,
#faq::after,
#service-area::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 85px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
  pointer-events: none;
}

/* Hero -> About (next: sand #FAF5EE) */
.hero-section::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%23FAF5EE'/%3E%3C/svg%3E");
}

/* About -> Services (next: white #FFFFFF) */
#about::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Services -> Gallery (next: sand #FAF5EE) */
#services::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%23FAF5EE'/%3E%3C/svg%3E");
}

/* Gallery -> Certified (next: slate #1B2432) */
#gallery::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%231B2432'/%3E%3C/svg%3E");
}

/* Certified -> FAQ (next: white #FFFFFF) */
#certified::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* FAQ -> Service Area (next: sand #FAF5EE) */
#faq::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%23FAF5EE'/%3E%3C/svg%3E");
}

/* Service Area -> Contact (next: slate #1B2432) */
#service-area::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,85 L1440,0 L1440,100 L0,100 Z' fill='%231B2432'/%3E%3C/svg%3E");
}

/* =========== SECTIONS =========== */
section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
}

/* Drive-away: section content slides on scroll-out */
section .container {
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}

/* =========== ABOUT =========== */
#about {
  background: var(--sand);
  overflow: visible;
}

/* Decorative angle accent */
#about::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,36,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#about .about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.about-text p {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.credentials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.credential {
  text-align: center;
  background: var(--white);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex: 1;
  max-width: 230px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.credential:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.credential-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ember);
  line-height: 1.1;
}

.credential-text {
  font-size: 0.95rem;
  color: var(--concrete);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* =========== SERVICES =========== */
#services {
  background: var(--white);
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

/* Gradient top accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  background: linear-gradient(135deg, rgba(232,93,36,0.08), rgba(247,184,77,0.08));
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, rgba(232,93,36,0.14), rgba(247,184,77,0.14));
}

.service-card h3 {
  margin-bottom: 0.8rem;
  color: var(--slate);
}

.service-areas {
  text-align: center;
  margin-bottom: 1.25rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#services .container { text-align: center; }
.service-cta { margin-top: 1rem; }

/* =========== GALLERY =========== */
#gallery {
  background: var(--sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3/2;
  transition: var(--transition);
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.04) rotate(-0.5deg);
  z-index: 2;
  box-shadow: var(--shadow);
}

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

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

/* Featured larger items */
.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
  border-radius: var(--radius);
}

/* =========== CERTIFIED =========== */
#certified {
  background: linear-gradient(160deg, var(--slate) 0%, var(--charcoal) 100%);
  color: white;
  overflow: visible;
}

/* Decorative ring */
#certified::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border: 2px solid rgba(232,93,36,0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#certified h2 { color: white; }
#certified h2::after {
  background: linear-gradient(90deg, var(--ember), var(--amber));
}

.certified-intro {
  text-align: center;
  opacity: 0.82;
  margin-bottom: 1.5rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.cert-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.cert-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(232,93,36,0.3);
}

.cert-badge-img {
  max-height: 70px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
  filter: brightness(1.15);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 10px;
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.cert-card h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.cert-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  line-height: 1.55;
}

/* =========== FAQ =========== */
#faq {
  background: var(--white);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.75rem;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.faq-item:hover {
  transform: translateY(-3px) rotate(0.3deg);
  box-shadow: var(--shadow);
  border-color: rgba(232,93,36,0.15);
}

.faq-item h3 {
  color: var(--slate);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* =========== SERVICE AREA =========== */
#service-area {
  background: var(--sand);
}

.map-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.map-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

#coverage-map {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-locations {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.map-locations h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--slate);
}

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

.location-group h4 {
  color: var(--ember);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.location-group ul { list-style: none; }

.location-group li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.location-group li::before {
  content: "\25B8";
  color: var(--amber);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* =========== CONTACT =========== */
#contact {
  background: linear-gradient(160deg, var(--slate) 0%, #253040 100%);
  color: white;
  overflow: visible;
}

/* Warm glow */
#contact::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,36,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 10s ease-in-out infinite;
}

#contact h2 { color: white; }
#contact h2::after {
  background: linear-gradient(90deg, var(--ember), var(--amber));
}

.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: rgba(255,255,255,0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.contact-method:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(232,93,36,0.25);
}

.contact-method h3 {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.contact-method p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.contact-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

.contact-link:hover {
  color: var(--ember);
  transform: translateX(3px);
}

.contact-form-container {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#contact-form input,
#contact-form textarea {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: white;
  transition: all 0.3s ease;
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
}

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

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(232,93,36,0.15);
}

#contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form feedback */
.form-error {
  background: rgba(232,93,36,0.15);
  color: #ff9a7a;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid rgba(232,93,36,0.3);
}

.form-success {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.form-success h3 { color: white; }

/* =========== FOOTER =========== */
footer {
  background: var(--slate);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 65px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-info p { margin-bottom: 0.5rem; }

.service-locations {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-locations a {
  color: var(--amber);
  text-decoration: none;
  transition: var(--transition);
  margin: 0 3px;
}
.service-locations a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.seo-emphasis {
  font-weight: 600;
  color: var(--slate);
}

/* =============================================
   ROPE BRIDGE — Crane hook connectors
   ============================================= */
.rope-bridge {
  position: absolute;
  bottom: -45px;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: top center;
  animation: hookSway 5s ease-in-out infinite;
  transform: translateX(-50%);
}

.rope-bridge .rope-line {
  width: 4px;
  height: 30px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--amber) 0px,
    var(--amber) 6px,
    transparent 6px,
    transparent 10px
  );
  background-size: 4px 10px;
  animation: pullRope 1.5s linear infinite;
}

.rope-bridge .crane-hook {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* Rope bridge on dark sections */
#certified .rope-bridge .crane-hook line,
#contact .rope-bridge .crane-hook line {
  stroke: var(--amber);
}

@keyframes hookSway {
  0%, 100% { transform: translateX(-50%) rotate(-2.5deg); }
  50% { transform: translateX(-50%) rotate(2.5deg); }
}

@keyframes pullRope {
  from { background-position: 0 0; }
  to { background-position: 0 -10px; }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

/* =============================================
   SCROLL ANIMATIONS — Lift / Swing / Drive
   ============================================= */

/* --- Base hidden state for all scroll-animated elements --- */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Swing: crane cargo pendulum */
[data-anim="swing"] .animate-on-scroll {
  transform: translateY(45px) rotate(2.5deg);
  transform-origin: top center;
}

/* Drive from right (truck arriving) */
[data-anim="drive-right"] .animate-on-scroll {
  transform: translateX(70px);
}

/* Drive from left */
[data-anim="drive-left"] .animate-on-scroll {
  transform: translateX(-70px);
}

/* Lift straight up (crane lift) */
[data-anim="lift"] .animate-on-scroll {
  transform: translateY(50px) scale(0.97);
}

/* All types: revealed state */
.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) translateX(0) rotate(0) scale(1);
}

/* Individual element animations (service cards, cert cards, etc.) */
.service-card,
.about-content,
.cert-card,
.faq-item {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Inherit transform from parent section's data-anim */
[data-anim="swing"] .service-card,
[data-anim="swing"] .about-content,
[data-anim="swing"] .cert-card,
[data-anim="swing"] .faq-item {
  transform: translateY(45px) rotate(2deg);
  transform-origin: top center;
}

[data-anim="drive-right"] .service-card,
[data-anim="drive-right"] .about-content,
[data-anim="drive-right"] .cert-card,
[data-anim="drive-right"] .faq-item {
  transform: translateX(70px);
}

[data-anim="drive-left"] .service-card,
[data-anim="drive-left"] .about-content,
[data-anim="drive-left"] .cert-card,
[data-anim="drive-left"] .faq-item {
  transform: translateX(-70px);
}

[data-anim="lift"] .service-card,
[data-anim="lift"] .about-content,
[data-anim="lift"] .cert-card,
[data-anim="lift"] .faq-item {
  transform: translateY(50px) scale(0.97);
}

/* Revealed state */
.service-card.animate,
.about-content.animate,
.cert-card.animate,
.faq-item.animate {
  opacity: 1;
  transform: translateY(0) translateX(0) rotate(0) scale(1);
}

/* Gallery items: cascading lift with tilt */
.gallery-item {
  opacity: 0;
  transform: translateY(30px) rotate(-1.5deg);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item.animate {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Contact section elements */
.contact-method,
.contact-form-container {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-anim="swing"] .contact-method {
  transform: translateY(40px) rotate(1.5deg);
  transform-origin: top center;
}

[data-anim="swing"] .contact-form-container {
  transform: translateY(40px) rotate(-1.5deg);
  transform-origin: top center;
}

.contact-method.animate,
.contact-form-container.animate {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Credential cards */
.credential {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.credential.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========== RESPONSIVE =========== */
@media (min-width: 768px) {
  .map-container { grid-template-columns: 3fr 2fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }
  header #logo { padding-left: 15px; }
  header #logo img { max-height: 45px; }

  nav ul {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    align-items: center;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  nav ul.active { transform: translateY(0); }

  section { padding: 2.5rem 0 3.5rem; }
  .hero-section { padding: 3rem 0 5rem; min-height: 70vh; }

  .credentials {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .credential { width: 100%; max-width: 100%; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  #coverage-map { height: 300px; }
  .map-locations { padding: 1rem; }

  .service-locations { font-size: 0.9rem; }
  .service-locations a { margin: 0 1px; }

  .faq-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  /* Angular dividers on tablet */
  .hero-section::after,
  #about::after,
  #services::after,
  #gallery::after,
  #certified::after,
  #faq::after,
  #service-area::after {
    height: 50px;
  }

  /* Reduce animation intensity on mobile — only when NOT yet animated */
  [data-anim="swing"] .animate-on-scroll:not(.animate),
  [data-anim="swing"] .service-card:not(.animate),
  [data-anim="swing"] .about-content:not(.animate),
  [data-anim="swing"] .cert-card:not(.animate),
  [data-anim="swing"] .faq-item:not(.animate),
  [data-anim="swing"] .contact-method:not(.animate),
  [data-anim="swing"] .contact-form-container:not(.animate) {
    transform: translateY(30px) rotate(1.5deg);
  }

  [data-anim="drive-right"] .animate-on-scroll:not(.animate),
  [data-anim="drive-right"] .service-card:not(.animate),
  [data-anim="drive-right"] .faq-item:not(.animate) {
    transform: translateX(40px);
  }

  [data-anim="drive-left"] .animate-on-scroll:not(.animate),
  [data-anim="drive-left"] .service-card:not(.animate),
  [data-anim="drive-left"] .faq-item:not(.animate) {
    transform: translateX(-40px);
  }

  .rope-bridge { display: none; }
}

@media (max-width: 480px) {
  header #logo img { max-height: 40px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

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

  .hero-section h1 { font-size: 1.85rem; }
  .hero-section h2 { font-size: 1.15rem; }
  .hero-section { min-height: 65vh; }

  .credentials { gap: 0.75rem; }
  .credential-number { font-size: 2rem; }

  .service-locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .faq-item { padding: 1.25rem; }
  .contact-method { padding: 1.25rem; }
  .contact-form-container { padding: 1.5rem; }

  #contact-form input,
  #contact-form textarea { padding: 0.8rem 1rem; }

  .hero-section::after,
  #about::after,
  #services::after,
  #gallery::after,
  #certified::after,
  #faq::after,
  #service-area::after {
    height: 35px;
  }

  /* Further reduce animation on small screens — only when NOT yet animated */
  [data-anim] .animate-on-scroll:not(.animate),
  [data-anim] .service-card:not(.animate),
  [data-anim] .about-content:not(.animate),
  [data-anim] .cert-card:not(.animate),
  [data-anim] .faq-item:not(.animate),
  [data-anim] .contact-method:not(.animate),
  [data-anim] .contact-form-container:not(.animate) {
    transform: translateY(20px);
  }

  .gallery-item:not(.animate) {
    transform: translateY(15px) rotate(0);
  }
}
