/* ==========================================
   Leo's Photography - Base Styles
   Modern, accessible design system
   ========================================== */

/* CSS Custom Properties */
:root {
  /* Colors - WCAG AA compliant */
  --color-primary: #1a1a1a;
  --color-primary-light: #2d3436;
  --color-accent: #b8860b;
  --color-accent-hover: #9a7209;
  --color-accent-light: #d4af37;

  --color-bg: #fafafa;
  --color-bg-alt: #f0f0f0;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;

  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-text-light: #888888;
  --color-text-inverse: #ffffff;

  --color-border: #e0e0e0;
  --color-border-light: #eeeeee;

  /* Status colors */
  --color-success: #27ae60;
  --color-success-bg: #d4edda;
  --color-error: #c0392b;
  --color-error-bg: #f8d7da;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

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

/* ==========================================
   Reset & Base
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent-hover);
}

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

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: 0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

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

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
}

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

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

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

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

.subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* ==========================================
   Layout
   ========================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* ==========================================
   Logo
   ========================================== */

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-main {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.logo-large .logo-main {
  font-size: var(--text-5xl);
}

.logo-large .logo-sub {
  font-size: var(--text-base);
  letter-spacing: 0.4em;
}

/* ==========================================
   Header
   ========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Header Actions & User Menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: var(--space-6);
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-toggle:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: var(--text-sm);
}

.user-menu-email {
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.user-menu-toggle[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 200;
}

.user-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-header {
  padding: var(--space-4);
}

.user-menu-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
}

.user-menu-email-small {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.user-menu-divider {
  height: 1px;
  background: var(--color-border-light);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-menu-item:hover {
  background: var(--color-bg-alt);
}

.user-menu-item svg {
  color: var(--color-text-muted);
}

.user-menu-signout {
  color: var(--color-error);
}

.user-menu-signout svg {
  color: var(--color-error);
}

/* ==========================================
   Login Page
   ========================================== */

.login-container {
  max-width: 440px;
  margin: 0 auto;
}

.login-card {
  text-align: center;
  padding: var(--space-10);
}

.login-icon {
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

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

.login-card > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.login-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
  text-align: left;
}

.login-footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.login-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo-main,
.footer-brand .logo-sub {
  color: var(--color-text-inverse);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-contact p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  margin-left: var(--space-6);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
}

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

.btn-outline:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ==========================================
   Cards
   ========================================== */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.card-body {
  padding: var(--space-6);
}

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

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

/* ==========================================
   Forms
   ========================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.required {
  color: var(--color-error);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

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

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

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* Contact Form Card - needs visible overflow for textarea */
#contact-form-container.card {
  overflow: visible;
}

/* Form Validation Styles */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown),
.form-select:invalid {
  border-color: var(--color-error);
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown),
.form-select:valid:not([value=""]) {
  border-color: var(--color-success, #22c55e);
}

/* Validation message shown on form submit attempt */
.form-validation-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  color: #991b1b;
  font-size: var(--text-sm);
}

.form-validation-message ul {
  margin: var(--space-2) 0 0 var(--space-4);
  padding: 0;
}

.form-validation-message li {
  margin-bottom: var(--space-1);
}

/* Required field indicator */
.required {
  color: var(--color-error);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 25% 25%, var(--color-accent) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--color-accent) 2px, transparent 2px);
  background-size: 60px 60px;
}

/* ==========================================
   Services Grid
   ========================================== */

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

.services-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

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

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

/* ==========================================
   Feature Section
   ========================================== */

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.feature-content h2 {
  margin-bottom: var(--space-4);
}

.feature-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ==========================================
   Stats Section
   ========================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-6);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

/* ==========================================
   CTA Section
   ========================================== */

.cta {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: var(--space-20) var(--space-6);
}

.cta h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.cta p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ==========================================
   Contact Page
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.location-card {
  padding: var(--space-8);
}

.location-card h3 {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.location-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.location-card .hours {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* ==========================================
   OAuth Buttons (Auth)
   ========================================== */

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  transition: all var(--transition-fast);
}

.oauth-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  color: var(--color-text);
}

.oauth-btn svg {
  flex-shrink: 0;
}

.oauth-btn.google:hover {
  border-color: #4285F4;
}

.oauth-btn.microsoft:hover {
  border-color: #00A4EF;
}

.oauth-btn.apple {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.oauth-btn.apple:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
}

/* Login Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Magic Link Form */
.magic-link-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.magic-link-input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.magic-link-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.magic-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
}

.magic-link-btn svg {
  flex-shrink: 0;
}

.magic-link-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.magic-link-success {
  text-align: center;
  padding: var(--space-6);
}

.magic-link-success svg {
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.magic-link-success h3 {
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.magic-link-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.magic-link-error {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-error-bg);
  border-radius: var(--radius-md);
  color: var(--color-error);
}

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

/* ==========================================
   User Section (Auth)
   ========================================== */

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-border);
}

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

.user-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.user-email {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0 0;
}

.user-provider {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: capitalize;
  margin: var(--space-1) 0 0 0;
}

#logout-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-error);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

#logout-btn:hover {
  background: #a93226;
}

/* ==========================================
   Messages
   ========================================== */

#message {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-sm);
  display: none;
}

#message.success {
  display: block;
  background: var(--color-success-bg);
  color: #155724;
}

#message.error {
  display: block;
  background: var(--color-error-bg);
  color: #721c24;
}

#loading {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-8);
}

.no-providers {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding: var(--space-4);
}

/* ==========================================
   Page Headers
   ========================================== */

.page-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.page-header p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   About Page
   ========================================== */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.timeline-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

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

/* ==========================================
   Store Page (Placeholder)
   ========================================== */

.store-auth {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.store-auth .card {
  padding: var(--space-10);
}

.store-auth h2 {
  margin-bottom: var(--space-2);
}

.store-auth p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-section.reverse {
    direction: ltr;
  }
}

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

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  .container {
    padding: 0 var(--space-4);
  }

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

  /* Mobile Navigation */
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile user menu */
  .header-actions {
    margin-left: auto;
    margin-right: var(--space-4);
  }

  .user-menu-email {
    max-width: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-brand p {
    margin: var(--space-4) auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-legal a {
    margin: 0 var(--space-3);
  }

  .services-grid,
  .services-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Form grid on mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 500px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  /* Page header adjustments */
  .page-header {
    padding: var(--space-10) 0;
  }

  /* Card padding adjustments */
  .service-card {
    padding: var(--space-6) var(--space-4);
  }

  .location-card {
    padding: var(--space-6);
  }

  /* Timeline adjustments */
  .timeline {
    padding-left: var(--space-6);
  }

  .timeline-item::before {
    left: calc(-1 * var(--space-6) - 5px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--text-4xl);
  }

  /* Smaller logo on tiny screens */
  .logo-main {
    font-size: var(--text-2xl);
  }

  .logo-sub {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
  }

  /* CTA section */
  .cta {
    padding: var(--space-12) var(--space-4);
  }

  /* Hero content */
  .hero {
    min-height: 450px;
  }

  .hero p {
    font-size: var(--text-base);
  }
}
