/* ========================================================================== */
/* Variables                                                                 */
/* ========================================================================== */
:root {
  /* Colors */
  --color-bg: #f7fafc;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-muted: #62748a;
  --color-primary: #ff7d4a; /* warm, friendly accent */
  --color-primary-soft: #ffe5d8;
  --color-success: #1f9d55;
  --color-warning: #f6ad55;
  --color-danger: #e12d39;

  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;
  --gray-300: #d2d6dc;
  --gray-400: #9fa6b2;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #252f3f;
  --gray-900: #161e2e;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --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-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Shadows (soft, friendly) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
}

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

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

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

a {
  color: inherit;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2rem, 4vw, var(--font-size-4xl));
}

h2 {
  font-size: clamp(1.75rem, 3vw, var(--font-size-3xl));
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, var(--font-size-2xl));
}

h4 {
  font-size: var(--font-size-xl);
}

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

p + p {
  margin-top: var(--space-2);
}

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

strong {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

a:hover {
  color: #ff5b1a;
}

/* Polish content often uses longer words; ensure readable measure */
body {
  word-break: break-word;
}

/* ========================================================================== */
/* Accessibility                                                              */
/* ========================================================================== */
:focus {
  outline: none;
}

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

/* 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;
}

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

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

.section--light {
  background-color: var(--gray-50);
}

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

.flex {
  display: flex;
}

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

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

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

.grid {
  display: grid;
}

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

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

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

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ========================================================================== */
/* Components                                                                 */
/* ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

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

.btn--primary:hover {
  background-color: #ff5b1a;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary-soft);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
}

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

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

/* Form inputs */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
}

.input--error {
  border-color: var(--color-danger);
}

.input--error:focus-visible {
  box-shadow: 0 0 0 1px rgba(225, 45, 57, 0.16);
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
}

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

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

/* Card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.card--soft {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

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

/* Hero section for homepage trust & safety emphasis */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

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

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 32rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* O nas (About) section helpers */
.about-highlight {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
  color: var(--color-text);
}

/* Tags for features like "Sprawdzeni opiekunowie" */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  background-color: var(--gray-100);
  color: var(--gray-700);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.chip--success {
  background-color: rgba(31, 157, 85, 0.08);
  color: var(--color-success);
}

/* Simple status labels for availability / support */
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  margin-right: 0.3rem;
  background-color: var(--color-success);
}

/* Navigation shell (no layout specifics, just base look) */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-nav__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.site-nav__link:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.site-nav__link--active {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Footer basics */
.site-footer {
  background-color: #0b1120;
  color: rgba(241, 245, 249, 0.86);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}

.site-footer a {
  color: rgba(249, 250, 251, 0.9);
}

.site-footer a:hover {
  color: #ffffff;
}

/* Support & trust indicators */
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-item__label {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.trust-item__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Badges for scheduled / on-demand services */
.service-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
}

.service-pill--primary {
  border-color: var(--color-primary-soft);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Booking steps (process visualization) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.step {
  position: relative;
  padding-top: var(--space-4);
}

.step__index {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* Simple alert for customer support messages */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--info {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.alert--success {
  background-color: rgba(31, 157, 85, 0.06);
  border: 1px solid rgba(31, 157, 85, 0.18);
  color: var(--color-success);
}

.alert--warning {
  background-color: rgba(246, 173, 85, 0.08);
  border: 1px solid rgba(246, 173, 85, 0.22);
  color: var(--color-warning);
}

.alert--danger {
  background-color: rgba(225, 45, 57, 0.08);
  border: 1px solid rgba(225, 45, 57, 0.22);
  color: var(--color-danger);
}

.alert__title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.alert__text {
  font-size: var(--font-size-sm);
}

/* Media helpers for pet imagery */
.media-rounded {
  border-radius: 1.5rem;
  overflow: hidden;
}

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

.media-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: var(--font-size-xs);
}

/* End of base.css */
