/* The Ark Medspa — Design Tokens & Custom Styles */

:root {
  /* Color Palette */
  --color-primary: #1F3A4D;
  --color-primary-light: #2A4F66;
  --color-primary-dark: #162B3A;
  --color-secondary: #E9E2D6;
  --color-secondary-light: #F5F1EB;
  --color-accent: #C9A35B;
  --color-accent-hover: #B8923F;
  --color-white: #FFFFFF;
  --color-text: #2A2A2A;
  --color-text-secondary: #5A5A5A;
  --color-text-on-dark: #FFFFFF;
  --color-border: #D4CFC7;
  --color-success: #4A7C59;
  --color-overlay: rgba(31, 58, 77, 0.7);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Type Scale (Major Third 1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;
  --text-6xl: 3.815rem;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-max: 1280px;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }

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

/* Container */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm); letter-spacing: 0.025em;
  padding: 0.875rem 2rem; border-radius: var(--radius-full);
  cursor: pointer; transition: all var(--transition-base);
  text-decoration: none; border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent; color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-1px); }

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

.btn-sm { padding: 0.625rem 1.5rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2.5rem; font-size: var(--text-base); }

/* Section Spacing */
.section { padding: var(--section-padding) 0; }
.section-alt { background: var(--color-secondary-light); }
.section-dark { background: var(--color-primary); color: var(--color-text-on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-sand { background: var(--color-secondary); }

/* Cards */
.card {
  background: var(--color-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Trust Badge */
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: var(--text-sm); color: var(--color-text-secondary);
}
.trust-badge .stars { color: var(--color-accent); }

/* Form Styles */
.form-input {
  width: 100%; padding: 0.875rem 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-white);
  transition: border-color var(--transition-fast);
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,58,77,0.1); }
.form-input::placeholder { color: var(--color-border); }

.form-select {
  width: 100%; padding: 0.875rem 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232A2A2A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

/* Location Switcher */
.location-switcher {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: var(--text-xs); font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}
.location-switcher button {
  background: none; border: none; cursor: pointer;
  padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary); transition: all var(--transition-fast);
}
.location-switcher button.active, .location-switcher button:hover {
  color: var(--color-primary); background: var(--color-secondary-light);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  .section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
  .btn { padding: 0.75rem 1.5rem; }
}

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

/* Utility */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
