/* ============================================
   THE MED SPA AT LAKE NORMAN
   Premium Spa Landing Page Styles
   ============================================ */

/* -- Design Tokens -- */
:root {
  /* Primary colors from the brand */
  --mauve: #8b5a6b;
  --mauve-dark: #6d4555;
  --mauve-light: #a87b8c;
  --olive: #7a9f35;
  --olive-dark: #5d7a28;
  --olive-light: #95bc45;
  
  /* Neutrals */
  --cream: #f8f6f4;
  --white: #ffffff;
  --warm-gray: #f0ebe7;
  --text-dark: #2d2a28;
  --text-muted: #6b6560;
  --text-light: #9a9590;
  
  /* Functional */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-lifted: 0 20px 60px rgba(0, 0, 0, 0.15);
  
  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Pinyon Script', 'Brush Script MT', cursive;
}

/* -- Reset & Base -- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background with subtle plant texture */
.theme {
  background: 
    linear-gradient(135deg, rgba(248, 246, 244, 0.97) 0%, rgba(240, 235, 231, 0.95) 100%),
    url('../img/plant-2004483_1920.jpg');
  background-size: cover, cover;
  background-position: center, right center;
  background-attachment: fixed, fixed;
  min-height: 100vh;
}

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

a {
  color: var(--mauve);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mauve-dark);
}

/* -- Utilities -- */
.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only-focusable:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  font-weight: 600;
}

/* -- Typography -- */
.script-text {
  font-family: var(--font-accent);
  font-weight: 400;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text-dark);
}

.h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--mauve);
  margin: 0 0 0.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

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

.small {
  font-size: 0.875rem;
}

/* -- Header / Topbar -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--mauve) 0%, var(--mauve-dark) 100%);
  box-shadow: 0 4px 20px rgba(109, 69, 85, 0.25);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__logo {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.brand:hover .brand__logo {
  transform: scale(1.02);
}

.brand__tagline {
  font-family: var(--font-accent);
  font-size: 1.625rem;
  color: rgba(255, 255, 255, 0.95);
  display: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@media (min-width: 900px) {
  .brand__tagline {
    display: block;
  }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, var(--olive-light) 0%, var(--olive) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(122, 159, 53, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%);
  box-shadow: 0 6px 20px rgba(122, 159, 53, 0.45);
  color: var(--white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

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

.btn--outline:hover {
  background: var(--mauve);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* -- Main Page Layout -- */
.page {
  padding: 2rem 0 0;
}

