/*
Theme Name: Building Approvals Dubai
Theme URI: https://buildingapprovals.ae
Author: Thinkin Solutions
Author URI: https://thinkinsolutions.com
Description: Custom WordPress theme for Building Approvals Dubai - exact port of the production Next.js site.
Version: 1.0.0
License: Private
Text Domain: buildingapprovals
*/

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

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

:root {
  --color-slate-blue: #296def;
  --color-deeper-slate: #0c6fd1;
  --color-copper: #4da3f5;
  --color-copper-light: #7dbcf8;
  --color-white: #ffffff;
  --color-warm-white: #fafbfc;
  --color-cloud-gray: #f4f6f9;
  --color-soft-gray: #e3e8ef;
  --color-medium-gray: #9ca8b8;
  --color-charcoal: #4a5568;
  --color-deep-charcoal: #2d3748;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --transition-fast: 200ms ease-out;
  --transition-medium: 300ms ease-in-out;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-nav: 0 2px 8px rgba(0,0,0,0.06);

  --hero-bg-top: #f0f7ff;
  --hero-bg-bottom: #e6f3ff;
  --hero-heading-color: #0b347a;
  --hero-subheading-color: #006efe;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: #ffffff;
  color: #171717;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   WORDPRESS ALIGNMENT HELPERS
   ============================================ */
.alignleft  { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--color-charcoal); text-align: center; margin-top: 6px; }

/* ============================================
   404 PAGE
   ============================================ */
.not-found-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  background:
    radial-gradient(circle at top, rgba(41, 109, 239, 0.12), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.not-found-card {
  width: 100%;
  max-width: 760px;
  padding: 56px 32px;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(41,109,239,0.12);
  box-shadow: 0 24px 60px rgba(19,69,155,0.14);
  text-align: center;
  backdrop-filter: blur(10px);
}
.not-found-code {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.not-found-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}
.not-found-text {
  max-width: 560px;
  margin: 20px auto 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}
.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.not-found-primary,
.not-found-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.not-found-primary {
  background: #296def;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(41,109,239,0.28);
}
.not-found-primary:hover { transform: translateY(-1px); background: #1f5bd0; }
.not-found-secondary {
  background: #ffffff;
  color: #296def;
  border: 1px solid rgba(41,109,239,0.2);
}
.not-found-secondary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(41,109,239,0.12); }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
