/* General Styles & Typography */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #333;
    --dark-bg: #0d1a26;
    --light-bg: #f8f9fa;
    --light-text: #fff;
    --accent-color: #28a745; /* For positive changes */
     --gutter: clamp(12px, 2vw, 24px);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

.section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section:nth-child(even) {
    background-color: #f4f4f4;
}

.section-title, .section-title-left {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--dark-bg);
}
.section-title-left {
    text-align: left;
    margin-bottom: 20px;
}

/* 1. hero section */



/* ---------- HERO (no horizontal overflow, fully fluid) ---------- */
:root{
  --primary-color:#0ea5e9; --light-text:#fff; --dark-bg:#0b1220;
  --gutter: clamp(14px, 4vw, 28px);
}

/* Global safety net (optional but helpful) */
html, body { max-width: 100%; overflow-x: hidden; }



.hero {
  position: relative;
  inline-size: 100%;
  min-block-size: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--light-text);
  padding-block: clamp(24px, 8vh, 96px);
  padding-inline: var(--gutter);
  background: url("../images/banner/carl-industries-home.png") no-repeat center center/cover;
  background-color: var(--dark-bg); /* fallback if image fails to load */
  overflow: hidden;
  isolation: isolate;
}


.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.55));
}

.hero-content {
  position: relative; z-index: 2;
  margin-inline: auto;
  inline-size: min(100%, 1000px);
  display: grid; gap: clamp(10px, 2.2vw, 20px);
  padding-inline: 0; 
}
/* Fluid type */
.hero-content h1{
  margin: 0;
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(24px, 6.5vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}
.hero-content p{
  margin: 0 0 clamp(12px, 3.5vw, 28px);
  font-size: clamp(14px, 3.8vw, 18px);
  line-height: 1.6; font-weight: 300; opacity: .95;
}

/* === CTA buttons: unified outline style + clean stacking === */
.cta-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: clamp(8px, 2.2vw, 16px);
}

/* Base button (same for all three) */
.cta-buttons .btn,
.cta-buttons a{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: clamp(10px, 1.6vw, 14px) clamp(18px, 2.6vw, 24px);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration:none;
  border: 2px solid rgba(255,255,255,.9);
  background: transparent;
  color: var(--light-text);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  flex: 0 1 auto;
  min-width: max-content;
}

/* Normalize legacy variants so all look identical by default */
.cta-buttons .btn-primary,
.cta-buttons .btn-secondary,
.cta-buttons .btn-tertiary{
  background: transparent !important;
  color: var(--light-text) !important;
  border-color: rgba(255,255,255,.9) !important;
}

/* REMOVE any variant-specific :hover you had before */

/* Unified hover/focus for ALL buttons (wins over globals) */
.cta-buttons .btn:is(:hover, :focus-visible){
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #002a3a !important;   /* readable on blue */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* Small screens: stack cleanly */
@media (max-width: 640px){
  .cta-buttons{ flex-direction: column; align-items: center; }
  .cta-buttons .btn{ width: min(100%, 22rem); }
}

/* Variants */
.btn-primary{ background: var(--primary-color); color:#002a3a; border-color: var(--primary-color); }
.btn-secondary{ background: transparent; color: var(--light-text); border-color: var(--light-text); }

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .hero-video{ display:none; }
}

/* Ultra-small devices: tighter padding */
@media (max-width: 360px){
  .hero{ padding-inline: 12px; }
}


/* section work  */
/* ===== CTA Section (mobility) ===== */
:root {
  --cta-bg-mobility: #071626;
  --cta-title-fs-mobility: clamp(22px, 3vw, 32px);
  --cta-text-fs-mobility: clamp(14px, 1.8vw, 16px);
  --cta-green-mobility: #059669;
}

.cta-mobility {
  padding: clamp(40px, 7vw, 80px) 0;
  background: var(--cta-bg-mobility);
  border-radius: 12px;
  text-align: center;
  color: #fff;
  margin: clamp(20px, 4vw, 40px) auto;
  max-width: 1200px;
}

.cta-wrap-mobility {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.cta-title-mobility {
  margin: 0 0 12px;
  font-size: var(--cta-title-fs-mobility);
  font-weight: 700;
  color: white;
}

.cta-text-mobility {
  margin: 0 0 28px;
  font-size: var(--cta-text-fs-mobility);
  color: #d1d5db;
  line-height: 1.6;
}

/* Button */
.cta-btn-mobility {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-green-mobility);
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn-mobility:hover {
  background: #047857;
  transform: translateY(-2px);
}

.cta-dot-mobility {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
}
/* Reveal animation */
.reveal-mobility {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  transition-delay: var(--delay-mobility, 0ms);
  will-change: opacity, transform;
}

.reveal-mobility.is-visible-mobility {
  opacity: 1;
  transform: none;
}
/* Container for the entire section */
.carl-verticalizations-section {
  padding: 50px 20px;
  background-color: #f8f9fa; /* Light grey background */
  font-family: Arial, sans-serif;
}

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

/* Grid container for the cards */
.carl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Styling for each individual card */
.carl-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carl-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Card image styling */
.carl-card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card content (text) styling */
.carl-card-content {
  padding: 20px;
  text-align: center;
}

.carl-card-content h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Responsive adjustments for different screen sizes */

/* For screens larger than 768px (tablets and desktops) */
@media (min-width: 768px) {
  .carl-cards-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on tablets/small desktops */
  }
}

/* For screens larger than 1024px (laptops and large desktops) */
@media (min-width: 1024px) {
  .carl-cards-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 cards per row on large screens */
  }
}