/* MaleBalanceMethod - Core Styling */

:root {
  --color-forest-green: #143728;
  --color-beige: #F9F5EE;
  --color-teal: #7CA89E;
  --color-rust: #B35F3A;
  --color-white: #FFFFFF;
  --color-dark-gray: #2A2A2A;
  --color-light-gray: #EFEFEF;
}

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

html, body {
  font-family: 'Source Sans Pro', 'Calibre', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'EB Garamond', serif;
  font-weight: 700;
  color: var(--color-forest-green);
  margin: 30px 0 20px 0;
  line-height: 1.2;
}

h1 {
  font-size: 72px;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

h2 {
  font-size: 52px;
  letter-spacing: -0.015em;
  margin-bottom: 25px;
}

h3 {
  font-size: 32px;
  margin-bottom: 18px;
}

h4 {
  font-size: 24px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
  text-align: justify;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--color-forest-green) 0%, rgba(20, 55, 40, 0.95) 100%);
  color: var(--color-beige);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

header:not(.scrolled) {
  padding: 20px 0;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--color-beige);
}

.logo img {
  height: 45px;
  width: 45px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Georgia', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--color-beige);
  font-size: 16px;
  transition: color 0.3s ease, opacity 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

nav a:hover {
  color: var(--color-beige);
  opacity: 0.8;
  border-bottom-color: var(--color-rust);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .header-container {
    padding: 0 20px;
  }
}

main {
  margin-top: 80px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  padding: 150px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section.visual {
  padding: 200px 0;
}

.section-alt {
  background: linear-gradient(135deg, var(--color-beige) 0%, rgba(249, 245, 238, 0.7) 100%);
}

.hero {
  background: linear-gradient(135deg, var(--color-forest-green) 0%, rgba(20, 55, 40, 0.85) 100%), url('images/hero.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-beige);
  padding: 200px 40px;
  text-align: center;
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  color: var(--color-beige);
  font-size: 72px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.hero p {
  color: var(--color-beige);
  font-size: 20px;
  max-width: 700px;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

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

.card {
  background: var(--color-white);
  border: 2px solid var(--color-teal);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: var(--color-rust);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin-top: 0;
  color: var(--color-forest-green);
}

.card-content p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

.img-full-width {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--color-white);
  border: 1px solid var(--color-teal);
}

th {
  background: var(--color-forest-green);
  color: var(--color-beige);
  padding: 15px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--color-teal);
}

td {
  padding: 15px;
  border: 1px solid var(--color-teal);
  text-align: left;
}

tr:nth-child(even) {
  background: rgba(124, 168, 158, 0.08);
}

tr:hover {
  background: rgba(124, 168, 158, 0.15);
}

.list-numbered {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.list-numbered li {
  counter-increment: item;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
}

.list-numbered li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-rust);
  color: var(--color-beige);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.quote-italic {
  font-style: italic;
  color: var(--color-forest-green);
  border-left: 5px solid var(--color-rust);
  padding-left: 25px;
  margin: 30px 0;
  font-size: 18px;
  line-height: 1.8;
}

.disclaimer-box {
  background: rgba(179, 95, 58, 0.08);
  border-left: 5px solid var(--color-rust);
  padding: 25px;
  margin: 30px 0;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-dark-gray);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-forest-green) 0%, #0d251a 100%);
  color: var(--color-beige);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 55, 40, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 55, 40, 0.35);
  color: var(--color-beige);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-teal) 0%, #6b9389 100%);
  box-shadow: 0 4px 12px rgba(124, 168, 158, 0.25);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(124, 168, 158, 0.35);
}

footer {
  background: var(--color-forest-green);
  color: var(--color-beige);
  padding: 50px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-section h4 {
  color: var(--color-beige);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-beige);
  margin-bottom: 8px;
}

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

.footer-divider {
  border-top: 1px solid rgba(249, 245, 238, 0.2);
  margin: 30px 0;
  padding-top: 30px;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(249, 245, 238, 0.7);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-forest-green);
  color: var(--color-beige);
  padding: 20px 40px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  line-height: 1.6;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background: var(--color-rust);
  color: var(--color-white);
}

.cookie-accept:hover {
  background: #a34d32;
}

.cookie-reject {
  background: transparent;
  color: var(--color-beige);
  border: 2px solid var(--color-beige);
}

.cookie-reject:hover {
  background: rgba(249, 245, 238, 0.1);
}

.cookie-learn {
  background: transparent;
  color: var(--color-beige);
  border: 2px solid var(--color-beige);
  text-decoration: underline;
}

.cookie-learn:hover {
  background: rgba(249, 245, 238, 0.1);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  
  .cookie-banner button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

form {
  max-width: 600px;
  margin: 40px 0;
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-forest-green);
  font-size: 16px;
}

input[type="email"],
textarea {
  padding: 12px;
  border: 2px solid var(--color-teal);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.3s ease;
  background: var(--color-white);
  color: var(--color-dark-gray);
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-rust);
  box-shadow: 0 0 0 3px rgba(179, 95, 58, 0.1);
}

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

.faq-item {
  background: var(--color-beige);
  border-left: 5px solid var(--color-rust);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateX(5px);
}

.faq-item.active {
  background: rgba(179, 95, 58, 0.1);
  border-left-color: var(--color-forest-green);
}

.faq-question {
  font-weight: 700;
  color: var(--color-forest-green);
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 15px;
  color: var(--color-dark-gray);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.text-center {
  text-align: center;
}

.margin-top-large {
  margin-top: 50px;
}

.margin-bottom-large {
  margin-bottom: 50px;
}

.fade-in {
  animation: fadeIn 0.75s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  padding: 20px;
  padding-left: 50px;
  position: relative;
  margin-bottom: 30px;
  border-left: 3px solid var(--color-teal);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 30px;
  width: 24px;
  height: 24px;
  background: var(--color-rust);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-forest-green);
}

.timeline-item h4 {
  margin-top: 0;
  color: var(--color-rust);
  font-size: 18px;
}

.timeline-item p {
  margin-bottom: 0;
  font-size: 15px;
}

.success-message {
  background: rgba(124, 168, 158, 0.1);
  border-left: 5px solid var(--color-teal);
  padding: 25px;
  margin: 30px 0;
  border-radius: 4px;
  color: var(--color-forest-green);
  display: none;
}

.success-message.show {
  display: block;
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section.visual {
    padding: 100px 0;
  }
}
