/**
 * Design System - Természet Közeli / Organikus Stílus
 * Wellness Studio Theme
 * @package Wellness_Studio
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Earth Tones (Föld színek) */

  /* Primary - Earth Green (Föld zöld) */
  --color-primary: #7C9473;
  --color-primary-dark: #5A6F52;
  --color-primary-light: #A8BFA1;

  /* Secondary - Warm Terracotta */
  --color-secondary: #D4A373;
  --color-secondary-dark: #B8895F;

  /* Accent - Natural Wood */
  --color-accent: #8B6F47;

  /* Neutrals - Organic Beige/Cream */
  --color-bg: #F5F1E8;
  --color-surface: #FFFEF9;
  --color-text: #2C2416;
  --color-text-muted: #6B5D4F;

  /* Semantic Colors */
  --color-success: #6B8E5A;
  --color-error: #C97C5D;
  --color-warning: #D4A373;

  /* Shadows - Subtle & Natural */
  --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.12);
  --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.16);

  /* Typography Scale */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.625rem;  /* 26px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* Border Radius - Organic Shapes */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-lg);
}

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

/* Headings - Organic Serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

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

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

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

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

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

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

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

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

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

a:hover,
a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

/* Container */
.wellness-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Spacing */
.wellness-section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  .wellness-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.wellness-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Primary Button */
.wellness-button--primary,
.wp-block-button__link {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.wellness-button--primary:hover,
.wp-block-button__link:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.wellness-button--primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.wellness-button--secondary {
  background-color: var(--color-secondary);
  color: white;
}

.wellness-button--secondary:hover {
  background-color: var(--color-secondary-dark);
}

/* Outline Button */
.wellness-button--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.wellness-button--outline:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Button Sizes */
.wellness-button--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.wellness-button--small {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Card Component
   ========================================================================== */

.wellness-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(124, 148, 115, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.wellness-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.wellness-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.wellness-card__description {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.wellness-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(124, 148, 115, 0.15);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.wellness-form-field {
  margin-bottom: var(--space-lg);
}

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

.wellness-form-field input[type="text"],
.wellness-form-field input[type="email"],
.wellness-form-field input[type="tel"],
.wellness-form-field input[type="date"],
.wellness-form-field input[type="time"],
.wellness-form-field input[type="number"],
.wellness-form-field textarea,
.wellness-form-field select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 2px solid rgba(124, 148, 115, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.wellness-form-field input:focus,
.wellness-form-field textarea:focus,
.wellness-form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 148, 115, 0.1);
}

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

/* Validation States */
.wellness-form-field--error input,
.wellness-form-field--error textarea {
  border-color: var(--color-error);
}

.wellness-form-field--success input,
.wellness-form-field--success textarea {
  border-color: var(--color-success);
}

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

/* ==========================================================================
   Badge Component
   ========================================================================== */

.wellness-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Alignment */
.text-center {
  text-align: center;
}

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

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

/* Text Colors */
.text-primary {
  color: var(--color-primary);
}

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

/* Background Colors */
.bg-surface {
  background-color: var(--color-surface);
}

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

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.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); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* Grid Utilities */
.wellness-grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

@media (max-width: 768px) {
  .wellness-grid--2,
  .wellness-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Screen Reader Only */
.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;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.wellness-loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(124, 148, 115, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: wellness-spin 0.8s linear infinite;
}

@keyframes wellness-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hero Section Specific Styles
   ========================================================================== */

.wellness-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wellness-hero .wp-block-cover__inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wellness-hero h1,
.wellness-hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wellness-hero .wp-block-button__link {
  box-shadow: 0 4px 16px rgba(139, 111, 71, 0.3);
  transition: all var(--transition-base);
}

.wellness-hero .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 111, 71, 0.4);
}

/* Hero Responsive */
@media (max-width: 768px) {
  .wellness-hero h1 {
    font-size: 2.5rem !important;
  }

  .wellness-hero p {
    font-size: 1rem !important;
  }

  .wellness-hero .wp-block-button__link {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .wellness-hero h1 {
    font-size: 2rem !important;
  }

  .wellness-hero p {
    font-size: 0.9375rem !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Mobile: Default (320px+) */
/* Tablet: 768px+ */
/* Desktop: 1024px+ */
/* Large Desktop: 1200px+ */

/* ==========================================================================
   WordPress Block Editor Layout - Constrained Content
   Ensures proper max-width for constrained layouts within full-width sections
   ========================================================================== */

/* Core constrained layout support */
body {
  --wp--style--global--content-size: 1200px;
  --wp--style--global--wide-size: 1400px;
  --wp--style--root--padding-right: 1.5rem;
  --wp--style--root--padding-left: 1.5rem;
}

@media (min-width: 782px) {
  body {
    --wp--style--root--padding-right: 2rem;
    --wp--style--root--padding-left: 2rem;
  }
}

@media (min-width: 1200px) {
  body {
    --wp--style--root--padding-right: 3rem;
    --wp--style--root--padding-left: 3rem;
  }
}

/* Ensure alignfull blocks with constrained layout have proper content width */
.wp-block-group.alignfull[style*="constrained"],
.wp-block-group.alignfull.is-layout-constrained,
.wp-block-group.alignfull > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto;
  margin-right: auto;
}

/* Full-width groups should span entire width */
.wp-block-group.alignfull {
  width: 100%;
}

/* Container padding for full-width sections */
.wp-block-group.alignfull.has-global-padding {
  padding-right: var(--wp--style--root--padding-right, 1.5rem);
  padding-left: var(--wp--style--root--padding-left, 1.5rem);
}
