/* ============================================
   Base Styles — reset, typography, buttons
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  color: var(--color-navy);
  background: var(--color-accent-yellow);
}

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

a {
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-yellow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent-yellow);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

/* --- Headings --- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-heading);
}

h1 {
  font-size: clamp(44px, 6vw, var(--fs-h1));
  line-height: var(--lh-h1);
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(34px, 4vw, var(--fs-h2));
  line-height: var(--lh-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
}

h5 {
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
}

h6 {
  font-family: var(--font-accent);
  font-size: var(--fs-h6);
  font-weight: 700;
  line-height: var(--lh-h6);
  color: var(--color-primary);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-button);
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 14px 28px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 0 rgba(27, 46, 166, 0.16);
}

.btn:hover {
  background-color: var(--color-button-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 189, 235, 0.4);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-button);
  color: var(--color-heading);
}

.btn--outline:hover {
  background-color: var(--color-button);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-heading);
}

.btn--white:hover {
  background-color: var(--color-button);
  color: var(--color-white);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* --- Forms --- */

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-form-text);
  background-color: var(--color-white);
  border: 2px solid var(--color-form-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input, select {
  min-height: 50px;
}

input:focus, textarea:focus, select:focus {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(102, 189, 235, 0.18);
}

label {
  font-family: var(--font-label);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-heading);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.form-note {
  margin-top: 12px;
  color: var(--color-body);
  font-size: 13px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Accent Label (small decorative text above headings) --- */

.accent-label {
  font-family: var(--font-accent);
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Responsive Typography --- */

@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 18px; }
  body { font-size: 15px; }
}

@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 18px; }
  h5 { font-size: 14px; }
  h6 { font-size: 18px; }
  body { font-size: 14px; }
}

/* --- Star Label (section accent label with star prefix) --- */
.star-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.star-label::before {
  content: '✦ ';
  color: var(--color-accent-yellow);
}
