/* ============================================
   Blue Box Cold Chain - Main Styles (WordPress Version)
   ============================================ */

:root {
  --primary: #0b74d1;
  --secondary: #0b5fa8;
  --accent: #7fdcff;
  --accent-strong: #0a84d6;
  --light-bg: #f3fbff;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --dark-text: #07203a;
  --muted-text: #4b6b85;
  --border-color: #dbeaf8;
  --shadow: 0 20px 65px rgba(11, 74, 150, 0.06);
  --success: #37b24d;
  --spacing: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--light-bg);
}

/* WordPress-specific resets */
.wordpress .alignleft {
  float: left;
  margin-right: 1em;
}

.wordpress .alignright {
  float: right;
  margin-left: 1em;
}

.wordpress .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Main content container */
.main-content {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, rgba(0, 107, 191, 0.95) 0%, rgba(0, 107, 191, 0.78) 100%);
  color: white;
}

.hero-content {
  max-width: 620px;
}

.hero-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-lead span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
  color: white;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-kpi {
  background: rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-kpi h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-kpi p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.hero-description {
  line-height: 1.8;
  max-width: 42rem;
}

/* Service Pills */
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: rgba(0, 107, 191, 0.08);
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--surface-soft);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted-text);
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--dark-text);
}

.card-text {
  color: var(--muted-text);
  margin-bottom: 1.25rem;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.card-list li {
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.card-list li::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Feature Cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-top: 1rem;
}

.feature-card p {
  color: var(--muted-text);
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 107, 191, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
  text-decoration: none;
}

.btn-secondary {
  background: var(--accent);
  color: var(--dark-text);
}

.btn-secondary:hover {
  background: #65d0e8;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-message {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
}

.form-message-success {
  background: rgba(56, 142, 60, 0.12);
  color: #21632d;
  border: 1px solid rgba(56, 142, 60, 0.28);
}

.form-message-error {
  background: rgba(220, 53, 69, 0.12);
  color: #921c38;
  border: 1px solid rgba(220, 53, 69, 0.28);
}

input.error, textarea.error, select.error {
  border-color: #e63946;
  background-color: rgba(231, 76, 60, 0.05);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Utility Classes */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* WordPress Editor Adjustments */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.wp-block-button__link:hover {
  background: var(--secondary);
  text-decoration: none;
}

/* Admin Bar Spacing */
body.admin-bar {
  margin-top: 0;
}

/* Accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
