/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-background: #05070a; /* deep, almost-black blue for premium feel */
  --color-surface: #0d1117; /* card / panel background */
  --color-surface-elevated: #141a23;
  --color-text: #f5f7fb;
  --color-text-muted: #aab4c5;

  --color-primary: #1f6feb; /* modern deep blue */
  --color-primary-soft: rgba(31, 111, 235, 0.12);
  --color-primary-strong: #1250b1;

  --color-success: #2cb67d;
  --color-warning: #f5a623;
  --color-danger: #f04438;

  /* Neutral grays (cool / metallic) */
  --gray-50: #f8fafc;
  --gray-100: #eef2f7;
  --gray-200: #dde4ee;
  --gray-300: #c2cfdf;
  --gray-400: #9aa9c0;
  --gray-500: #73829a;
  --gray-600: #566178;
  --gray-700: #3c4454;
  --gray-800: #262c36;
  --gray-900: #161a22;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows (subtle, modern, not fluffy) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease;
  --transition-slow: 280ms ease-in-out;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
  }

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


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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6,
p, figure,
blockquote,
dl, dd,
ul, ol,
pre {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

img,
video,
canvas,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}


/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #151c26 0, #05070a 55%, #020308 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 2.4vw + 1.6rem, 3rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.8rem, 1.8vw + 1.2rem, 2.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast),
              text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(31, 111, 235, 0.35);
}

a:active {
  color: var(--color-primary-strong);
}

/* Lists */
ul,
ol {
  margin-bottom: var(--space-3);
}

/* Horizontal rule */
hr {
  margin: var(--space-6) 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}


/* ==========================================================================
   Utilities
   ========================================================================== */

/* Layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--compact {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-1);
}

.gap-sm {
  gap: var(--space-2);
}

.gap-md {
  gap: var(--space-3);
}

.gap-lg {
  gap: var(--space-4);
}

.gap-xl {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (margin & padding, minimal set) */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-1) !important; }
.mt-sm { margin-top: var(--space-2) !important; }
.mt-md { margin-top: var(--space-4) !important; }
.mt-lg { margin-top: var(--space-6) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-1) !important; }
.mb-sm { margin-bottom: var(--space-2) !important; }
.mb-md { margin-bottom: var(--space-4) !important; }
.mb-lg { margin-bottom: var(--space-6) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-sm { padding-top: var(--space-2) !important; }
.pt-md { padding-top: var(--space-4) !important; }
.pt-lg { padding-top: var(--space-6) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-sm { padding-bottom: var(--space-2) !important; }
.pb-md { padding-bottom: var(--space-4) !important; }
.pb-lg { padding-bottom: var(--space-6) !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-muted { color: var(--color-text-muted) !important; }

/* Screen reader only */
.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;
}


/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-normal),
              border-color var(--transition-normal),
              color var(--transition-fast),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.button--primary,
.btn--primary {
  background: linear-gradient(135deg, #1f6feb, #58a6ff);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 76, 166, 0.65);
}

.button--primary:hover,
.btn--primary:hover {
  background: linear-gradient(135deg, #1a5acd, #4792e8);
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(10, 58, 132, 0.75);
}

.button--primary:active,
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(10, 58, 132, 0.7);
}

.button--outline,
.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.button--outline:hover,
.btn--outline:hover {
  border-color: rgba(88, 166, 255, 0.7);
  background: rgba(31, 111, 235, 0.08);
}

.button--ghost,
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

.button--ghost:hover,
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button[disabled],
.btn[disabled],
.button--disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Form controls */
.input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 16, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(170, 180, 197, 0.7);
}

.input:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(88, 166, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.7);
  background: rgba(10, 14, 22, 0.98);
}

input[disabled],
textarea[disabled],
select[disabled],
.input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Checkbox & radio (keep default but ensure alignment) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-primary);
}

label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.form-helper {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards: service sections, pricing, etc. */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(13, 17, 23, 0.9), rgba(22, 26, 34, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(88, 166, 255, 0.16), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card--subtle {
  background: rgba(13, 17, 23, 0.9);
  box-shadow: var(--shadow-xs);
}

.card--bordered {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-footer {
  margin-top: var(--space-4);
}

/* Tag / pill (e.g. service duration, categories) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  background: rgba(11, 15, 23, 0.85);
}

.tag--primary {
  border-color: rgba(88, 166, 255, 0.9);
  color: #cce4ff;
  background: rgba(24, 77, 154, 0.7);
}

.tag--success {
  border-color: rgba(44, 182, 125, 0.9);
  color: #ddf7ec;
  background: rgba(19, 89, 61, 0.8);
}

/* Media frame (before/after photos) */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, #2e343f, #05070a);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Status badges for services */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.badge--success {
  background: rgba(44, 182, 125, 0.18);
  color: #8de0ba;
}

.badge--warning {
  background: rgba(245, 166, 35, 0.18);
  color: #ffd48a;
}

.badge--danger {
  background: rgba(240, 68, 56, 0.18);
  color: #ffb9b2;
}

/* Callout / info box */
.callout {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(88, 166, 255, 0.5);
  background: linear-gradient(135deg, rgba(24, 32, 48, 0.9), rgba(5, 7, 10, 0.95));
}

.callout--warning {
  border-color: rgba(245, 166, 35, 0.7);
  background: linear-gradient(135deg, rgba(48, 40, 24, 0.9), rgba(8, 7, 4, 0.98));
}

.callout--success {
  border-color: rgba(44, 182, 125, 0.7);
  background: linear-gradient(135deg, rgba(18, 53, 43, 0.92), rgba(4, 10, 8, 0.98));
}

/* Tables (for price lists) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
}

.table thead th {
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
  background: rgba(88, 166, 255, 0.06);
}

.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* ==========================================================================
   Utility: Z-layers for possible sticky headers / overlays
   ========================================================================== */
.z-header { z-index: 100; }
.z-overlay { z-index: 200; }
.z-modal { z-index: 300; }
.z-toast { z-index: 400; }


/* ==========================================================================
   End of base.css
   ========================================================================== */
