/* ============================================================
   CORNERSTONE EQUIPMENT — LAYOUT STYLES
   Header, hero, sections, process, CTA, footer, grids
   ============================================================ */

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(12, 12, 16, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo img {
  height: 84px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone:hover {
  color: var(--accent);
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  height: 90vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 117, 26, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 117, 26, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 .accent-word {
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

/* Hero Image (right side) */
.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(232, 117, 26, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(232, 117, 26, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 80px;
  height: 80px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) 0;
  pointer-events: none;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 80px;
  height: 80px;
  border-left: 3px solid var(--accent);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg) 0 0 0;
  pointer-events: none;
  z-index: 2;
}

/* Floating stat badges on hero image */
.hero-float-badge {
  position: absolute;
  z-index: 3;
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-float-badge.top-right {
  top: 20px;
  right: -20px;
}

.hero-float-badge.bottom-left {
  bottom: 20px;
  left: -20px;
}

.hero-float-badge .badge-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-badge .badge-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-float-badge .badge-text {
  display: flex;
  flex-direction: column;
}

.hero-float-badge .badge-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-float-badge .badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid pattern background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 10px); }
}

/* ── Rental Process ────────────────────────────────────────── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(232, 117, 26, 0.3);
}

.process-step h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 117, 26, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 24px;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
