/* ============================================
   NWK-BSAC Design System v2 — Components
   Cards, buttons, badges, forms, etc.
   ============================================ */

/* === Buttons === */
.nwk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.nwk-btn--lg {
  font-size: var(--text-lg);
  padding: 16px 40px;
}

.nwk-btn--sm {
  font-size: var(--text-sm);
  padding: 10px 20px;
}

/* Coral CTA — primary call to action */
.nwk-btn--coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.nwk-btn--coral:hover {
  background: #e0663b;
  border-color: #e0663b;
  color: var(--white);
  box-shadow: var(--shadow-glow-coral);
  transform: translateY(-1px);
}

/* Ocean — primary brand button */
.nwk-btn--ocean {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.nwk-btn--ocean:hover {
  background: #00334f;
  border-color: #00334f;
  color: var(--white);
  transform: translateY(-1px);
}

/* Gold — accent button */
.nwk-btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.nwk-btn--gold:hover {
  background: #b3953f;
  border-color: #b3953f;
  color: var(--white);
  transform: translateY(-1px);
}

/* Ghost — on dark backgrounds */
.nwk-btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.nwk-btn--ghost:hover {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

/* Outline — on light backgrounds */
.nwk-btn--outline {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}
.nwk-btn--outline:hover {
  background: var(--ocean);
  color: var(--white);
}

/* Teal — secondary on light */
.nwk-btn--teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.nwk-btn--teal:hover {
  background: #00796B;
  border-color: #00796B;
  color: var(--white);
  transform: translateY(-1px);
}

.nwk-btn--full {
  width: 100%;
  justify-content: center;
}

/* === Cards === */
.nwk-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.nwk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.nwk-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.nwk-card:hover .nwk-card__img {
  transform: scale(1.05);
}

.nwk-card__img-wrap {
  overflow: hidden;
}

.nwk-card__body {
  padding: 28px;
}

.nwk-card__body h3,
.nwk-card__body h4 {
  margin-bottom: var(--space-sm);
}

.nwk-card__body p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.nwk-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: var(--text-base);
  margin-top: var(--space-md);
  transition: gap var(--duration-base) var(--ease-out);
}

.nwk-card__link:hover {
  color: var(--aqua);
  gap: 10px;
}

.nwk-card__link::after {
  content: '\2192';
}

/* Icon Card — feature cards */
.nwk-card--icon {
  padding: 32px;
  text-align: left;
  border: 1px solid var(--border);
  position: relative;
}

.nwk-card--icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nwk-card--icon:hover::before {
  transform: scaleX(1);
}

.nwk-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
  color: var(--ocean);
  background: rgba(0, 60, 95, 0.08);
}

.nwk-card--icon h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

/* Glass card — on dark backgrounds */
.nwk-card--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nwk-card--glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nwk-card--glass h4 {
  color: var(--white);
}

.nwk-card--glass p {
  color: rgba(255, 255, 255, 0.7);
}

/* === Stat Box === */
.nwk-stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nwk-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nwk-stat-box__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto var(--space-md);
}

.nwk-stat-box__icon--teal {
  background: rgba(0, 150, 136, 0.1);
  color: var(--teal);
}

.nwk-stat-box__icon--aqua {
  background: rgba(69, 200, 209, 0.12);
  color: var(--aqua);
}

.nwk-stat-box__icon--gold {
  background: rgba(197, 166, 78, 0.12);
  color: var(--gold);
}

.nwk-stat-box__icon--ocean {
  background: rgba(0, 60, 95, 0.1);
  color: var(--ocean);
}

.nwk-stat-box__number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--deep);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.nwk-stat-box__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Glass stat — on dark backgrounds */
.nwk-stat-box--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nwk-stat-box--glass .nwk-stat-box__number {
  color: var(--white);
}

.nwk-stat-box--glass .nwk-stat-box__label {
  color: rgba(255, 255, 255, 0.7);
}

/* === Badges === */
.nwk-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.nwk-badge--teal {
  background: var(--teal);
  color: var(--white);
}

.nwk-badge--aqua {
  background: rgba(69, 200, 209, 0.15);
  color: var(--teal);
}

.nwk-badge--coral {
  background: var(--coral);
  color: var(--white);
}

.nwk-badge--gold {
  background: var(--gold);
  color: var(--white);
}

.nwk-badge--ocean {
  background: var(--ocean);
  color: var(--white);
}

.nwk-badge--dark {
  background: var(--deep);
  color: var(--white);
}

.nwk-badge--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* === Timeline === */
.nwk-timeline {
  position: relative;
  padding-left: 60px;
}

.nwk-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--aqua), var(--teal));
}

.nwk-timeline__step {
  position: relative;
  padding-bottom: 48px;
}

.nwk-timeline__step:last-child {
  padding-bottom: 0;
}

.nwk-timeline__number {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--ocean);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white), var(--shadow-sm);
}

.nwk-timeline__number--coral {
  background: var(--coral);
}

.nwk-timeline__number--gold {
  background: var(--gold);
}

.nwk-timeline__step h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.nwk-timeline__step p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FAQ Accordion === */
.nwk-faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--duration-base) var(--ease-out);
}

.nwk-faq-item[open] {
  border-color: var(--teal);
}

.nwk-faq-item summary {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--deep);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nwk-faq-item summary::-webkit-details-marker {
  display: none;
}

