/* =========================================================
   KOTASTONE — INNER PAGE STYLESHEET (extends style.css)
   ========================================================= */

/* ── INNER HERO ── */
.inner-hero {
  position: relative; height: 70vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: var(--nav-h);
}
.inner-hero-bg {
  position: absolute; inset: 0;
  background-image: var(--hero-bg, url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=1920&q=80'));
  background-size: cover; background-position: center;
  transition: transform 0.1s;
}
.inner-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.78) 0%, rgba(42,107,95,0.5) 100%);
}
.inner-hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  max-width: 800px; padding: 0 24px;
}
.inner-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.inner-hero-content h1 span { color: var(--accent); }
.inner-hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem); opacity: 0.9;
  max-width: 560px; margin: 0 auto 32px; line-height: 1.8;
}
.inner-hero-content .hero-badge { margin-bottom: 20px; }
.breadcrumb {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 0.85rem;
  white-space: nowrap; max-width: calc(100% - 32px);
  overflow: hidden; text-overflow: ellipsis;
}
.breadcrumb a { color: var(--accent); transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.7rem; }

/* ── OVERVIEW ── */
.overview { background: var(--white); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.overview-img { position: relative; border-radius: var(--radius); overflow: visible; }
.overview-img img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.color-badge {
  position: absolute; top: 24px; left: 24px;
  background: rgba(255,255,255,0.96); border-radius: var(--radius-sm);
  padding: 12px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #fff; flex-shrink: 0;
}
.color-badge span { font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.overview-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin: 12px 0 20px;
}
.overview-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-pill {
  padding: 6px 16px; background: rgba(42,107,95,0.1); color: var(--primary);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── FEATURES ── */
.features { background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--border);
  transition: var(--tran); text-align: center;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(42,107,95,0.1); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem; color: var(--primary); transition: var(--tran);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-card h3 { font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── PAGE SPECS ── */
.page-specs { background: var(--white); }
.specs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.data-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.data-table th, .data-table td {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  font-size: 0.93rem; text-align: left;
}
.data-table th { background: var(--primary); color: #fff; font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(42,107,95,0.04); }
.sizes-title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; color: var(--dark); }
.available-sizes { list-style: none; }
.available-sizes li {
  padding: 12px 16px; background: var(--light); border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; transition: var(--tran); font-weight: 500;
}
.available-sizes li:hover { border-color: var(--primary); }
.available-sizes li span { font-weight: 700; color: var(--primary); font-size: 0.85rem; }

/* ── PAGE APPS ── */
.page-apps { background: var(--light); }
.apps-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: var(--tran);
}
.app-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.app-item i { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.app-item h4 { font-weight: 700; margin-bottom: 6px; }
.app-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── PAGE GALLERY ── */
.page-gallery { background: var(--white); }
.pg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; height: 220px; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pg-item:hover img { transform: scale(1.08); }
.pg-item-overlay {
  position: absolute; inset: 0; background: rgba(42,107,95,0.72);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; opacity: 0; transition: var(--tran);
}
.pg-item:hover .pg-item-overlay { opacity: 1; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--primary-dark); padding: 80px 0; text-align: center; }
.cta-banner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 16px;
}
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 540px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; background: var(--accent);
  color: #fff; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; transition: var(--tran);
}
.btn-cta-primary:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200,169,110,0.4); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border: 2px solid rgba(255,255,255,0.6);
  color: #fff; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; transition: var(--tran);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ── BLOG INNER ── */
.article-body { background: var(--white); }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.article-content h2 { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; font-weight: 800; margin: 36px 0 16px; color: var(--dark); }
.article-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 700; margin: 28px 0 12px; }
.article-content p { color: var(--text-muted); margin-bottom: 18px; font-size: 1rem; line-height: 1.85; }
.article-content ul { margin: 0 0 18px 20px; }
.article-content ul li { color: var(--text-muted); margin-bottom: 8px; font-size: 0.97rem; line-height: 1.7; }
.article-content ul li::marker { color: var(--primary); }
.article-content strong { color: var(--dark); }
.article-img { border-radius: var(--radius); overflow: hidden; margin: 28px 0; box-shadow: var(--shadow); }
.article-img img { width: 100%; height: 320px; object-fit: cover; }
.article-img figcaption { padding: 12px 16px; font-size: 0.82rem; color: var(--text-muted); background: var(--light); }
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.sidebar-card h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar-link { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text); transition: color 0.3s; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--primary); }
.sidebar-link i { color: var(--primary); font-size: 0.85rem; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.comparison-table th, .comparison-table td { padding: 14px 18px; border: 1px solid var(--border); font-size: 0.9rem; }
.comparison-table th { background: var(--primary); color: #fff; font-weight: 700; }
.comparison-table tr:nth-child(even) td { background: var(--light); }
.comparison-table td:first-child { font-weight: 600; color: var(--dark); }
.check-green { color: #27ae60; font-weight: 700; }
.check-yellow { color: #f39c12; font-weight: 700; }
.check-red { color: #e74c3c; font-weight: 700; }

/* ── Comparison table: horizontal scroll wrapper ── */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin: 28px 0;
}
.comparison-wrap .comparison-table {
  margin: 0;
  min-width: 480px; /* Ensures columns don't squish */
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .specs-two-col { grid-template-columns: 1fr; }
  .apps-list { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Inner hero */
  .inner-hero { height: 55vh; min-height: 380px; }
  .inner-hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .inner-hero-content p { font-size: 0.9rem; margin-bottom: 20px; }
  .breadcrumb { font-size: 0.78rem; gap: 6px; bottom: 14px; }

  /* Overview */
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .overview-img img { height: 240px; }
  .color-badge { top: 12px; left: 12px; padding: 10px 14px; gap: 8px; }
  .color-swatch { width: 28px; height: 28px; }
  .overview-text h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .tag-row { gap: 8px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 24px 20px; }
  .feature-icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 14px; }

  /* Specs */
  .specs-two-col { grid-template-columns: 1fr; gap: 28px; }
  .data-table th, .data-table td { padding: 12px 14px; font-size: 0.88rem; }
  .available-sizes li { padding: 10px 14px; font-size: 0.86rem; }

  /* Applications (inner) */
  .apps-list { grid-template-columns: 1fr; gap: 14px; }
  .app-item { padding: 18px; }

  /* Page gallery */
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pg-item { height: 160px; }
  /* Show overlay on mobile */
  .pg-item-overlay { opacity: 1; background: rgba(42,107,95,0.5); font-size: 1.4rem; }

  /* CTA banner */
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .cta-banner p { font-size: 0.9rem; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }
  .btn-cta-primary, .btn-cta-outline {
    width: 100%; max-width: 280px; justify-content: center; padding: 13px 24px;
  }

  /* Blog article */
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-content h2 { font-size: 1.35rem; margin: 24px 0 12px; }
  .article-content h3 { font-size: 1.1rem; }
  .article-img img { height: 220px; }
  .sidebar-card { padding: 20px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 0.85rem; }
  .article-content ul { margin: 0 0 18px 16px; }
}
@media (max-width: 480px) {
  .inner-hero { height: 50vh; min-height: 320px; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pg-item { height: 150px; } /* slightly taller than before for better visibility */
  .features-grid { grid-template-columns: 1fr; }
  /* Breadcrumb: allow wrapping on tiny screens */
  .breadcrumb { white-space: normal; text-align: center; flex-wrap: wrap; justify-content: center; bottom: 10px; }
}
