/* root.css */

:root {
  /* Brand Colors */
  --primary-color: #46A5A1;         /* Teal – Brand / Headers / Nav */
  --accent-color: #E45864;          /* Coral Red – Primary CTA / Highlights */
  --secondary-accent: #008292;      /* Inland Lush – Secondary CTA / Icons (unchanged) */

  /* Backgrounds & Surfaces */
  --bg-main: #F0EFED;               /* White Glove – Main background */
  --bg-alt: #CDE0E1;                /* Beach Foam – Alternating sections/cards */
  --bg-highlight: #E3CCDC;          /* Naughty Marietta – Card or hover surface */

  /* Text & Typography */
  --text-color: #2E384D;            /* Navy – Default body text */
  --heading-color: var(--primary-color); /* Use primary for headings */

  /* Status Colors (Optional Enhancements) */
  --success-color: #00BFA6;         /* Teal Edge – Positive status */
  --error-color: #F94C10;           /* Safety Coral – Error/warning indicators */

  /* Borders / Dividers */
  --border-color: #CCCCCC;
  --border-soft: #E0E0E0;

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, var(--bg-highlight), var(--bg-alt));

  /* Typography */
  --font-heading: 'Inter', sans-serif;    
  --font-body: 'Nunito', sans-serif;
}

  
  /* Base Styles */
  body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-top: 0;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  section {
    padding: 4rem 0;
  }
  
  a {
    color: var(--accent-color);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1001; /* higher than nav menu */
    background-color: var(--bg-alt); /* ensures it's not transparent */
  }
  .site-header.scrolled {
    box-shadow: 0 2px 4px var(--secondary-accent);
    transition: box-shadow 0.3s ease;
  }
  
  
/* === Buttons === */

.btn-primary {
  background-color: var(--accent-color);       /* Coral Red */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.btn-secondary {
  background-color: var(--secondary-accent);   /* Inland Lush */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.btn-neutral {
  background-color: var(--bg-main);            /* Matches background */
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary-accent);
  color: var(--secondary-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* === Planning Document Buttons (Theme-Coordinated) === */

.btn-business {
  background-color: #E45864; /* matches --accent-color */
  color: #fff;
}

.btn-objectives {
  background-color: #46A5A1; /* matches --primary-color */
  color: #fff;
}

.btn-constraints {
  background-color: #008292; /* matches --secondary-accent */
  color: #fff;
}

.btn-scope {
  background-color: var(--error-color); 
  color: #fff;
}

/* Hover State - slightly darker tone */
.btn-business:hover {
  background-color: #cf4c58;
}

.btn-objectives:hover {
  background-color: #3c8e8a;
}

.btn-constraints:hover {
  background-color: #006b75;
}

.btn-scope:hover {
  background-color: #b36775;
}


/* Shared hover effect */
.btn-primary:hover,
.btn-secondary:hover,
.btn-neutral:hover,
.btn-outline:hover,
.btn-business:hover,
.btn-objectives:hover,
.btn-constraints:hover,
.btn-scope:hover {
  opacity: 0.9;
}

  
  
  /* Hero Layout */
  .hero {
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--accent-color); /* #008292 – clean and brand-aligned */
  }
  
  
  .hero-content p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-color); /* Already navy, works great over --bg-alt */
    max-width: 700px;
  }
  
  
  .hero-image img {
    max-width: 100%;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* allow buttons to wrap on smaller screens */
    margin-top: 2rem;
    margin-left: 50px; /* reset left margin */
    justify-content: start;
  }
  
  
  /* === About Section === */

.about-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-logo {
  max-width: 100px;
  height: auto;
}

.section-heading {
  font-size: 2rem;
  color: var(--heading-color);
  margin: 0;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* === Features Section === */

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
  background-color: var(--bg-main);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  max-width: 700px;
  margin: 0 auto;
}

.feature-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-top i {
  width: 56px;
  height: 56px;
  stroke: var(--primary-color);
  stroke-width: 1.75;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--secondary-accent);
}

