/* =========================================================
   Base Stylesheet - Wash & Dry HU
   Modern, clean, trustworthy, professional, fresh, user-friendly
   ========================================================= */

/* =========================================================
   1. CSS Variables (Design Tokens)
   ========================================================= */
:root {
  /* Color Palette - fresh blue & white */
  --color-background: #f7fbff;
  --color-surface: #ffffff;
  --color-text: #1b2733;
  --color-text-muted: #5f6c80;

  --color-primary: #1f7ae0;         /* Fresh, trustworthy blue */
  --color-primary-soft: #e2efff;
  --color-primary-strong: #1559a8;

  --color-success: #1b9c63;
  --color-warning: #f7a928;
  --color-danger: #e0454f;

  /* Neutral Grays */
  --gray-50: #f9fafb;
  --gray-100: #f1f3f7;
  --gray-200: #e1e5ed;
  --gray-300: #cfd6e6;
  --gray-400: #9aa4c0;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Semantic shortcuts */
  --border-color-soft: var(--gray-200);
  --border-color-strong: var(--gray-300);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --font-heading: var(--font-sans);

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

  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows (soft, clean) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-medium: 0ms;
    --transition-slow: 0ms;
  }

  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

* {
  margin: 0;
}

html,
body {
  padding: 0;
}

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

body {
  min-height: 100vh;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

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

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

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

/* Remove default link styles (we'll restyle below) */
a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =========================================================
   3. Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings: modern, clear hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: var(--leading-tight);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
}

h2 {
  font-size: clamp(1.7rem, 2.1vw, 2.1rem);
}

h3 {
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-4);
  max-width: 70ch; /* Comfortable line length */
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

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

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lists */
li + li {
  margin-top: 0.25em;
}

/* Forms */
label {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: var(--text-sm);
  color: var(--gray-700);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

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

/* =========================================================
   5. Layout Utilities
   ========================================================= */

/* Container - central layout for content */
.container {
  width: 100%;
  max-width: 1120px; /* Spacious but focused */
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

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

.flex-row {
  flex-direction: row;
}

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

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

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

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

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

/* Grid utilities */
.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: 1fr;
  }
}

/* Width helpers */
.w-full {
  width: 100%;
}

.max-w-readable {
  max-width: 70ch;
}

/* Spacing utilities (selected) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

.pt-sm { padding-top: var(--space-3); }
.pt-md { padding-top: var(--space-4); }
.pt-lg { padding-top: var(--space-6); }
.pt-xl { padding-top: var(--space-8); }

.pb-sm { padding-bottom: var(--space-3); }
.pb-md { padding-bottom: var(--space-4); }
.pb-lg { padding-bottom: var(--space-6); }
.pb-xl { padding-bottom: var(--space-8); }

/* Section helper for consistent vertical rhythm */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* =========================================================
   6. Components
   ========================================================= */

/* Buttons - primary CTA for booking, pricing, etc. */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-medium),
    border-color var(--transition-medium),
    color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-fast);
}

.button:hover,
.btn:hover {
  background-color: var(--color-primary-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.button:disabled,
.btn:disabled,
.button[aria-disabled="true"],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.button--outline,
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.button--outline:hover,
.btn--outline:hover {
  background-color: var(--color-primary-soft);
}

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

.button--ghost:hover,
.btn--ghost:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

/* Inputs - clean, consistent */
.input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-soft);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color var(--transition-medium),
    box-shadow var(--transition-medium),
    background-color var(--transition-medium);
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: var(--gray-400);
}

.input:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), var(--shadow-sm);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[disabled],
textarea[disabled],
select[disabled] {
  background-color: var(--gray-50);
  cursor: not-allowed;
}

/* Checkbox & radio alignment helper */
.form-control-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card - for pricing, services, testimonials, FAQs */
.card {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.card--soft {
  box-shadow: var(--shadow-sm);
}

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

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

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

.card-body {
  font-size: var(--text-sm);
}

/* Badge / Pill - e.g., for turnaround time, popular plan */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.badge--success {
  background-color: rgba(27, 156, 99, 0.08);
  color: var(--color-success);
}

.badge--neutral {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

/* Pricing table helpers */
.pricing-table {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-soft);
  background-color: var(--color-surface);
  overflow: hidden;
}

.pricing-table thead {
  background-color: var(--color-primary-soft);
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: var(--text-sm);
}

.pricing-table tbody tr:nth-child(even) {
  background-color: var(--gray-50);
}

/* FAQ summary style (assuming <details>/<summary>) */
details {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-soft);
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
}

details + details {
  margin-top: 0.5rem;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

/* Testimonial text highlight */
.testimonial-quote {
  font-style: italic;
  color: var(--color-text-muted);
}

/* Hero image helpers */
.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   7. Misc Helpers
   ========================================================= */

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

.bg-surface { background-color: var(--color-surface); }
.bg-primary-soft { background-color: var(--color-primary-soft); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border: 1px solid var(--border-color-soft); }
.border-strong { border: 1px solid var(--border-color-strong); }

.opacity-muted { opacity: 0.8; }

/* End of base.css */
