/* BASE.CSS - Global styles, fonts, and base layout */

@font-face {
  font-family: 'OpenSans';
  src: url('/fonts/OpenSans-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('/fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('/fonts/OpenSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

/* Global reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'OpenSans', Arial, sans-serif;
  background: #fcfbf8; /* varm neutral base */
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Subtle 6-point beige background using layered radial-gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #fcfbf8;
  background-image:
  /* very faint green wash near the top to blend with the header */
  linear-gradient(180deg, rgba(15,122,64,0.06) 0%, rgba(255,255,255,0) 18%),
    radial-gradient(1100px 520px at 12% 18%, rgba(247,244,238,0.48) 0%, rgba(247,244,238,0) 38%),
    radial-gradient(950px 480px at 28% 78%, rgba(252,247,240,0.42) 0%, rgba(252,247,240,0) 44%),
    radial-gradient(850px 420px at 50% 42%, rgba(249,244,238,0.35) 0%, rgba(249,244,238,0) 48%),
    radial-gradient(700px 360px at 72% 70%, rgba(255,250,245,0.28) 0%, rgba(255,250,245,0) 52%),
    radial-gradient(620px 320px at 86% 24%, rgba(247,241,233,0.22) 0%, rgba(247,241,233,0) 56%),
    radial-gradient(520px 280px at 60% 14%, rgba(255,253,250,0.18) 0%, rgba(255,253,250,0) 62%);
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity .4s ease;
}

/* Common layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'OpenSans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0f7a40, #138f4a);
  color: white;
  box-shadow: 0 2px 4px rgba(15, 122, 64, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d6b38, #117a41);
  box-shadow: 0 4px 8px rgba(15, 122, 64, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #0f7a40;
  border: 2px solid #0f7a40;
}

.btn-secondary:hover {
  background: #0f7a40;
  color: white;
}

/* Common text styles */
h1, h2, h3, h4 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem 0;
}

/* Color utilities */
.green-text {
  color: #0f7a40;
}

/* Spacing helpers for header */
body > .fh-page, 
body > #root > .fh-page { 
  padding-top: 100px; 
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'OpenSans', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0f7a40;
  box-shadow: 0 0 0 2px rgba(15, 122, 64, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .container {
    padding: 0 0.5rem;
  }
  
  body > .fh-page, 
  body > #root > .fh-page { 
    padding-top: 80px; 
  }
}
