/* IRTEBRA - Institutional Knowledge Portal */
/* Design System: Deep Forest Green, Muted Gold, Charcoal Grey, Soft Cream */

:root {
  --primary: #1A431A;
  --accent: #C7A77C;
  --secondary: #36454F;
  --background: #F8F7F2;
  --text-dark: #1A1A1A;
  --text-light: #36454F;
  --border-light: #E8E6E1;
  --spacing-unit: 16px;
  --base-font-size: 16px;
  --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-font: 'Merriweather', 'Georgia', serif;
}

/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  color: var(--primary);
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 2);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 1.75);
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  line-height: 1.8;
  color: var(--text-dark);
}

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

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

/* LAYOUT CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.container-full {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* HEADER & NAVIGATION */
header {
  background-color: var(--primary);
  color: white;
  padding: calc(var(--spacing-unit) * 1.5) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
}

.logo {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 0.75);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--heading-font);
}

.logo img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 2);
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* FOOTER */
footer {
  background-color: var(--secondary);
  color: white;
  padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  margin-top: calc(var(--spacing-unit) * 6);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: #E8E6E1;
  line-height: 1.8;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: calc(var(--spacing-unit) * 2);
  text-align: center;
  color: #B0AAAA;
  font-size: 0.9rem;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, rgba(26, 67, 26, 0.85) 0%, rgba(26, 67, 26, 0.7) 100%), url('../images/hero-wellness.jpg') center/cover no-repeat;
  color: white;
  padding: calc(var(--spacing-unit) * 8) var(--spacing-unit) calc(var(--spacing-unit) * 6);
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.hero p {
  color: #F8F7F2;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto calc(var(--spacing-unit) * 2);
}

/* SECTIONS */
section {
  padding: calc(var(--spacing-unit) * 5) var(--spacing-unit);
}

.section-dark {
  background-color: var(--primary);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: var(--accent);
}

.section-accent {
  background-color: var(--accent);
  color: var(--primary);
}

.section-accent h2,
.section-accent h3 {
  color: var(--primary);
}

.section-grey {
  background-color: var(--secondary);
  color: white;
}

.section-grey h2,
.section-grey h3 {
  color: var(--accent);
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}

/* IMAGE STYLING */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.image-full {
  width: 100%;
  height: auto;
}

/* CARDS */
.card {
  background: white;
  border-radius: 4px;
  padding: calc(var(--spacing-unit) * 2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.card img {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  border-radius: 4px;
}

.card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-unit);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 0.85) calc(var(--spacing-unit) * 2.5);
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 4px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--primary);
}

/* SPACING */
.mt-1 { margin-top: var(--spacing-unit); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 3); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 4); }
.mt-5 { margin-top: calc(var(--spacing-unit) * 5); }

.mb-1 { margin-bottom: var(--spacing-unit); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 3); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 4); }
.mb-5 { margin-bottom: calc(var(--spacing-unit) * 5); }

.py-2 { padding: calc(var(--spacing-unit) * 2) 0; }
.py-3 { padding: calc(var(--spacing-unit) * 3) 0; }
.py-4 { padding: calc(var(--spacing-unit) * 4) 0; }
.py-5 { padding: calc(var(--spacing-unit) * 5) 0; }

.px-2 { padding: 0 calc(var(--spacing-unit) * 2); }
.px-3 { padding: 0 calc(var(--spacing-unit) * 3); }
.px-4 { padding: 0 calc(var(--spacing-unit) * 4); }

/* TEXT UTILITIES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.text-small { font-size: 0.9rem; }
.text-large { font-size: 1.25rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* LISTS */
ul, ol {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  margin-left: calc(var(--spacing-unit) * 2);
}

li {
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  line-height: 1.8;
}

/* FORMS */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

label {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  font-weight: 500;
  color: var(--text-dark);
  font-family: var(--heading-font);
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
  width: 100%;
  padding: calc(var(--spacing-unit) * 0.75);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 67, 26, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* DISCLAIMER SECTION */
.disclaimer {
  background-color: #F0EDE6;
  border-left: 4px solid var(--accent);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 4px;
  margin: calc(var(--spacing-unit) * 3) 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.disclaimer strong {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    gap: var(--spacing-unit);
    width: 100%;
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container,
  .container-full {
    padding: 0 var(--spacing-unit);
  }
}
