/* ==========================================================================
   AURELIA AESTHETIC MEDICINE — BASE STYLES & RESET
   ========================================================================== */

/* 1. RESET & BOX SIZING */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 2. TYPOGRAPHY HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

.display-title {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Editorial italic accent */
.display-title em,
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: inherit;
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 1.25rem;
}

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

p.lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Eyebrow / Category Label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--accent-bronze);
  margin-bottom: 1rem;
}

.eyebrow-dark {
  color: var(--accent-bronze-light);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

/* 3. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-editorial {
  width: 100%;
  max-width: var(--container-editorial);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sections */
.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

.section-sm {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
  position: relative;
}

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-surface { background-color: var(--bg-surface); }
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--text-on-dark);
}
.bg-dark p {
  color: var(--text-muted-dark);
}

/* 4. BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: #171615;
  border-color: #171615;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: rgba(41, 39, 36, 0.22);
}

.btn-secondary:hover {
  background-color: rgba(41, 39, 36, 0.04);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--bg-primary);
}

.btn-light:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: rgba(247, 244, 239, 0.3);
}

.btn-outline-light:hover {
  background-color: rgba(247, 244, 239, 0.08);
  border-color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transition: transform var(--duration-fast) ease;
  transform-origin: left;
}

.btn-link:hover::after {
  transform: scaleX(0.7);
}

.btn-link-arrow svg {
  transition: transform var(--duration-fast) ease;
}

.btn-link-arrow:hover svg {
  transform: translateX(4px);
}

/* Icon button */
.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-icon:hover {
  border-color: var(--accent-bronze);
  color: var(--accent-bronze);
  background: #FFF;
}

/* 5. FORM CONTROLS */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label.form-label {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.125rem;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-control:focus {
  border-color: var(--accent-bronze);
  box-shadow: 0 0 0 3px rgba(180, 154, 120, 0.15);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

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

/* 6. BADGES & PILLS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-bronze {
  background-color: var(--accent-bronze-light);
  color: #5C4830;
  border-color: rgba(180, 154, 120, 0.3);
}

.badge-sage {
  background-color: var(--accent-sage-pale);
  color: #3B4B38;
  border-color: rgba(170, 182, 166, 0.4);
}

/* 7. IMAGE CONTAINERS & MASKS */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.img-arch {
  border-top-left-radius: 180px;
  border-top-right-radius: 180px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow: hidden;
}

/* 8. SECTION HEADERS */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* 9. ACCESSIBILITY & UTILITIES */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-xs);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1.5rem;
}

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