.feature-item p {
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-image img {
  max-width: 80%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* === Contribute Section === */
.contribute-section {
  background-color: var(--bg-highlight);
  text-align: center;
}

.contribute-section h2 {
  color: var(--heading-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contribute-section p {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

.contribute-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


  
  /* Footer */
  .site-footer {
    background: var(--text-color);
    color: #ccc;
    font-size: 0.9rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid #333;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 1rem;
  }
  
  .footer-container div {
    flex: 1 1 200px;
  }
  
  .footer-links a,
  .footer-right a,
  .footer-left a {
    color: #ccc;
    margin-right: 1rem;
    text-decoration: none;
  }
  
  .footer-links a:hover,
  .footer-right a:hover,
  .footer-left a:hover {
    color: #fff;
  }
  
  .footer-middle {
    text-align: center;
    flex: 1 1 100%;
  }
  
  .footer-right {
    text-align: right;
  }

  .footer-logo img {
    max-height: 100px;
    display: inline-block;
  }
  
  
/* Navigation */
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: var(--bg-alt);
  position: relative; /* added to anchor mobile nav */
}
.logo img {
  max-height: 75px;
  width: auto;
  margin-left: 50px;
}
.main-nav {
  display: flex;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  margin-right: 50px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
}
.main-nav a:hover {
  color: var(--accent-color);
}

/* Responsive Header */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: none;
  color: var(--text-color);
}
.menu-toggle i {
  width: 32px;
  height: 32px;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-alt);
    z-index: 1000;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
}

/* Hero */

@media (max-width: 768px) {
  .hero-image {
    display: none;
  }
}

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

@media (max-width: 500px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem; /* prevent edge collisions */
  }

  .hero-buttons a {
    width: 100%;
    box-sizing: border-box;
  }
}



/* Footer */
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    padding: 0; /* critical: no padding to avoid wrap */
    margin: 0;
  }

  .footer-left {
    order: 1;
    width: 66.66%;
    max-width: 66.66%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .footer-right {
    order: 2;
    width: 33.33%;
    max-width: 33.33%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .footer-middle {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
  }

  .footer-left p,
  .footer-right p,
  .footer-middle p {
    margin: 0.15rem 0;
    font-size: 0.85rem;
  }

  .footer-logo img {
    max-height: 50px;
  }
}

/* === Vision Statement Hero Section (Two Column Layout) === */

.vision-statement.hero-section {
  background: var(--hero-gradient);
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.vision-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-logo {
  max-height: 240px;
  width: auto;
}

.vision-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.vision-text p {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vision-logo {
    max-height: 90px;
    margin-bottom: 1.5rem;
  }
}

/* === Sub-heading === */
.doc-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  text-align: left;
}

/* === Doc Buttons === */
.doc-icon-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.doc-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1rem;
  border: 1.5px solid var(--success-color);
  border-radius: 8px;
  background-color: transparent;
  color: var(--accent-color); /* link color */
  font-weight: 600;
  min-width: 100px;
  flex: 1 1 auto;
  max-width: 140px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.doc-icon-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  cursor: pointer;
}

.doc-icon-btn i {
  width: 28px;
  height: 28px;
  stroke: var(--secondary-accent); /* distinct brand-accent */
  stroke-width: 2.5;
}

/* === Responsive Vision Hero Section for Mobile === */
@media (max-width: 768px) {
  .vision-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .vision-logo-wrap {
    justify-content: center;
  }

  .vision-text {
    padding: 0 1rem;
  }

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

  .doc-icon-buttons {
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .doc-icon-btn {
    flex: 0 1 45%;
    min-width: unset;
    max-width: 140px;
  }
}

/* === Typography Adjustments for Vision Section on Mobile === */
@media (max-width: 768px) {
  .vision-text h2 {
    font-size: 1.75rem;
  }

  .vision-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .doc-heading {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .doc-icon-btn span {
    font-size: 0.9rem;
  }

  .doc-icon-btn i {
    width: 24px;
    height: 24px;
  }

  .doc-icon-btn {
    padding: 0.75rem;
    max-width: 120px;
  }
}

.vision-logo {
  max-height: 240px; /* perfect on desktop */
}

@media (max-width: 768px) {
  .vision-logo {
    max-height: 140px; /* ⬅️ Bump this up from 90px */
    margin-bottom: 1.5rem;
  }
}

/* === Concept Overview Section === */
.concept-section {
  padding: 4rem 2rem;
  background-color: var(--bg-main);
}

.concept-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--heading-color);
}

