/* ==========================================================================
   Features Landing Page — /features
   Note: Site base is html { font-size: 62.5% } so 1rem = 10px.
   All sizes here use px to avoid confusion.
   ========================================================================== */

/* --- Hero --- */
.feat-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #1a3a4a;
}
.feat-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 30px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.feat-hero h1 {
  color: #fff;
  font-size: 36px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.feat-hero p {
  color: rgba(255,255,255,.92);
  font-size: 20px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .feat-hero { min-height: 380px; }
  .feat-hero h1 { font-size: 46px; }
  .feat-hero p { font-size: 22px; }
}

/* --- Intro --- */
.feat-intro {
  max-width: 780px;
  margin: 28px auto 10px;
  text-align: center;
  padding: 0 16px;
  line-height: 1.65;
  font-size: 20px;
  color: #444;
}
.feat-intro strong { color: #222; }

/* --- Island Tabs --- */
.feat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px auto 6px;
  padding: 0 12px;
  max-width: 780px;
}
.feat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.feat-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.feat-tab.is-active {
  background: #1a6b4a;
  border-color: #1a6b4a;
  color: #fff;
}
.feat-tab .feat-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Section headings --- */
.feat-section-label {
  font-size: 16px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 36px 0 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* --- Card Grid --- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 560px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .feat-grid.feat-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Feature Card --- */
.feat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none;
  color: inherit;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.feat-card:hover .feat-card-img img {
  transform: scale(1.05);
}

.feat-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e8ede8;
}
.feat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.feat-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 7px 13px;
  border-radius: 8px;
}
.feat-card-badge i {
  font-size: 14px;
}

.feat-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feat-card-body h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #1a1a1a;
  line-height: 1.3;
}
.feat-card-body p {
  font-size: 17px;
  color: #444;
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.feat-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1a6b4a;
  letter-spacing: .3px;
}
.feat-card:hover .feat-card-cta { color: #0f4a30; }

/* --- Island-specific cards (colored top border) --- */
.feat-card[data-island="oahu"] .feat-card-img { border-top: 3px solid #F27A24; }
.feat-card[data-island="maui"] .feat-card-img { border-top: 3px solid #1866B4; }
.feat-card[data-island="kauai"] .feat-card-img { border-top: 3px solid #1D9771; }
.feat-card[data-island="big-island"] .feat-card-img { border-top: 3px solid #c3232f; }

/* --- Visibility for tab filtering --- */
.feat-card.is-hidden {
  display: none;
}

/* --- Quick-start steps row --- */
.feat-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0 10px;
  counter-reset: step;
}
@media (min-width: 600px) {
  .feat-steps { grid-template-columns: repeat(3, 1fr); }
}
.feat-step {
  text-align: center;
  padding: 24px 20px;
  position: relative;
}
.feat-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1a6b4a;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.feat-step h4 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #222;
}
.feat-step p {
  font-size: 17px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom CTA --- */
.feat-bottom-cta {
  text-align: center;
  margin: 44px 0 30px;
  padding: 40px 28px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ec 100%);
  border-radius: 20px;
}
.feat-bottom-cta h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.feat-bottom-cta p {
  font-size: 19px;
  color: #444;
  margin: 0 0 22px;
  line-height: 1.55;
}
.feat-bottom-cta .feat-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #1a6b4a;
  color: #fff;
  border-radius: 40px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.feat-bottom-cta .feat-cta-btn:hover {
  background: #145838;
}

/* --- Stat row --- */
.feat-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin: 22px 0 12px;
  padding: 0 12px;
}
.feat-stat {
  text-align: center;
}
.feat-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #1a6b4a;
  line-height: 1.1;
}
.feat-stat-label {
  font-size: 14px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
}
