@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Watermelon: earthy greens + warm neutrals */
  --primary-color: #eef3e4;
  --secondary-color: #dbe7cc;
  --accent-color: #7f9a60;
  --background-color:
    radial-gradient(circle at 12% 10%, rgba(167, 187, 148, 0.26), transparent 42%),
    radial-gradient(circle at 88% 16%, rgba(128, 154, 96, 0.2), transparent 45%),
    linear-gradient(160deg, #f5f6ef 0%, #ecf2e4 54%, #e5edd9 100%);
  --dark-background-color: #284333;

  --text-color: #243327;

  --nav-background-color: rgba(245, 247, 239, 0.9);
  --nav-text-color: #2f432f;
  --nav-active-background: #2f4a35;
  --nav-active-text: #f5f8ef;

  --dark-button-color: #2f4a35;
  --button-color: #5f7b4b;
  --button-hover-color: #4a663b;
  --button-text-color: #f6f8ee;

  --border-color: rgba(72, 103, 71, 0.24);

  --site-max-width: 1380px;

  --card-radius-lg: 26px;
  --card-radius-md: 18px;
  --card-radius-sm: 12px;

  --wm-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(239, 245, 229, 0.84));
  --wm-surface-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(234, 241, 220, 0.96));
  --wm-shadow-soft: 0 16px 34px rgba(37, 59, 36, 0.12);
  --wm-shadow-lift: 0 22px 42px rgba(35, 56, 34, 0.16);
  --wm-font-heading: 'Cormorant Garamond', Georgia, serif;
  --wm-font-body: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
}

html,
body {
  font-family: var(--wm-font-body);
  color: var(--text-color);
  background: var(--background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--wm-font-heading);
  color: #1f3322;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 3.8vw, 4.1rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

p,
li,
label,
input,
textarea,
select,
button {
  font-family: var(--wm-font-body);
}

/* Enforce typography across component-scoped CSS that may set its own font-family */
app-root h1,
app-root h2,
app-root h3,
app-root h4,
app-root h5,
app-root h6,
app-root .section-title,
app-root .center-text-title,
app-root .apple-center-text-title,
app-root .peach-center-text-title,
app-root .wm-brand-name {
  font-family: var(--wm-font-heading) !important;
}

app-root p,
app-root a,
app-root li,
app-root label,
app-root button,
app-root input,
app-root textarea,
app-root select,
app-root .center-text-description,
app-root .apple-center-text-description,
app-root .peach-center-text-description,
app-root .center-text-link,
app-root .clemo-nav-link,
app-root .nav-item,
app-root .afhBtn,
app-root .clemo-btn,
app-root .btn {
  font-family: var(--wm-font-body) !important;
}

a {
  color: #395c3c;
}

a:hover {
  color: #2f4d33;
}

button,
.afhBtn,
.clemo-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--button-color);
  color: var(--button-text-color);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(35, 56, 34, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover,
.afhBtn:hover,
.clemo-btn:hover,
.btn:hover {
  background: var(--button-hover-color);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 55, 33, 0.26);
}

button:active,
.afhBtn:active,
.clemo-btn:active,
.btn:active {
  transform: translateY(0);
}

button:focus-visible,
.afhBtn:focus-visible,
.clemo-btn:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(109, 145, 79, 0.36);
  outline-offset: 2px;
}

input,
textarea,
select {
  border-radius: 12px;
  border: 1px solid rgba(94, 125, 82, 0.32);
  background: rgba(252, 253, 248, 0.92);
  color: #27372c;
}

.section-card,
.card,
.clemo-card,
.content-card {
  background: var(--wm-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius-lg);
  box-shadow: var(--wm-shadow-soft);
  backdrop-filter: blur(1.5px);
}

.centered,
.page-wrapper {
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.full-width {
  width: 100%;
  max-width: 100%;
}

img,
video,
iframe {
  border-radius: var(--card-radius-sm);
}

@keyframes wmFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  section,
  .section-card,
  .card {
    animation: wmFadeUp 0.45s ease-out both;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.4vw, 2.1rem);
  }

  button,
  .afhBtn,
  .clemo-btn,
  .btn {
    width: 100%;
    max-width: 320px;
  }
}