/* === Grid Layout: 2 Columns on Top, Full Width Below === */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Flip Setup === */
.block-problem {
  perspective: 1200px;
  position: relative;
  overflow: visible;
  grid-column: 1 / 2;
}

.flip-inner {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  position: relative;
  min-height: 250px;     /* Adjust based on expected content */
  height: auto;
  perspective: 1000px;
}


.block-problem.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  overflow: hidden;
}


/* === FRONT: Problem Block === */
.flip-front {
  background-color: var(--bg-alt);
  border: 4px solid var(--bg-highlight);
  border-radius: 8px;
  opacity: 1;
  z-index: 2;
  font-weight: 450;
  backface-visibility: hidden;
}

.flip-front h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.flip-front ul {
  padding-left: 1.25rem;
  margin: 0;
}

.flip-front li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-color);
}

.flip-front,
.flip-back {
  min-height: 200px; /* or max expected height */
}


/* === BACK: Quote Block === */
.flip-back {
  backface-visibility: hidden;
  background: transparent;
  border: none;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.quote-content {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
  font-style: italic;
  max-width: 540px;
  text-align: center;
  margin: 0 auto;
  padding: 0;
}

/* === App Block === */
.block-app {
  grid-column: 2 / 3;
  transform: translateX(60%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-color: var(--bg-main);
  border-radius: 8px;
}

.block-app.visible {
  transform: translateX(0);
  opacity: 1;
}

.block-app h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.block-app ul {
  padding-left: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.block-app li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--primary-color);
  font-weight: 600;
}

.app-logo {
  height: 42px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* === Audience Block === */
.block-audience {
  grid-column: 1 / 3;
  display: flex;
  align-items: stretch;
  gap: 2rem;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 1s ease, transform 0.5s ease;
}

.block-audience.visible {
  transform: scale(1);
  opacity: 1;
}

.audience-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* match height of parent */
}


.audience-image {
  flex: 0 0 40%;
  max-width: 100%;
}

.audience-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

 
/* === Responsive === */
@media (max-width: 768px) {
  .concept-section h2 {
    font-size: 1.5rem;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .block-problem,
  .block-app,
  .block-audience {
    grid-column: 1 / -1;
  }

  .flip-face {
    padding: 1.25rem;
  }

  .block-audience {
    flex-direction: column;
  }

  .audience-image {
    width: 100%;
    margin-top: 1.5rem;
  }

  .quote-content {
    font-size: 1.4rem;
  }
}

/* === Advantages Section === */
.advantages-section {
  background: var(--bg-main);
  padding: 4rem 2rem;
  text-align: center;
}

.advantages-section h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 3rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.advantage-item {
  background-color: var(--bg-alt);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-6px);
}

.advantage-item img {
  max-width: 100px;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.advantage-item h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.advantage-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* === Coming Soon Modal === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background-color: var(--bg-main);
  color: var(--text-color);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-family: var(--font-heading);
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: var(--font-body);
}


/* === Documentation Tabs Section === */
.docs-tabs {
  background-color: var(--bg-main);
  padding: 2rem;
}

.tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--border-soft);
  margin-bottom: 2rem;
}

.tab-link {
  background-color: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
  color: var(--accent-color);
}

.tab-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  min-height: 300px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-soft);
  padding: 2rem;
  border-radius: 8px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Markdown Styling Inside Tabs */
.tab-panel h1,
.tab-panel h2,
.tab-panel h3 {
  color: var(--heading-color);
  font-family: var(--font-heading);
}

.tab-panel p,
.tab-panel li {
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tab-panel ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.tab-panel code,
.tab-panel pre {
  background-color: var(--bg-highlight);
  color: var(--text-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: monospace;
}

.tab-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-main);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tab-panel th,
.tab-panel td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-color);
  background-color: var(--bg-main);
}

.tab-panel th {
  background-color: var(--bg-highlight);
  color: var(--heading-color);
  font-weight: 600;
  font-family: var(--font-heading);
}

.tab-panel tr:nth-child(even) td {
  background-color: var(--bg-alt);
}

.tab-panel tr:hover td {
  background-color: var(--bg-highlight);
  transition: background-color 0.2s ease;
}