/* ===================================
   ALTIMMO PLOMBERIE - MAIN CSS
   Global Variables, Reset & Base Styles
   =================================== */

/* CSS Custom Properties */
:root {
  /* Colors - Dark Blues */
  --color-dark-primary: #0b2748;
  --color-dark-secondary: #0b3660;
  --color-dark-accent: #0b4a8b;

  /* Colors - Blues */
  --color-blue-primary: #2563eb;
  --color-blue-secondary: #3b82f6;
  --color-blue-dark: #1e40af;
  /* Updated to darker shade */
  --color-blue-light: #eff6ff;
  /* Updated to lighter blue */

  /* Colors - Background */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  /* Standardized light bg */
  --color-bg-subtle: #f1f5f9;
  --color-bg-gradient-start: #f7fbff;
  --color-bg-gradient-end: #eef5ff;

  /* Colors - Text */
  --color-text-primary: #0f172a;
  /* Darker primary text */
  --color-text-secondary: #4b5563;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Colors - Borders */
  --color-border-light: #e2e8f0;
  --color-border-lighter: #f1f5f9;
  --color-border-blue: #cbd5f5;

  /* Colors - Accent */
  --color-accent-orange: #f36b3b;
  --color-accent-orange-hover: #ea580c;
  --color-accent-light: #e3edff;
  --color-accent-text: #cbd5f5;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --gradient-blue: linear-gradient(135deg, #0b4a8b, #2563eb);
  --gradient-light: linear-gradient(135deg, #f5f8fd, #edf3ff);
  --gradient-bg: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  --gradient-radial: radial-gradient(circle at top left, #e0edff 0, #f6f8fc 45%, #ffffff 100%);

  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  --spacing-5xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-4xl: 32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-3xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);

  --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  --shadow-blue-lg: 0 20px 40px -5px rgba(37, 99, 235, 0.3);

  /* Typography */
  --font-family-base: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-family-heading: 'Inter', system-ui, sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  /* Increased base size */
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;

  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal-backdrop: 9000;
  --z-modal: 9999;
  --z-header: 9999;
  --z-mobile-menu: 10000;
}

/* Animation Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

/* Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles */
ul,
ol {
  padding: 0;
  list-style: none;
}

/* Core body defaults */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  /* Offset for fixed header + breathing room */
}

body {
  min-height: 100vh;
  line-height: var(--line-height-normal);
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  color: var(--color-dark-primary);
}

h1 {
  font-size: clamp(32px, 4.2vw, var(--font-size-6xl));
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3.2vw, var(--font-size-5xl));
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

strong {
  font-weight: var(--font-weight-black);
  color: var(--color-dark-primary);
}

a {
  color: var(--color-blue-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-blue-dark);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  background: var(--color-bg-white);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.section-box {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-4xl);
  overflow: hidden;
  box-shadow: var(--shadow-3xl);
  background: var(--color-bg-white);
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-5xl) 22px 60px;
}

/* ===================================
   TEXT UTILITIES
   =================================== */

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.text-muted {
  color: var(--color-text-muted);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}

/* ===================================
   SPACING UTILITIES
   =================================== */

.mb-xs {
  margin-bottom: var(--spacing-xs);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}

.mt-xs {
  margin-top: var(--spacing-xs);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mt-2xl {
  margin-top: var(--spacing-2xl);
}

/* ===================================
   GRID UTILITIES
   =================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 18px 14px;
  }

  .section-wrap {
    padding: 52px var(--spacing-md);
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}