/* ==========================================================================
   Velda Morisco - Psychodynamic Psychotherapist
   Typography: Cormorant Garamond (headings) + Source Sans 3 (body)
   Palette: Warm cream, deep charcoal, dusty terracotta accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colours */
  --color-background: #FAF8F5;
  --color-background-alt: #F3F0EB;
  --color-text: #2D2A26;
  --color-text-light: #5C5854;
  --color-accent: #B87A5E;
  --color-accent-hover: #A66B4F;
  --color-accent-light: #D4A590;
  --color-border: #E8E4DF;
  --color-border-dark: #D1CBC3;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1140px;
  --max-width-narrow: 720px;

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

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text);
}

h1 {
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md) 0;
}

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

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

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

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.section--large {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--color-background-alt);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  padding: var(--space-md) 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-logo:hover {
  color: var(--color-accent);
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--color-border);
}

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

.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-lg) auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

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

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

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

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: white;
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Content Sections
   -------------------------------------------------------------------------- */
.content-section {
  padding: var(--space-xl) 0;
}

.content-section h2 {
  margin-bottom: var(--space-lg);
}

.intro-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-light);
  border-radius: 50%;
}

/* Info Card */
.info-card {
  background-color: var(--color-background-alt);
  padding: var(--space-lg);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

.info-card h3 {
  margin-bottom: var(--space-sm);
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  background-color: var(--color-background-alt);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
}

.highlight-box h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Services Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-background);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-accent-light);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Booking Placeholder (Halaxy Integration)
   -------------------------------------------------------------------------- */
.booking-section {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-background-alt);
  border-radius: 8px;
  margin: var(--space-lg) 0;
}

.booking-section h3 {
  margin-bottom: var(--space-sm);
}

.booking-section p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

/* Halaxy placeholder styling */
.halaxy-placeholder {
  border: 2px dashed var(--color-border-dark);
  padding: var(--space-xl);
  border-radius: 8px;
  background-color: var(--color-background);
}

.halaxy-placeholder p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 540px;
}

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

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border-dark);
  border-radius: 4px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 122, 94, 0.15);
}

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

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg) 0;
  background-color: var(--color-background-alt);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
}

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

.footer-content p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 0;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

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

/* --------------------------------------------------------------------------
   Page-Specific Styles
   -------------------------------------------------------------------------- */

/* About Page */
.credentials-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.credentials-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

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

.credentials-list strong {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* Approach Page */
.process-steps {
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--space-lg);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* Visually Hidden (for accessibility) */
.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;
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    padding: var(--space-2xl) 0 calc(var(--space-2xl) * 1.25) 0;
  }

  .hero .subtitle {
    font-size: 1.375rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section--large {
    padding: calc(var(--space-2xl) * 1.25) 0;
  }

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