@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Jost:wght@400;500;600;700&display=swap');

:root {
  --it-sage: #283618;
  --it-moss: #606c38;
  --it-parchment: #fefae0;
  --it-sand: #dda15e;
  --it-terracotta: #bc6c25;
  --it-text: #283618;
  --it-border: #e9edc9;
  --it-font-head: 'Cinzel', serif;
  --it-font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--it-font-body);
  background-color: var(--it-parchment);
  color: var(--it-text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.it-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.it-header {
  background: rgba(254, 250, 224, 0.96);
  border-bottom: 1px solid var(--it-border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(6px);
}
.it-navbar {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
}
.it-brand {
  font-family: var(--it-font-head); font-size: 1.6rem; font-weight: 800; color: var(--it-sage);
  letter-spacing: 1.5px;
}
.it-brand span { color: var(--it-terracotta); }
.it-nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.it-nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--it-sage); transition: color 0.2s; }
.it-nav-links a:hover, .it-nav-links a.active { color: var(--it-terracotta); }

.it-btn-reserve {
  background: var(--it-sage); color: var(--it-parchment);
  padding: 12px 24px; border-radius: 30px; font-weight: 600;
  font-family: var(--it-font-body); transition: background 0.2s;
}
.it-btn-reserve:hover { background: var(--it-moss); }
.it-toggle { display: none; background: none; border: 1px solid var(--it-border); padding: 6px 12px; cursor: pointer; }

.it-hero {
  background: linear-gradient(rgba(40, 54, 24, 0.82), rgba(40, 54, 24, 0.88)), url('../img/photo-feb0175f.jpg') center/cover;
  color: #ffffff; padding: 110px 0; text-align: center;
}
.it-hero-sub {
  font-family: var(--it-font-head); font-size: 0.85rem; letter-spacing: 3px; color: var(--it-sand);
  text-transform: uppercase; margin-bottom: 16px; display: inline-block;
}
.it-hero-title {
  font-family: var(--it-font-head); font-size: 3.2rem; font-weight: 700; margin-bottom: 20px;
  line-height: 1.2;
}
.it-hero-desc {
  max-width: 680px; margin: 0 auto 36px; font-size: 1.15rem; color: #faedcd;
}

.it-section { padding: 80px 0; }
.it-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.it-card {
  background: #ffffff; border: 1px solid var(--it-border); border-radius: 12px;
  padding: 30px; box-shadow: 0 4px 6px rgba(40, 54, 24, 0.04);
}
.it-card-title {
  font-family: var(--it-font-head); font-size: 1.3rem; color: var(--it-sage); margin-bottom: 10px;
}

.it-guide-box {
  background: #ffffff; border: 1px solid var(--it-border); border-radius: 14px;
  padding: 40px; max-width: 800px; margin: 0 auto;
}
.it-meter-val {
  font-family: var(--it-font-head); font-size: 1.8rem; color: var(--it-terracotta); font-weight: 700;
}

.it-footer {
  background: var(--it-sage); color: #dcd9c0; padding: 70px 0 24px; font-size: 0.9rem;
}
.it-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.it-footer-title {
  font-family: var(--it-font-head); color: #ffffff; font-size: 1.1rem; margin-bottom: 16px;
}
.it-footer-links { list-style: none; }
.it-footer-links li { margin-bottom: 10px; }
.it-footer-links a:hover { color: var(--it-sand); }

@media (max-width: 768px) {
  .it-toggle { display: block; }
  .it-nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--it-parchment); flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--it-border);
  }
  .it-nav-links.show { display: flex; }
  .it-grid-3 { grid-template-columns: 1fr; }
  .it-footer-grid { grid-template-columns: 1fr; }
  .it-hero-title { font-size: 2.2rem; }
}

.it-matrix-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.it-matrix-cell {
  background: #ffffff;
  border: 1px solid var(--it-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(40, 54, 24, 0.03);
}
.it-matrix-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--it-sand);
  margin-bottom: 8px;
  display: block;
}
.it-matrix-title {
  font-family: var(--it-font-head);
  font-size: 1.35rem;
  color: var(--it-sage);
  margin-bottom: 12px;
}
.it-botanical-glossary {
  background: #ffffff;
  border: 1px solid var(--it-border);
  border-radius: 10px;
  overflow: hidden;
}
.it-glossary-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--it-border);
  align-items: center;
  font-size: 0.92rem;
}
.it-glossary-row:last-child { border-bottom: none; }
.it-glossary-row:nth-child(even) { background: #faf8f0; }
.it-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.it-faq-item {
  background: #ffffff;
  border: 1px solid var(--it-border);
  border-radius: 8px;
  padding: 24px;
}
.it-faq-item h4 {
  font-family: var(--it-font-head);
  font-size: 1.15rem;
  color: var(--it-sage);
  margin-bottom: 10px;
}
@media (max-width: 992px) {
  .it-matrix-2x2 { grid-template-columns: 1fr; }
  .it-glossary-row { grid-template-columns: 1fr; gap: 8px; }
  .it-faq-grid { grid-template-columns: 1fr; }
}

/* Header CTA button contrast fix */
.it-nav-links a.it-btn-reserve, header .it-btn-reserve { color: #ffffff !important; background: var(--it-sage) !important; padding: 10px 20px !important; border-radius: 6px !important; display: inline-block !important; }
.it-nav-links a.it-btn-reserve:hover { background: var(--it-terracotta) !important; color: #ffffff !important; }

/* --- Mobile Viewport & Header Perfection --- */
.it-navbar { padding: 16px 24px !important; }
@media (max-width: 992px) {
  .it-navbar { padding: 14px 20px !important; }
  .it-brand { font-size: 1.35rem !important; }
  .it-toggle {
    display: flex !important; align-items: center; justify-content: center;
    padding: 8px 14px !important; margin-left: auto !important;
  }
  .it-nav-links {
    position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important;
    width: 100% !important; background: var(--it-parchment) !important; z-index: 9999 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important; padding: 20px !important;
  }
  .it-nav-links.show, .it-nav-links.open { display: flex !important; }
  input, select, textarea { font-size: 16px !important; }
}


html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

.resp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.resp-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.resp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.resp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.fa-table-wrap,
.ga-table-responsive,
.re-table-wrap,
.sbg-table-wrap,
.iw-table-wrap,
.vo-matrix-wrap,
.wb-fund-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  header > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  header a[class*="brand"],
  header a[class*="logo"] {
    font-size: 1.25rem !important;
    margin-right: auto !important;
  }
  
  header button {
    margin-left: auto !important;
  }
  
  .resp-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .resp-stats-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .resp-grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  
  .resp-form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 600px) {
  .resp-grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  h1 {
    font-size: 1.95rem !important;
    line-height: 1.25 !important;
  }
  
  h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  
  input, select, textarea {
    font-size: 16px !important;
  }
}
