/*
Theme Name: HM AgenceImmobiliere
Theme URI: https://agenceimmobiliere.be
Author: Hellomoon
Author URI: https://hellomoon.lu
Description: Lightweight custom theme for AgenceImmobiliere.be using Tailwind via WindPress.
Version: 0.2.0
Text Domain: hm-agenceimmobiliere
*/

:root {
  --hm-bg: #f7f8fc;
  --hm-surface: #ffffff;
  --hm-text: #111827;
  --hm-muted: #667085;
  --hm-border: #e6eaf2;
  --hm-primary: #2563eb;
  --hm-primary-dark: #1d4ed8;
  --hm-dark: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  text-decoration: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

/* WordPress pagination */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hm-border);
  color: var(--hm-text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--hm-primary);
  border-color: var(--hm-primary);
  color: #fff;
}

/* Estimation form styling from shortcode output */
.hm-estimation-form-wrap {
  width: 100%;
}

.hm-estimation-form {
  display: grid;
  gap: 1.5rem;
}

.hm-estimation-form__section {
  border: 1px solid var(--hm-border);
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.hm-estimation-form__legend {
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.hm-estimation-form__field {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hm-estimation-form__field--error .hm-estimation-form__input,
.hm-estimation-form__field--error .hm-estimation-form__select,
.hm-estimation-form__field--error .hm-estimation-form__textarea {
  border-color: #ef4444;
}

.hm-estimation-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-text);
}

.hm-estimation-form__input,
.hm-estimation-form__select,
.hm-estimation-form__textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--hm-border);
  background: #fff;
  padding: 0.9rem 1rem;
  color: var(--hm-text);
  box-sizing: border-box;
}

.hm-estimation-form__input:focus,
.hm-estimation-form__select:focus,
.hm-estimation-form__textarea:focus {
  outline: none;
  border-color: var(--hm-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hm-estimation-form__alert {
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  font-size: 0.95rem;
}

.hm-estimation-form__alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.hm-estimation-form__actions,
.hm-estimation-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hm-estimation-form button,
.hm-estimation-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--hm-primary);
  color: #fff;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.hm-estimation-form button:hover,
.hm-estimation-form input[type="submit"]:hover {
  background: var(--hm-primary-dark);
}

.hm-estimation-form__success,
.hm-estimation-success {
  border-radius: 1.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1.5rem;
  color: #1e3a8a;
}

/* Generic content spacing */
.entry-content > * + * {
  margin-top: 1rem;
}
