/* =============================================
   SERGO Appliance Repair — Inner Pages
   About · Contact · Legal · Sitemap
   Uses variables from styles.css
   ============================================= */

/* ===========================================
   PAGE HERO (Shared)
   =========================================== */
.page-hero {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(43,108,176,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232,139,46,0.12) 0%, transparent 60%);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.04)"/></svg>') repeat;
  background-size: 40px 40px;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 80px;
}
.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232, 139, 46, 0.15);
  border: 1px solid rgba(232, 139, 46, 0.3);
  border-radius: 40px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.page-hero h1 .highlight {
  color: var(--accent-light);
}
.page-hero__sub {
  color: rgba(255,255,255,0.7);
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Breadcrumb */
.page-breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 24px;
}
.page-breadcrumb__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
}
.page-breadcrumb__inner a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb__inner a:hover {
  color: var(--primary);
}
.page-breadcrumb__sep { color: var(--gray-300); }
.page-breadcrumb__current { color: var(--primary); font-weight: 500; }


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

/* --- Who We Are --- */
.about-intro {
  padding: 80px 0;
}
.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border-radius: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-intro__title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-intro__text p {
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-intro__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-intro__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43,108,176,0.1);
  pointer-events: none;
}

/* --- Our Story Timeline --- */
.about-story {
  background: var(--gray-50);
  padding: 80px 0;
}
.about-story__header {
  text-align: center;
  margin-bottom: 56px;
}
.about-story__header h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.about-story__header p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
}
.timeline__item {
  position: relative;
  padding: 0 0 48px 36px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(43,108,176,0.08);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.timeline__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.timeline__text {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.7;
}

/* --- Mission & Goal Cards --- */
.about-mission {
  padding: 80px 0;
}
.about-mission__header {
  text-align: center;
  margin-bottom: 48px;
}
.about-mission__header h2 { margin-bottom: 12px; }
.about-mission__header p {
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.mission-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mission-card:hover {
  border-color: rgba(43,108,176,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mission-card:hover::before { opacity: 1; }
.mission-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.mission-card__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.mission-card__text {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.7;
}

/* --- Our Values Grid --- */
.about-values {
  background: var(--primary-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.about-values::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(43,108,176,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(232,139,46,0.1) 0%, transparent 60%);
}
.about-values__header {
  position: relative;
  text-align: center;
  margin-bottom: 48px;
}
.about-values__header h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.about-values__header p {
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto;
}
.values-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(6px);
}
.value-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(232,139,46,0.3);
  transform: translateY(-4px);
}
.value-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.value-card__title {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.value-card__text {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  line-height: 1.6;
}

/* --- Why Choose Section with Image --- */
.about-why {
  padding: 80px 0;
  background: var(--gray-50);
}
.about-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-why__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-why__img img {
  width: 100%;
  display: block;
}
.about-why__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.about-why__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
}
.about-why__list li:last-child { border-bottom: none; }
.about-why__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 13px;
  margin-top: 2px;
}

/* --- Stats Bar --- */
.about-stats {
  background: var(--white);
  padding: 56px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item__value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__value span {
  color: var(--accent);
}
.stat-item__label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


/* ===========================================
   CONTACT PAGE STYLES
   =========================================== */
.contact-section {
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info__title {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.contact-info__sub {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}
.contact-card:hover {
  border-color: rgba(43,108,176,0.2);
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 600;
}
.contact-card__value a {
  color: var(--primary-dark);
  text-decoration: none;
}
.contact-card__value a:hover { color: var(--primary); }
.contact-card__note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form__title {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.contact-form__sub {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 14.5px;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-700);
  transition: all 0.25s var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(43,108,176,0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.form-submit:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  box-shadow: 0 8px 24px rgba(232, 139, 46, 0.4);
  transform: translateY(-2px);
}
.form-submit:active {
  transform: scale(0.98);
}

/* Map Section */
.contact-map {
  background: var(--gray-50);
  padding: 60px 0;
}
.contact-map__wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: 400px;
}
.contact-map__wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* ===========================================
   LEGAL PAGES (Privacy, Disclaimer, Terms)
   =========================================== */
.legal-content {
  padding: 64px 0 80px;
}
.legal-content__inner {
  max-width: 840px;
  margin: 0 auto;
}
.legal-content__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 36px;
}
.legal-content h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 12px 0 20px 24px;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.8;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--accent);
}
.legal-content strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* Legal info box */
.legal-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-box p {
  margin-bottom: 0;
  color: var(--gray-700);
}


/* ===========================================
   SITEMAP PAGE
   =========================================== */
.sitemap-section {
  padding: 64px 0 80px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sitemap-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
}
.sitemap-group:hover {
  border-color: rgba(43,108,176,0.2);
  box-shadow: var(--shadow-sm);
}
.sitemap-group__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.sitemap-group__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.sitemap-group__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-group__links li {
  margin-bottom: 8px;
}
.sitemap-group__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.sitemap-group__links a::before {
  content: '→';
  font-size: 12px;
  color: var(--gray-400);
  transition: color 0.2s;
}
.sitemap-group__links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.sitemap-group__links a:hover::before {
  color: var(--primary);
}


/* ===========================================
   PAGE CTA SECTION
   =========================================== */
.page-cta {
  background: var(--primary-dark);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(43,108,176,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(232,139,46,0.1) 0%, transparent 60%);
}
.page-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.page-cta h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.page-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-bottom: 28px;
}
.page-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ===========================================
   RESPONSIVE — INNER PAGES
   =========================================== */
@media (max-width: 1024px) {
  .about-intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .about-intro__img { max-width: 560px; }
  .mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-why__grid { grid-template-columns: 1fr; gap: 36px; }
  .about-why__img { max-width: 560px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero__content { padding: 80px 20px 60px; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .contact-map__wrap { height: 300px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .page-cta__actions { flex-direction: column; align-items: center; }
  .page-cta__actions .btn { width: 100%; max-width: 300px; }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline__dot { left: -27px; width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================
   404 ERROR PAGE STYLES
   =========================================== */
.error-hero {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 80px;
}
.error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(232, 139, 46, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 90% 70% at 20% 90%, rgba(30, 58, 95, 0.4) 0%, transparent 70%);
  z-index: 0;
}
.error-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  background-size: 40px 40px;
  z-index: 0;
}

.error-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(232, 139, 46, 0.15);
  border: 1px solid rgba(232, 139, 46, 0.35);
  border-radius: 40px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.error-code {
  font-size: clamp(84px, 14vw, 150px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #FFB366 0%, #E88B2E 40%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  text-shadow: 0 10px 30px rgba(232, 139, 46, 0.2);
  display: block;
}

.error-hero h1 {
  color: var(--white);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.error-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 180px;
}

/* 404 Quick Links Section */
.error-recovery {
  padding: 70px 0;
  background: #F8FAFC;
}
.error-recovery__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.error-recovery__header h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.error-recovery__header p {
  color: var(--gray-600);
  font-size: 15px;
}

.error-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.error-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 20px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 27, 42, 0.04);
}
.error-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(15, 27, 42, 0.12);
  border-color: var(--accent);
  text-decoration: none;
}
.error-card__icon {
  font-size: 32px;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}
.error-card:hover .error-card__icon {
  transform: scale(1.1);
  background: #FFF7ED;
  border-color: #FDBA74;
}
.error-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.error-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.error-card__arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.error-card:hover .error-card__arrow {
  gap: 8px;
}

/* Quick Links Area Grid */
.error-links-box {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 27, 42, 0.03);
}
.error-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.error-links-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-lighter);
}
.error-links-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.error-links-list a {
  font-size: 13.5px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.error-links-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 404 Emergency Banner */
.error-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1E3A5F 100%);
  border-radius: 12px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px -10px rgba(13, 27, 42, 0.25);
}
.error-banner__text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.error-banner__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  margin: 0;
}
.error-banner__cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .error-cards { grid-template-columns: repeat(2, 1fr); }
  .error-banner { flex-direction: column; text-align: center; }
  .error-banner__cta { justify-content: center; }
}

@media (max-width: 768px) {
  .error-cards { grid-template-columns: 1fr; }
  .error-links-grid { grid-template-columns: 1fr; gap: 24px; }
  .error-links-list { grid-template-columns: 1fr; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }
}

