/* ============================================================
   MY LITTLE PET V2 — DESIGN SYSTEM BASE
   Premium / Soft Fantasy / Pastel Boutique / Glossy Delicate
   ============================================================ */

/* ─────────────────────────────────────────────
   1. PALETA OFICIAL — TOKENS VISUAIS
   ───────────────────────────────────────────── */

:root {
  /* — Primary: rosa premium, identidade principal — */
  --color-primary:          #E8A0BF;
  --color-primary-hover:    #D88AAF;
  --color-primary-soft:     #F5D5E5;
  --color-primary-glow:     rgba(232, 160, 191, 0.35);

  /* — Secondary: lavanda suave, complemento elegante — */
  --color-secondary:        #BA90C6;
  --color-secondary-hover:  #A87AB8;
  --color-secondary-soft:   #E4D4ED;
  --color-secondary-glow:   rgba(186, 144, 198, 0.30);

  /* — Accent: dourado premium, destaque luxo — */
  --color-accent:           #D4AF37;
  --color-accent-hover:     #C19B2A;
  --color-accent-soft:      #F5EACC;
  --color-accent-glow:      rgba(212, 175, 55, 0.25);

  /* — Surface: fundo de cards e elementos elevados — */
  --color-surface:          #FFFFFF;
  --color-surface-alt:      #FDF6F9;
  --color-surface-glass:    rgba(255, 255, 255, 0.72);

  /* — Background: fundo geral da aplicação — */
  --color-background:       #FFF8FA;
  --color-background-alt:   #FDF2F6;

  /* — Border: bordas sutis e separadores — */
  --color-border:           #F0DDE5;
  --color-border-hover:     #E8C8D5;
  --color-border-focus:     #E8A0BF;

  /* — Text: hierarquia de texto — */
  --color-text:             #2D2233;
  --color-text-secondary:   #6B5A74;
  --color-text-muted:       #7A6A87;
  --color-text-inverse:     #FFFFFF;

  /* — Muted: estados desabilitados, placeholders — */
  --color-muted:            #D9CDE0;
  --color-muted-bg:         #F5F0F8;

  /* — Success: confirmação, sucesso — */
  --color-success:          #7DC89F;
  --color-success-hover:    #5FB888;
  --color-success-soft:     #E2F5EA;
  --color-success-glow:     rgba(125, 200, 159, 0.30);

  /* — Warning: alerta, atenção — */
  --color-warning:          #F0C27A;
  --color-warning-hover:    #E5AD5C;
  --color-warning-soft:     #FDF3E0;
  --color-warning-glow:     rgba(240, 194, 122, 0.30);

  /* — Danger: erro, perigo — */
  --color-danger:           #E88A9A;
  --color-danger-hover:     #D87080;
  --color-danger-soft:      #FDE5EA;
  --color-danger-glow:      rgba(232, 138, 154, 0.30);


  /* ─────────────────────────────────────────────
     2. TIPOGRAFIA OFICIAL
     ───────────────────────────────────────────── */

  /* Display: títulos hero, impacto visual */
  --font-display:    'Playfair Display', Georgia, serif;
  /* Heading: títulos de seção */
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  /* Body: texto corrido, parágrafos */
  --font-body:       'Nunito', 'Segoe UI', sans-serif;
  /* UI: botões, labels, inputs, menus */
  --font-ui:         'Nunito Sans', 'Segoe UI', sans-serif;

  /* Pesos */
  --fw-light:        300;
  --fw-regular:      400;
  --fw-medium:       500;
  --fw-semibold:     600;
  --fw-bold:         700;

  /* Escala tipográfica */
  --text-display:    3.25rem;    /* 52px — hero titles */
  --text-h1:         2.5rem;     /* 40px */
  --text-h2:         2rem;       /* 32px */
  --text-h3:         1.625rem;   /* 26px */
  --text-h4:         1.3125rem;  /* 21px */
  --text-h5:         1.125rem;   /* 18px */
  --text-h6:         1rem;       /* 16px */
  --text-body:       1rem;       /* 16px */
  --text-body-sm:    0.9375rem;  /* 15px */
  --text-caption:    0.8125rem;  /* 13px */
  --text-small:      0.75rem;    /* 12px */
  --text-button:     0.9375rem;  /* 15px */

  /* Line heights */
  --lh-tight:        1.2;
  --lh-normal:       1.6;
  --lh-relaxed:      1.8;

  /* Letter spacing */
  --ls-tight:        -0.02em;
  --ls-normal:       0;
  --ls-wide:         0.04em;
  --ls-wider:        0.08em;


  /* ─────────────────────────────────────────────
     6. SISTEMA DE SPACING
     ───────────────────────────────────────────── */

  --space-xs:        0.25rem;    /* 4px */
  --space-sm:        0.5rem;     /* 8px */
  --space-md:        1rem;       /* 16px */
  --space-lg:        1.5rem;     /* 24px */
  --space-xl:        2.5rem;     /* 40px */
  --space-xxl:       4rem;       /* 64px */

  /* Padding padrão */
  --pad-card:        var(--space-lg);
  --pad-section:     var(--space-xxl) var(--space-lg);
  --pad-input:       0.75rem 1rem;
  --pad-button:      0.75rem 1.75rem;

  /* Gap padrão */
  --gap-cards:       var(--space-lg);
  --gap-form:        var(--space-md);
  --gap-section:     var(--space-xxl);
  --gap-layout:      var(--space-xl);

  /* Border radius */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-full:     9999px;


  /* ─────────────────────────────────────────────
     7. SISTEMA DE SOMBRA E GLOW
     ───────────────────────────────────────────── */

  --shadow-soft:        0 2px 12px rgba(45, 34, 51, 0.06);
  --shadow-premium:     0 4px 24px rgba(45, 34, 51, 0.08),
                        0 1px 4px rgba(45, 34, 51, 0.04);
  --shadow-hover:       0 8px 32px rgba(45, 34, 51, 0.12),
                        0 2px 8px rgba(45, 34, 51, 0.06);
  --shadow-glow-soft:   0 0 20px var(--color-primary-glow);
  --shadow-glow-focus:  0 0 0 3px var(--color-primary-glow);
  --blur-glass:         blur(16px);

  /* Transição padrão */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-smooth:  400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─────────────────────────────────────────────
   RESET BASE
   ───────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
}

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

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

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


