/* =========================================================
   0. FONT IMPORT
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   1. RESET & GLOBAL BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif !important;
}
.elementor-kit-8,
.elementor-kit-8 * {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif !important;
}

html {
  font-size: 100%; /* 16px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif !important;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-default);
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
}

/* =========================================================
   2. DESIGN TOKENS
========================================================= */

:root {
  /* Colors */
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --bg-default: #ffffff;
  --bg-muted: #f8fafc;
  --border-default: #e5e7eb;
  --brand-primary: #0ea5e9;

  /* Typography */
  --h1: 3rem;
  --h2: 2rem;
  --h3: 1.5rem;
  --body-lg: 1.125rem;
  --body: 1rem;
  --body-sm: 0.875rem;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.25rem;
}

/* =========================================================
   3. TYPOGRAPHY (WORDPRESS SAFE)
========================================================= */

.entry-content h1,
.wp-site-blocks h1,
.elementor h1 {
  font-size: clamp(2.25rem, 5vw, var(--h1));
  line-height: 1.2;
  font-weight: 800;
}

.entry-content h2,
.wp-site-blocks h2,
.elementor h2 {
  font-size: clamp(1.75rem, 4vw, var(--h2));
  line-height: 1.3;
  font-weight: 700;
}

.entry-content h3,
.wp-site-blocks h3,
.elementor h3 {
  font-size: var(--h3);
  line-height: 1.35;
  font-weight: 600;
}

.entry-content p,
.wp-site-blocks p,
.elementor p {
  font-size: var(--body);
  line-height: 1.6;
  font-weight: 500;
}

.entry-content li,
.wp-site-blocks li,
.elementor li {
  font-size: var(--body);
  line-height: 1.6;
  font-weight: 400;
}

.entry-content small,
.wp-site-blocks small,
.elementor small {
  font-size: var(--body-sm);
  font-weight: 300;
  color: var(--text-muted);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   4. CONTAINER & SECTIONS
========================================================= */

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

section {
  padding-block: var(--space-5);
}

.section-sm {
  padding-block: var(--space-3);
}

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

/* =========================================================
   5. CONTENT STACK
========================================================= */

.stack > * + * {
  margin-top: var(--space-2);
}

.stack-lg > * + * {
  margin-top: var(--space-3);
}

/* =========================================================
   6. GRID SYSTEM
========================================================= */

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

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

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

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

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

/* =========================================================
   7. MEDIA & IMAGES
========================================================= */

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

.media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* =========================================================
   8. BUTTONS
========================================================= */

button,
.button,
.wp-block-button__link {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: none;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: var(--body);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.button:hover,
.wp-block-button__link:hover {
  opacity: 0.9;
}

/* =========================================================
   9. FORMS
========================================================= */

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  font-size: var(--body);
  border-radius: 6px;
  border: 1px solid var(--border-default);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* =========================================================
   10. WORDPRESS BLOCK NORMALIZATION
========================================================= */

.wp-block-group,
.wp-block-columns {
  margin-bottom: var(--space-4);
}

.wp-block-image {
  margin-bottom: var(--space-3);
}

/* =========================================================
   11. MOBILE FONT ADJUSTMENT
========================================================= */

@media (max-width: 480px) {
  html {
    font-size: 93.75%; /* 15px */
  }
}
