/* ========================================
   Elevare Solutions - Enhanced Styles
   Apple-inspired design with Montserrat
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 2rem;
}

.sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 400;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
}

nav a:hover {
  color: var(--secondary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */

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

main {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

section {
  margin-bottom: 6rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.mock {
  position: relative;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mock-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: var(--radius);
}

.mock-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.uniform > * {
  height: 100%;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card .icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card .sub {
  font-size: 1rem;
  line-height: 1.7;
}

/* Service cards with images */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--primary);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-card-content {
  padding: 2rem;
}

.service-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card .sub {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ========================================
   FORMS
   ======================================== */

form {
  margin-top: 2rem;
}

label {
  display: block;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

input,
textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

footer p {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mock-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .mock-grid img {
    height: 150px;
  }

  nav {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.875rem;
  }

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

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

  h1 {
    font-size: 2.5rem;
  }

  section {
    margin-bottom: 4rem;
  }

  .card {
    padding: 2rem;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  nav {
    gap: 1rem;
  }

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

  .mock-grid img {
    height: 180px;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.card {
  animation: fadeIn 0.6s ease-out;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}

.card:nth-child(4) {
  animation-delay: 0.3s;
}

/* ========================================
   ABOUT PAGE SPECIFIC STYLES
   ======================================== */

.equal-height {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.equal-height .sub {
  flex-grow: 1;
}

.centered-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.promise-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.promise-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.promise-list li:last-child {
  border-bottom: none;
}

.promise-list li:hover {
  padding-left: 0.5rem;
  color: var(--secondary);
}

.promise-list strong {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  line-height: 28px;
  margin-right: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.mt-section {
  margin-top: 2.5rem;
}

/* ========================================
   ALTERNATIVE SERVICE CARDS (Icon-based)
   ======================================== */

.service-card-alt {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.service-card-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-alt:hover::before {
  transform: scaleX(1);
}

.service-card-alt:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.service-card-alt:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: white;
  transition: all 0.3s ease;
}

.service-card-alt:hover .service-icon {
  transform: scale(1.1);
}

.service-card-content-alt {
  position: relative;
  z-index: 2;
}

.service-card-content-alt h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.service-card-alt:hover .service-card-content-alt h3 {
  color: var(--primary);
}

.service-card-content-alt .sub {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}
