/* ========================================================================== */
/* Design Tokens                                                              */
/* ========================================================================== */

:root {
  /* Brand Colours */
  --color-bg:           rgb(228, 228, 222);
  --color-bg-muted:     rgb(201, 201, 192);
  --color-green-dark:   #212a15;
  --color-green:        #3a4b1e;
  --color-green-mid:    #4b5c35;
  --color-green-icon:   #4c6328;
  --color-surface-dark: #353a2d;
  --color-accent:       #ffbb00;
  --color-accent-hover: #e6a800;

  /* Border Radius */
  --radius-card:    20px;   /* cards, images, large containers */
  --radius-element: 12px;   /* info boxes, FAQ items, mid-size components */
  --radius-button:   8px;   /* buttons and form inputs */
  --radius-pill:   999px;   /* badge and pill shapes */

  /* Spacing */
  --section-y:   100px;   /* section top/bottom padding */
  --section-x:    30px;   /* section side padding */
  --header-gap:   40px;   /* gap between section heading and first content element */
}


/* ========================================================================== */
/* Base / Global Styles                                                       */
/* ========================================================================== */

body,
html {
  overflow-x: hidden;
}

html, body { scroll-behavior: smooth; }

* {
  -webkit-tap-highlight-color: transparent;
  margin: 0; padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  font-family: "Josefin Sans", sans-serif;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Syne", sans-serif;
}

h1 {
  font-size: 4.3rem;
  line-height: 5rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.4rem;
}

h5 {
  font-size: 1.5rem;
}

p,
span,
li {
  font-size: 1rem;
  font-weight: 400;
  font-family: "Josefin Sans", sans-serif;
  color: black;
  line-height: 1.2rem;
}

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

a:hover {
  color: #555;
}

a:active {
  color: #333;
}

/* Primary Button */

.button-link {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  display: inline-block;
  border: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
  color: black;
  background-color: var(--color-accent);
}

.button-link:hover {
  background-color: var(--color-accent-hover);
  color: black;
}

.button-link:active {
  transform: scale(0.95);
}

.button-link:focus {
  outline: none;
  transform: scale(1.05);
}

/* Secondary Button */

.button-link-secondary {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  display: inline-block;
  border: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-link-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.button-link-secondary:active {
  transform: scale(0.95);
}

.button-link-secondary:focus {
  outline: none;
  transform: scale(1.05);
}

.button-link-secondary-darker {
  background-color: rgba(147, 147, 147, 0.8);
}




.section-title {
  font-size: 1.2rem;
  padding-bottom: 10px;
  color: var(--color-green-icon);
}

.section-subtitle {
  margin-bottom: var(--header-gap);
  font-size: 3rem;
  color: black;
  font-weight: bold;
}


/* -- Base: responsive (≤1400px) -------------------------------------------- */
@media (max-width: 1400px) {
  h1 {
    font-size: 4rem;
    line-height: 5.2rem;
  }
  h2 {
    font-size: 3.8rem;
  }
  h3 {
    font-size: 2.7rem;
  }
  h4 {
    font-size: 2.2rem;
  }
  h5 {
    font-size: 1.3rem;
  }
  a {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
  .section-subtitle {
    font-size: 2.8rem;
  }

  /* modal belongs to the page globally */
  .modal-content {
    width: 70%;
  }
}

/* -- Base: responsive (≤1024px) -------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-y:  60px;
    --header-gap: 30px;
  }

  h1 {
    font-size: 3.2rem;
    line-height: 4.8rem;
  }
  h2 {
    font-size: 3.5rem;
  }
  h3 {
    font-size: 2.5rem;
  }
  h4 {
    font-size: 2rem;
  }
  h5 {
    font-size: 1.2rem;
  }
  a,
  p {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1rem;
  }
  .section-subtitle {
    font-size: 2.4rem;
  }
}

/* -- Base: responsive (≤768px) --------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-y:  50px;
    --header-gap: 26px;
  }

  h1 {
    font-size: 2.6rem;
    line-height: 4rem;
  }
  h2 {
    font-size: 2.6rem;
  }
  h3 {
    font-size: 2.2rem;
  }
  h4 {
    font-size: 1.7rem;
  }
  h5 {
    font-size: 1rem;
  }

  a,
  p {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 0.9rem;
  }
  .section-subtitle {
    font-size: 2rem;
  }
}

/* -- Base: responsive (≤440px) --------------------------------------------- */
@media (max-width: 500px) {
  :root {
    --section-y:  40px;
    --section-x:  20px;
    --header-gap: 22px;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 3.2rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  h4 {
    font-size: 1.5rem;
  }
  h5 {
    font-size: 1rem;
  }

  a,
  p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 0.9rem;
  }
  .section-subtitle {
    font-size: 1.7rem;
    line-height: 2.2rem;
  }
}
