/* assets/styles.css - Updated for DoggyPaddle */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary: #028090;
  --primary-dark: #05668d;
  --primary-light: #45a9b8;
  --secondary: #114B5F;
  --accent: #F0A202;
  --accent-dark: #d88d00;
  
  /* Neutrals */
  --bg-light: #f9fbfd;
  --white: #ffffff;
  --text: #222222;
  --text-light: #666666;
  --text-lighter: #999999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  
  /* Feedback Colors */
  --success: #28a745;
  --success-bg: #d4edda;
  --error: #dc3545;
  --error-bg: #f8d7da;
  --warning: #ffc107;
  --warning-bg: #fff3cd;
  --info: #17a2b8;
  --info-bg: #d1ecf1;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
               'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation & Logo */
nav {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.logo:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links .btn-waiver {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links .btn-waiver:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

footer p {
  margin: 0.5rem 0;
  opacity: 0.95;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.admin-footer-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.admin-footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* ============================================
   BUTTONS
   ============================================ */
button,
.button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}

button:hover,
.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 128, 144, 0.3);
  text-decoration: none;
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled,
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button:focus,
.button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.button-secondary {
  background: var(--accent);
}

.button-secondary:hover {
  background: var(--accent-dark);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.button-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button-large {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

/* ============================================
   FORMS
   ============================================ */
form {
  display: grid;
  gap: 1.25rem;
}

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

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--text);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-light);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-lighter);
}

/* Checkbox & Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.checkbox-group label,
.radio-group label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Form Validation States */
input.valid,
select.valid,
textarea.valid {
  border-color: var(--success);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--error);
}

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

.form-help {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: #155724;
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error);
  color: #721c24;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: #856404;
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: #0c5460;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  button,
  .button {
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  section {
    padding: 1.25rem;
  }

  input,
  select,
  textarea {
    padding: 0.75rem;
  }

  button,
  .button {
    padding: 0.875rem 1.25rem;
    width: 100%;
  }
}

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

/* ============================================
   BOOKING FLOW STEPS
   ============================================ */
.booking-step {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.booking-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 128, 144, 0.3);
}

.step-header h3 {
  margin: 0;
  color: var(--secondary);
  font-size: 1.5rem;
}

.booking-step > p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .booking-step {
    padding: 1.5rem;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .step-header h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body {
    background: white;
  }

  nav,
  footer,
  .no-print {
    display: none !important;
  }

  section {
    box-shadow: none;
    border: 1px solid var(--border);
    page-break-inside: avoid;
  }
}
