﻿/* ==============================
   Section Imports (expand here)
   ============================== */
@import url("./sections/header.css");
@import url("./sections/hero.css");
@import url("./sections/services-grid.css");
@import url("./sections/services-featured.css");
@import url("./sections/process.css");
@import url("./sections/faq.css");
@import url("./sections/cookie-banner.css");
@import url("./sections/request-modal.css");
@import url("./sections/footer.css");
@import url("./sections/pages.css");

/* ==============================
   CSS Variables (brand tokens)
   ============================== */
:root {
  /* Brand */
  --color-primary: #0f172a;
  --color-secondary: #f59e0b;
  --color-accent: #fde68a;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #0b1220;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Effects */
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.18);

  /* Compatibility aliases for existing section styles */
  --color-neutral: var(--color-border);
  --color-surface: var(--color-bg);
  --color-muted: var(--color-text-muted);
  --color-success: #2e8b57;
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-hover);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container-max: 1160px;
  --header-height: 76px;

  --font-family-base: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-family-heading: "Rockwell", "Avenir Next", "Trebuchet MS", sans-serif;
}

/* ==============================
   Reset / Normalize
   ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

/* ==============================
   Base
   ============================== */
body {
  min-height: 100vh;
  font-family: var(--font-family-base);
  line-height: 1.6;
  background:
    radial-gradient(circle at 4% 4%, rgba(63, 114, 175, 0.12), transparent 26%),
    radial-gradient(
      circle at 98% 6%,
      rgba(243, 156, 18, 0.16),
      transparent 24%
    ),
    var(--color-bg);
  color: var(--color-text);
}

main {
  display: block;
}

section {
  padding: 72px 0;
}

h1,
h2,
h3 {
  font-family: var(--font-family-heading);
  line-height: 1.2;
  color: #162133;
}

h1 {
  font-size: clamp(1.85rem, 2.1vw + 1.2rem, 3.2rem);
  letter-spacing: 0.2px;
}

h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2.3rem);
  margin-bottom: 16px;
}

p {
  color: var(--color-text);
}

.container {
  width: min(var(--container-max), 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 1000;
  background: #111827;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}

.section-intro {
  max-width: 720px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: var(--shadow-md);
}

.btn-accent {
  color: #18212f;
  background: var(--color-accent);
}

.btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f3558;
  background: #e7eff9;
}

.grid {
  display: grid;
  gap: 22px;
}

.flow > * + * {
  margin-top: 14px;
}

.muted {
  color: var(--color-muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(243, 156, 18, 0.55);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1440px) {
  :root {
    --container-max: 1240px;
  }

  section {
    padding: 84px 0;
  }
}

@media (max-width: 1024px) {
  section {
    padding: 64px 0;
  }

  .container {
    width: min(var(--container-max), 94%);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  section {
    padding: 56px 0;
  }

  .btn {
    padding: 11px 18px;
  }
}

@media (max-width: 375px) {
  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