.nwk-faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--aqua);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: rgba(69, 200, 209, 0.1);
  transition: transform var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.nwk-faq-item[open] summary::after {
  content: '\2212';
  background: var(--teal);
  color: var(--white);
}

.nwk-faq-item summary:hover {
  color: var(--teal);
}

.nwk-faq-item__answer {
  padding: 0 24px 24px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .nwk-faq-item summary {
    font-size: var(--text-base);
    padding: 16px;
  }
  .nwk-faq-item__answer {
    padding: 0 16px 20px;
    font-size: var(--text-sm);
  }
}

/* === Testimonials === */
.nwk-testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 4px solid var(--gold);
}

.nwk-testimonial__quote-mark {
  font-size: 64px;
  line-height: 1;
  color: var(--aqua);
  opacity: 0.3;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 28px;
}

.nwk-testimonial blockquote {
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-top: 28px;
}

.nwk-testimonial__author {
  font-weight: 600;
  color: var(--deep);
  font-size: var(--text-base);
}

.nwk-testimonial__detail {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Glass testimonial — on dark backgrounds */
.nwk-testimonial--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--gold);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nwk-testimonial--glass blockquote {
  color: rgba(255, 255, 255, 0.9);
}

.nwk-testimonial--glass .nwk-testimonial__author {
  color: var(--white);
}

.nwk-testimonial--glass .nwk-testimonial__detail {
  color: rgba(255, 255, 255, 0.6);
}

/* === Info Card (sticky sidebar) === */
.nwk-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: sticky;
  top: 90px;
}

.nwk-info-card h4 {
  font-size: var(--text-xl);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.nwk-info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.nwk-info-card__row:last-of-type {
  border-bottom: none;
}

.nwk-info-card__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.nwk-info-card__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--deep);
  text-align: right;
  max-width: 60%;
}

@media (max-width: 767px) {
  .nwk-info-card {
    position: static;
  }
}

/* === Training Card === */
.nwk-training-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  text-align: center;
  border-top: 4px solid var(--teal);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nwk-training-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.nwk-training-card__badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--space-md);
  background: rgba(0, 150, 136, 0.1);
  color: var(--teal);
}

.nwk-training-card h4 {
  margin-bottom: var(--space-sm);
}

.nwk-training-card__depth {
  font-size: var(--text-sm);
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.nwk-training-card__list {
  text-align: left;
  margin-bottom: var(--space-md);
}

.nwk-training-card__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
}

.nwk-training-card__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* === Team Card === */
.nwk-team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out);
}

.nwk-team-card:hover {
  transform: translateY(-2px);
}

.nwk-team-card__photo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 3px solid var(--aqua);
  margin: 0 auto 16px;
  background: var(--pale);
}

.nwk-team-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 4px;
}

.nwk-team-card__role {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 8px;
}

.nwk-team-card__bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Event Card === */
.nwk-event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.nwk-event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.nwk-event-card__date-badge {
  background: var(--ocean);
  color: var(--white);
  padding: 12px 16px;
  text-align: center;
}

.nwk-event-card__date-badge .day {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}

.nwk-event-card__date-badge .month {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.nwk-event-card__body {
  padding: 20px;
}

.nwk-event-card__body h4 {
  font-size: var(--text-lg);
  margin-bottom: 6px;
}

.nwk-event-card__body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.nwk-event-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* === Dive Trip Card === */
.nwk-dive-trip {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border-left: 4px solid var(--teal);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.nwk-dive-trip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nwk-dive-trip__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.nwk-dive-trip h4 {
  margin-bottom: 4px;
}

.nwk-dive-trip__details {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.nwk-dive-trip__detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nwk-dive-trip__detail i {
  color: var(--teal);
}

/* === Dive Report Card === */
.nwk-report-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.nwk-report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--text-primary);
}

.nwk-report-card__img-wrap {
  overflow: hidden;
}

.nwk-report-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.nwk-report-card:hover .nwk-report-card__img {
  transform: scale(1.05);
}

.nwk-report-card__body {
  padding: 24px;
}

.nwk-report-card__date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.nwk-report-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.nwk-report-card__location {
  display: inline-block;
  background: rgba(0, 150, 136, 0.1);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.nwk-report-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Forms === */
.nwk-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.nwk-form__group {
  margin-bottom: 20px;
}

.nwk-form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.nwk-form__label .required {
  color: var(--coral);
}

.nwk-form__input,
.nwk-form__select,
.nwk-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(11, 37, 69, 0.15);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--text-primary);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  background: var(--white);
}

.nwk-form__input::placeholder,
.nwk-form__textarea::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.nwk-form__input:focus,
.nwk-form__select:focus,
.nwk-form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.12);
}

.nwk-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.nwk-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6B7B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.nwk-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .nwk-form {
    padding: 24px;
  }
  .nwk-form__row {
    grid-template-columns: 1fr;
  }
}

/* === CTA Banner === */
.nwk-cta-banner {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nwk-cta-banner .container h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.nwk-cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto 32px;
}

.nwk-cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .nwk-cta-banner {
    padding: 60px 20px;
  }
}

/* === Filter Bar === */
.nwk-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.nwk-filter-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.nwk-filter-btn:hover {
  background: rgba(0, 150, 136, 0.08);
  border-color: var(--teal);
  color: var(--teal);
}

.nwk-filter-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