/* ─────────────────────────────────────────────
   TIPOGRAFIA — CLASSES UTILITÁRIAS
   ───────────────────────────────────────────── */

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h1, .text-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h2, .text-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h3, .text-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h4, .text-h4 {
  font-family: var(--font-ui);
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

h5, .text-h5 {
  font-family: var(--font-ui);
  font-size: var(--text-h5);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
  color: var(--color-text-secondary);
}

h6, .text-h6 {
  font-family: var(--font-ui);
  font-size: var(--text-h6);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
  color: var(--color-text-secondary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.text-body      { font-size: var(--text-body);    line-height: var(--lh-normal); }
.text-body-sm   { font-size: var(--text-body-sm); line-height: var(--lh-normal); }
.text-caption   { font-size: var(--text-caption); line-height: var(--lh-normal); color: var(--color-text-muted); }
.text-small     { font-size: var(--text-small);   line-height: var(--lh-normal); color: var(--color-text-muted); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent); }
.text-primary   { color: var(--color-primary); }


/* ─────────────────────────────────────────────
   3. SISTEMA DE BOTÕES
   ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--pad-button);
  font-family: var(--font-ui);
  font-size: var(--text-button);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow-soft);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow-focus);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  background: var(--color-muted);
  border-color: var(--color-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Secondary Button */
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  box-shadow: 0 0 20px var(--color-secondary-glow);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-secondary-glow);
}

.btn-secondary:disabled,
.btn-secondary.is-disabled {
  background: var(--color-muted);
  border-color: var(--color-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow-focus);
}

.btn-ghost:disabled,
.btn-ghost.is-disabled {
  background: transparent;
  border-color: var(--color-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Soft Button */
.btn-soft {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-color: transparent;
}

.btn-soft:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-glow-soft);
}

.btn-soft:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow-focus);
}

.btn-soft:disabled,
.btn-soft.is-disabled {
  background: var(--color-muted-bg);
  color: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Admin Button */
.btn-admin {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  border-radius: var(--radius-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  font-size: var(--text-small);
}

.btn-admin:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-admin:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.btn-admin:disabled,
.btn-admin.is-disabled {
  background: var(--color-muted);
  border-color: var(--color-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Tamanhos de botão */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-small);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-h5);
}


/* ─────────────────────────────────────────────
   4. SISTEMA DE CARDS
   ───────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

/* Premium Card — glassmorphism + glow */
.card-premium {
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(232, 160, 191, 0.20);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-premium);
}

.card-premium:hover {
  box-shadow: var(--shadow-hover), var(--shadow-glow-soft);
  border-color: rgba(232, 160, 191, 0.35);
  transform: translateY(-3px);
}

/* Service Card */
.card-service {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.card-service:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-soft);
  transform: translateY(-2px);
}

.card-service .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  color: var(--color-primary-hover);
}

