/*
Theme Name: WP Emergency Rescue
Theme URI: https://example.com/
Author: WP Rescue Team
Author URI: https://example.com/
Description: WordPress error recovery service landing page theme.
Version: 1.0.0
Text Domain: wp-emergency-rescue
*/

/* ==========================================================================
   Base Styles (BEM Architecture)
   ========================================================================== */
:root {
  --color-primary: #1e3a8a; /* Blue-900 */
  --color-secondary: #3b82f6; /* Blue-500 */
  --color-accent: #ea580c; /* Orange-600 */
  --color-accent-hover: #c2410c; /* Orange-700 */
  --color-bg: #f8fafc; /* Slate-50 */
  --color-text: #334155; /* Slate-700 */
  --color-white: #ffffff;
  --color-danger: #ef4444; /* Red-500 */
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-section {
  padding: 80px 0;
}

.l-section--bg-white {
  background-color: var(--color-white);
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Header */
.c-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.c-header__logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
}

/* Buttons */
.c-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
}

.c-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3);
}

.c-btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* Hero */
.c-hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
}

.c-hero__title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.2;
}

.c-hero__desc {
  font-size: 20px;
  margin-bottom: 40px;
}

.c-badge {
  display: inline-block;
  background-color: var(--color-danger);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Section Title */
.c-section-title {
  text-align: center;
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 48px;
  font-weight: bold;
}

/* Cards */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.c-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--color-secondary);
}

.c-card__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.c-error-mock {
  background: #2d3748;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  margin-bottom: 16px;
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .c-hero__title { font-size: 32px; }
  .c-hero__desc { font-size: 16px; }
  .l-section { padding: 40px 0; }
}