/* -- Hero Section -- */
.hero {
  padding: 1.5rem 0 2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

/* -- Cards -- */
.heroCard,
.formCard,
.trustCard,
.infoCard,
.legalCard {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

/* Hero Card */
.heroCard {
  position: relative;
}

.heroCard__banner {
  position: relative;
  background: linear-gradient(135deg, #f9f7f5 0%, #f0ebe7 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroCard__banner img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.heroCard__content {
  padding: 2rem 2.5rem 2.5rem;
}

.bullets {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--olive);
  border-radius: 50%;
}

.ctaRow {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Info Grid */
.infoGrid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .infoGrid {
    grid-template-columns: 1fr 1fr;
  }
}

.infoCard {
  padding: 1.5rem;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.hours li:last-child {
  border-bottom: none;
}

.hours li span:first-child {
  color: var(--text-muted);
}

.hours li span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.stack {
  margin: 0;
  line-height: 1.8;
  font-size: 0.9375rem;
}

.stack a {
  font-weight: 600;
}

.miniActions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* -- Form Section (Right Column) -- */
.hero__right {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .hero__right {
    position: sticky;
    top: 100px;
  }
}

.formCard {
  padding: 2rem;
  border: 3px solid var(--mauve);
  box-shadow: var(--shadow-lifted);
}

.formCard .h2 {
  color: var(--mauve);
  text-align: center;
  margin-bottom: 0.5rem;
}

.formCard .lead {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .fieldRow {
    grid-template-columns: 1fr;
  }
}

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

.field label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--warm-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

input:focus {
  background: var(--white);
  border-color: var(--mauve);
  box-shadow: 0 0 0 4px rgba(139, 90, 107, 0.15);
}

input::placeholder {
  color: var(--text-light);
}

.fieldSet {
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0;
  background: rgba(248, 246, 244, 0.5);
}

.legend {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mauve);
  padding: 0 0.5rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: var(--mauve);
  cursor: pointer;
  flex-shrink: 0;
}

.check span a {
  font-weight: 600;
}

.fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

.formActions {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.formActions .btn {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

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

.formError {
  min-height: 1rem;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* Trust Card */
.trustCard {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(122, 159, 53, 0.08) 0%, rgba(122, 159, 53, 0.03) 100%);
  border: 1px solid rgba(122, 159, 53, 0.2);
}

.trustCard .h3 {
  color: var(--olive-dark);
}

.trustList {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
}

.trustList li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.trustList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237a9f35'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* -- Footer CTA Section -- */
.footerCTA {
  margin-top: 2rem;
  background: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 60%, transparent 100%),
    url('../img/plant-2004483_1920.jpg');
  background-size: cover, cover;
  background-position: left center, right center;
  border-top: 1px solid var(--border-light);
}

.footerCTA__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footerCTA__inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footerCTA__left .h2 {
  margin-bottom: 0.5rem;
}

.footerCTA__right {
  display: flex;
  justify-content: center;
}

.footerCTA__right img {
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border: 4px solid var(--white);
}

/* -- Footer -- */
.footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--white);
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  align-items: start;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__brand img {
  max-width: 220px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.footer .h3 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.footer .stack {
  color: rgba(255, 255, 255, 0.85);
}

.footerLinks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footerLinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.footerLinks a:hover {
  transform: translateX(4px);
}

.footer__bottom {
  background: var(--mauve);
  padding: 1rem 0;
}

.footer__bottomInner {
  display: flex;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.footer__bottomInner a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

/* -- Legal Pages -- */
.legalPage {
  padding: 2.5rem 0 4rem;
}

.legalPage__inner {
  display: grid;
  place-items: center;
}

.legalCard {
  width: min(900px, 100%);
  padding: 3rem;
  line-height: 1.8;
}

.legalCard .h1 {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}

.legalCard h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--mauve);
}

.legalCard ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.legalCard li {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

/* Summary Box (Thank You page) */
.summary {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--olive);
  background: rgba(122, 159, 53, 0.08);
}

.summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1rem;
}

.summary dt {
  font-weight: 700;
  color: var(--text-dark);
}

.summary dd {
  margin: 0;
  color: var(--text-muted);
}

/* Notice Box */
.notice {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--mauve);
  background: rgba(139, 90, 107, 0.08);
}

/* -- Responsive Adjustments -- */
@media (max-width: 1023px) {
  .hero__right {
    position: static;
  }
}

@media (max-width: 767px) {
  .topbar__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .topbar__actions {
    width: 100%;
    justify-content: center;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .heroCard__content {
    padding: 1.5rem;
  }
  
  .formCard {
    padding: 1.5rem;
  }
  
  .legalCard {
    padding: 1.5rem;
  }
}

/* -- Animations -- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroCard,
.formCard,
.trustCard,
.infoCard {
  animation: fadeInUp 0.6s ease-out;
}

.formCard {
  animation-delay: 0.1s;
}

.trustCard {
  animation-delay: 0.2s;
}

.infoCard:nth-child(1) {
  animation-delay: 0.15s;
}

.infoCard:nth-child(2) {
  animation-delay: 0.25s;
}

/* Fill animation for animation-delay elements */
.heroCard,
.formCard,
.trustCard,
.infoCard {
  animation-fill-mode: both;
}