.card-service .card-title {
  font-family: var(--font-ui);
  font-size: var(--text-h5);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.card-service .card-price {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

/* Dashboard Card */
.card-dashboard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.card-dashboard .card-label {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.card-dashboard .card-value {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

/* Gallery Card */
.card-gallery {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card-gallery:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-gallery .card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-gallery .card-body {
  padding: var(--space-md);
}

/* Empty Card — estado vazio / call-to-action */
.card-empty {
  background: var(--color-muted-bg);
  border: 2px dashed var(--color-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.card-empty:hover {
  border-color: var(--color-primary-soft);
  background: var(--color-surface-alt);
}

.card-empty .card-empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.card-empty .card-empty-text {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}


/* ─────────────────────────────────────────────
   5. SISTEMA DE INPUTS
   ───────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--pad-input);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  outline: none;
  width: 100%;
}

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

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-border-hover);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-glow-focus);
  background: var(--color-surface);
}

/* Error */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-glow);
}

/* Success */
.form-input.is-success,
.form-select.is-success,
.form-textarea.is-success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-glow);
}

/* Disabled */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background: var(--color-muted-bg);
  border-color: var(--color-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A696AE' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-hint {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-small);
  color: var(--color-danger);
  font-weight: var(--fw-medium);
}

/* Checkbox */
.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--color-text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
  box-shadow: var(--shadow-glow-focus);
}

.form-checkbox input[type="checkbox"]:disabled {
  background: var(--color-muted-bg);
  border-color: var(--color-muted);
  cursor: not-allowed;
}

/* Toggle */
.form-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  user-select: none;
}

.form-toggle input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-muted);
  cursor: pointer;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.form-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--transition-base);
}

.form-toggle input[type="checkbox"]:checked {
  background: var(--color-primary);
}

.form-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.form-toggle input[type="checkbox"]:focus-visible {
  box-shadow: var(--shadow-glow-focus);
}

.form-toggle input[type="checkbox"]:disabled {
  background: var(--color-muted-bg);
  cursor: not-allowed;
}


/* ─────────────────────────────────────────────
   8. SISTEMA DE PLACEHOLDERS DE IMAGEM
   ───────────────────────────────────────────── */

.placeholder-image {
  position: relative;
  background: linear-gradient(135deg, var(--color-background-alt) 0%, var(--color-primary-soft) 50%, var(--color-secondary-soft) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-muted);
}

.placeholder-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(232, 160, 191, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.placeholder-image .placeholder-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.placeholder-image .placeholder-label {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Hero Image Placeholder */
.placeholder-hero {
  aspect-ratio: 16 / 7;
  min-height: 300px;
  border-radius: var(--radius-xl);
}

/* Service Image Placeholder */
.placeholder-service {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-md);
}

/* Gallery Image Placeholder */
.placeholder-gallery {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Pet Avatar Placeholder */
.placeholder-avatar {
  aspect-ratio: 1 / 1;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.placeholder-avatar .placeholder-icon {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.placeholder-avatar .placeholder-label {
  display: none;
}

/* Before/After Image Placeholder */
.placeholder-before-after {
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: var(--radius-md);
}

/* Banner Image Placeholder */
.placeholder-banner {
  aspect-ratio: 21 / 9;
  width: 100%;
  min-height: 180px;
  border-radius: var(--radius-lg);
}

/* Upload Ready State */
.placeholder-image.is-upload-ready {
  border: 2px dashed var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.placeholder-image.is-upload-ready:hover {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-secondary-soft) 100%);
  border-color: var(--color-primary-hover);
}

.placeholder-image.is-upload-ready .placeholder-label::after {
  content: ' — clique para enviar';
}

/* Com imagem real carregada */
.placeholder-image.has-image {
  background: var(--color-surface);
  border-color: transparent;
}

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

.placeholder-image.has-image .placeholder-icon,
.placeholder-image.has-image .placeholder-label {
  display: none;
}


/* ─────────────────────────────────────────────
   UTILITÁRIOS DE LAYOUT
   ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--pad-section);
}

.grid {
  display: grid;
  gap: var(--gap-cards);
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

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

/* Responsivo */
@media (max-width: 768px) {
  :root {
    --text-display: 2.25rem;
    --text-h1:      1.875rem;
    --text-h2:      1.5rem;
    --text-h3:      1.25rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --text-display: 1.875rem;
    --text-h1:      1.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
  .btn.btn-sm {
    width: auto;
  }
}

/* ─────────────────────────────────────────────
   FLASH MESSAGES — PREMIUM POLISH
   ───────────────────────────────────────────── */

.flash {
  width: min(100%, 760px);
  margin: 1rem auto;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-glass);
  color: var(--color-text);
  box-shadow: var(--shadow-premium);
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}

.flash-success {
  background: var(--color-success-soft);
  border-color: rgba(125, 200, 159, 0.45);
  color: #2F7A50;
}

.flash-error {
  background: var(--color-danger-soft);
  border-color: rgba(232, 138, 154, 0.50);
  color: #A33D4E;
}

.flash-warning {
  background: var(--color-warning-soft);
  border-color: rgba(240, 194, 122, 0.55);
  color: #9A6820;
}

.flash-info {
  background: var(--color-secondary-soft);
  border-color: rgba(186, 144, 198, 0.45);
  color: #6D4778;
}

@media (max-width: 768px) {
  .flash {
    width: calc(100% - 2rem);
    margin: 0.75rem auto;
    padding: 0.85rem 1rem;
    font-size: var(--text-caption);
  }
}
