:root {
  --color-primary: #455339;
  --color-primary-hover: #364229;
  --color-primary-soft: color-mix(in srgb, var(--color-primary) 12%, #fff);
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #d4d4d4;
  --color-text: #2a2a2a;
  --color-text-muted: #5c5c5c;
  --color-accent-gold: #f3ad1c;
  --color-accent-red: #da4827;

  --font-logo: "Qurany", "Arial Black", Impact, sans-serif;
  --font-body: "Montserrat", sans-serif;

  --text-size: 1rem;
  --text-leading: 1.5;
  --h1-size: 2.75rem;
  --h1-leading: 1.2;
  --h2-size: 2.25rem;
  --h2-leading: 1.2;
  --h3-size: 1.75rem;
  --h3-leading: 1.25;
  --h4-size: 1.375rem;
  --h4-leading: 1.3;
  --h5-size: 1.125rem;
  --h5-leading: 1.35;
  --h6-size: 1rem;
  --h6-leading: 1.4;

  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  --radius-component: 4px;
  --layout-max-width: 1200px;
  --header-height: 4.75rem;
  --header-pad-y: 0.65rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 400;
  line-height: var(--text-leading);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* WP admin bar adds margin-top on html — shrink body so it doesn't overflow */
body.admin-bar {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

/*
 * Theme typography for non-Elementor surfaces only (404, classic content).
 * Never target bare h1–h6 / p sitewide — that fights Elementor widget controls.
 */
body:not(.elementor-page) h1,
body:not(.elementor-page) h2,
body:not(.elementor-page) h3,
body:not(.elementor-page) h4,
body:not(.elementor-page) h5,
body:not(.elementor-page) h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5em;
}

body:not(.elementor-page) h2,
body:not(.elementor-page) h3,
body:not(.elementor-page) h4,
body:not(.elementor-page) h5,
body:not(.elementor-page) h6 {
  margin-top: 1.5em;
}

body:not(.elementor-page) h1:first-child,
body:not(.elementor-page) h2:first-child,
body:not(.elementor-page) h3:first-child,
body:not(.elementor-page) h4:first-child,
body:not(.elementor-page) h5:first-child,
body:not(.elementor-page) h6:first-child {
  margin-top: 0;
}

body:not(.elementor-page) h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-leading);
  margin-bottom: 0.4em;
}

body:not(.elementor-page) h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-leading);
}

body:not(.elementor-page) h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}

body:not(.elementor-page) h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-leading);
  font-weight: 600;
}

body:not(.elementor-page) h5 {
  font-size: var(--h5-size);
  line-height: var(--h5-leading);
  font-weight: 600;
}

body:not(.elementor-page) h6 {
  font-size: var(--h6-size);
  line-height: var(--h6-leading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body:not(.elementor-page) p {
  margin: 0 0 1em;
}

body:not(.elementor-page) p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.875rem;
    --h3-size: 1.5rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

body:not(.elementor-page) main a {
  color: var(--color-primary);
}

body:not(.elementor-page) main a:hover,
body:not(.elementor-page) main a:focus-visible {
  color: var(--color-primary-hover);
}

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

main {
  flex: 1;
  min-height: 0;
}

.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-inline: var(--space-xl);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  z-index: 100000;
  background: var(--color-surface);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-component);
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-hover);
  color: var(--color-surface);
}
