/* ==============================================
   COMPONENTS — Object-Oriented CSS (OOCSS)
   Principle 1: Separate Structure from Skin
   Principle 2: Separate Container from Content
   ============================================== */


/* ----------------------------------------------
   STRUCTURE OBJECTS  (layout only, no colour)
   ---------------------------------------------- */

/* Centred max-width wrapper */
.o-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .o-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .o-container { padding-left: 2rem;   padding-right: 2rem;   } }

/* Standard vertical section rhythm */
.o-section {
  padding-top:    var(--section-py);
  padding-bottom: var(--section-py);
}

/* Centred section header block */
.o-section__header {
  text-align:     center;
  margin-bottom:  4rem;
}

/* Two-column content + aside layout */
.o-split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .o-split { grid-template-columns: 1fr 1fr; align-items: center; } }


/* ----------------------------------------------
   SKIN OBJECTS  (appearance only, no layout)
   ---------------------------------------------- */

/* ---- Buttons ---- */

.btn {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  gap:              0.5rem;
  font-weight:      700;
  border-radius:    9999px;
  border:           2px solid transparent;
  cursor:           pointer;
  text-decoration:  none;
  transition:       all 0.2s ease;
  white-space:      nowrap;
}
.btn:active { transform: scale(0.95); }

/* Size modifiers */
.btn--sm  { padding: 0.5rem 1.25rem;  font-size: 0.875rem; }
.btn--md  { padding: 1rem 2rem;       font-size: 1rem;     }
.btn--lg  { padding: 1.25rem 2.5rem;  font-size: 1.125rem; }
.btn--nav { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* Colour skins */
.btn--primary {
  background-color: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 106, 96, 0.2);
}
.btn--primary:hover { background-color: var(--c-primary-dark); }

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

.btn--light {
  background-color: var(--c-primary-light);
  color: var(--c-primary-dark);
}
.btn--light:hover { filter: brightness(1.1); }

.btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover { background-color: rgba(255, 255, 255, 0.1); }

.btn--ghost-sm {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}
.btn--ghost-sm:hover { background-color: rgba(255, 255, 255, 0.2); }

.btn--form {
  width: 100%;
  background-color: var(--c-primary);
  color: #ffffff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 106, 96, 0.2);
}
.btn--form:hover {
  background-color: var(--c-primary-dark);
  box-shadow: 0 12px 28px rgba(0, 106, 96, 0.25);
  transform: translateY(-1px);
}


/* ---- Cards ---- */

/* Structure */
.card {
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* Skin: light surface */
.card--light {
  background-color: var(--c-surface-low);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card--light:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 106, 96, 0.12);
}

/* Skin: dark / on dark backgrounds */
.card--dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}
.card--dark:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Skin: glassmorphism */
.card--glass {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
}

/* Skin: pricing neutral */
.card--pricing {
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, transform 0.3s ease, box-shadow 0.3s ease;
}
.card--pricing:hover {
  border-color: rgba(0, 106, 96, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 106, 96, 0.1);
}

/* Skin: pricing featured */
.card--pricing-featured {
  background-color: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 106, 96, 0.2);
  position: relative;
}


/* ---- Section labels & headings ---- */

.section-label {
  display: block;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-label--light { color: var(--c-primary-light); }

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-on-surface);
  line-height: 1.2;
}
@media (min-width: 1024px) { .section-heading { font-size: 3rem; } }

.section-heading--light { color: #ffffff; }

.section-body {
  color: var(--c-on-surface-variant);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-top: 1rem;
}
.section-body--light { color: rgba(255, 255, 255, 0.7); }


/* ---- Hero ---- */

/* Legacy class used directly in index.html hero section */
.hero-gradient {
  background: linear-gradient(135deg, #006a60 0%, #004d45 40%, #001e2d 100%);
}

/* Used in login.html left panel */
.bg-hero {
  background: linear-gradient(135deg, #006a60 0%, #004d45 50%, #001e2d 100%);
}

/* Glassmorphism — used on hero stat cards in index.html */
.glass {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
}

.hero {
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero--gradient {
  background: linear-gradient(135deg, #006a60 0%, #004d45 40%, #001e2d 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero--dark {
  background-color: var(--c-on-surface);
  padding-top:    6rem;
  padding-bottom: 6rem;
}

.hero__badge {
  display:      inline-flex;
  align-items:  center;
  gap:          0.5rem;
  padding:      0.375rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border:       1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size:    0.75rem;
  font-weight:  700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__title-accent {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, #72feeb, #49dcca);
}

.status-dot {
  display: inline-block;
  width:  0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--c-primary-light);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ---- Navigation ---- */

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary-container);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-mobile-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  text-decoration: none;
}
.nav-mobile-item:hover { background-color: rgba(0, 106, 96, 0.3); }

.nav-mobile-item--active {
  color: var(--c-primary-container);
  background-color: rgba(0, 106, 96, 0.3);
  font-weight: 600;
}


/* ---- Footer ---- */

.footer-heading {
  font-weight:    700;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          #cbd5e1;
  margin-bottom:  1.25rem;
}

.footer-link {
  color:           inherit;
  text-decoration: none;
  transition:      color 0.2s;
}
.footer-link:hover { color: var(--c-primary-light); }

.social-btn {
  width:  2.25rem;
  height: 2.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius:    9999px;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  color:            inherit;
  transition:       background-color 0.2s;
  text-decoration:  none;
}
.social-btn:hover { background-color: var(--c-primary); }


/* ---- Forms ---- */

.form-label {
  display:      block;
  font-size:    0.875rem;
  font-weight:  600;
  color:        var(--c-on-surface);
  margin-bottom: 0.5rem;
}

.form-input {
  width:            100%;
  background-color: var(--c-surface-low);
  border:           1px solid #e2e8f0;
  border-radius:    0.75rem;
  padding:          0.875rem 1rem;
  font-size:        1rem;
  color:            var(--c-on-surface);
  transition:       border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline:     none;
  border-color: var(--c-primary);
  box-shadow:  0 0 0 3px rgba(0, 106, 96, 0.15);
}


/* ---- Badges / tags ---- */

.badge {
  display:        inline-flex;
  align-items:    center;
  padding:        0.25rem 0.75rem;
  border-radius:  9999px;
  font-size:      0.75rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--primary { background-color: rgba(0, 106, 96, 0.1); color: var(--c-primary); }
.badge--light   { background-color: rgba(114, 254, 235, 0.15); color: var(--c-primary-container); }


/* ---- KPI / stat block ---- */

.stat-value {
  font-size:      2.5rem;
  font-weight:    800;
  letter-spacing: -0.02em;
  color:          var(--c-primary);
  line-height:    1;
}
.stat-label {
  font-size:   0.875rem;
  color:       var(--c-on-surface-variant);
  margin-top:  0.25rem;
}

/* Feature-check icon colour */
.feature-check { color: var(--c-primary); }

/* Surface skin helpers */
.surface-dark  { background-color: var(--c-on-surface); color: #ffffff; }
.surface-light { background-color: var(--c-surface); }
.surface-low   { background-color: var(--c-surface-low); }
