/* =========================================================
   CASE Security Design System
   Shared CSS for Home + Industry pages
   Direction: LTR
   Dependencies: Bootstrap 5, Swiper.js, Bootstrap Icons
   ========================================================= */

:root {
  --case-red: #ff252b;
  --case-red-dark: #d90007;
  --case-dark: #1e1e1e;
  --case-black: #111111;
  --case-text: #161616;
  --case-muted: #737373;
  --case-border: #ededed;
  --case-soft: #f6f6f6;
  --case-soft-2: #fafafa;
  --case-pink: #fff0f0;
  --case-white: #ffffff;

  --case-hero-gradient: linear-gradient(110deg, #f6f6f6 0%, #ffffff 56%, #f2f2f2 100%);
  --case-dark-overlay: linear-gradient(rgba(0,0,0,.84), rgba(0,0,0,.84));

  --case-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --case-h1: clamp(2.2rem, 4.2vw, 4.2rem);
  --case-h2: clamp(1.55rem, 2.3vw, 2.18rem);
  --case-body: .95rem;
  --case-small: .88rem;
  --case-line-height: 1.85;

  --case-radius-sm: 12px;
  --case-radius-md: 16px;
  --case-radius-lg: 22px;
  --case-radius-xl: 28px;
  --case-radius-pill: 999px;

  --case-shadow-sm: 0 10px 28px rgba(0,0,0,.05);
  --case-shadow-md: 0 16px 42px rgba(0,0,0,.07);
  --case-shadow-lg: 0 24px 55px rgba(0,0,0,.11);
  --case-red-shadow: 0 12px 30px rgba(255,37,43,.28);

  --case-section-padding: 90px;
  --case-transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--case-font);
  background: var(--case-white);
  color: var(--case-text);
  direction: ltr;
  text-align: left;
}

a { text-decoration: none; }
img { max-width: 100%; }

.section-padding { padding: var(--case-section-padding) 0; }
.section-padding-sm { padding: 60px 0; }

.section-title {
  font-size: var(--case-h2);
  font-weight: 600;
  margin-bottom: .7rem;
  letter-spacing: -.02em;
}

.section-desc {
  max-width: 720px;
  margin-inline: auto;
  color: var(--case-muted);
  line-height: var(--case-line-height);
  font-size: var(--case-body);
}

.text-muted-custom {
  color: var(--case-muted);
  line-height: var(--case-line-height);
}

.bg-soft { background: var(--case-soft); }
.bg-pink-soft { background: var(--case-pink); }

.btn-case {
  background: var(--case-red);
  color: var(--case-white);
  border: 0;
  border-radius: var(--case-radius-pill);
  padding: .68rem 1.4rem;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: var(--case-transition);
}

.btn-case:hover,
.btn-case:focus {
  background: var(--case-red-dark);
  color: var(--case-white);
  transform: translateY(-2px);
}

.btn-dark-pill {
  background: var(--case-dark);
  color: var(--case-white);
  border-radius: var(--case-radius-pill);
  padding: .68rem 1.35rem;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: var(--case-transition);
}

.btn-dark-pill:hover,
.btn-dark-pill:focus {
  background: #000;
  color: var(--case-white);
  transform: translateY(-2px);
}

.link-case,
.read-more {
  color: var(--case-red);
  font-size: .9rem;
  font-weight: 500;
}

.link-case:hover,
.read-more:hover { color: var(--case-red-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.navbar-brand img { height: 40px; }

.navbar-nav .nav-link {
  color: #222;
  font-size: .9rem;
  padding-inline: .85rem !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--case-red); }

.header-search,
.search-link {
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .9rem;
}

.dropdown-menu {
  border: 1px solid var(--case-border);
  border-radius: var(--case-radius-md);
  box-shadow: var(--case-shadow-md);
  padding: .65rem;
}

.dropdown-item {
  border-radius: 10px;
  font-size: .9rem;
  padding: .6rem .75rem;
}

.dropdown-item:hover {
  background: rgba(255,37,43,.08);
  color: var(--case-red);
}

/* Hero */
.hero-section,
.industry-hero {
  background: var(--case-hero-gradient);
  overflow: hidden;
}

.hero-slide,
.hero-inner {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0 82px;
}

.industry-hero .hero-inner {
  min-height: 430px;
  padding: 56px 0;
}

.hero-title {
  font-size: var(--case-h1);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}

.hero-text {
  color: var(--case-muted);
  line-height: var(--case-line-height);
  max-width: 520px;
  margin-bottom: 1.45rem;
}

.hero-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image,
.hero-img-wrap img {
  width: min(100%, 650px);
  filter: drop-shadow(0 28px 46px rgba(0,0,0,.13));
}

/* Cards and tabs */
.case-card {
  border: 1px solid var(--case-border);
  border-radius: var(--case-radius-lg);
  background: var(--case-white);
  transition: var(--case-transition);
}

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

.tab-card,
.solution-tabs .nav-link {
  border: 1px solid var(--case-border);
  border-radius: var(--case-radius-md);
  background: var(--case-white);
  color: var(--case-text);
  transition: var(--case-transition);
  position: relative;
}

.tab-card {
  padding: 24px 20px;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.solution-tabs .nav {
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.solution-tabs .nav-link {
  min-width: 210px;
  padding: 1rem 1.35rem;
  font-size: .92rem;
}

.tab-card::before,
.solution-tabs .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 44px;
  border-radius: var(--case-radius-pill);
  background: transparent;
  transition: var(--case-transition);
}

.tab-card.active,
.tab-card:hover,
.solution-tabs .nav-link.active,
.solution-tabs .nav-link:hover {
  border-color: rgba(255,37,43,.35);
  box-shadow: var(--case-shadow-md);
  color: var(--case-red);
  transform: translateY(-4px);
}

.tab-card.active::before,
.solution-tabs .nav-link.active::before { background: var(--case-red); }

.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--case-red);
  background: rgba(255,37,43,.08);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tab-card.active .tab-icon {
  color: var(--case-white);
  background: var(--case-red);
}

.tab-card h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--case-text);
}

.tab-card p {
  color: var(--case-muted);
  margin-bottom: 0;
  font-size: var(--case-small);
  line-height: 1.7;
}

.tab-content-box,
.solution-box {
  background: var(--case-soft);
  border-radius: var(--case-radius-xl);
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
}

.tab-content-box { margin-top: 32px; }

.tab-pane-img,
.solution-img,
.why-img {
  width: 100%;
  border-radius: var(--case-radius-lg);
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

/* Lists */
.feature-list,
.icon-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}

.feature-list li,
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #555;
  font-size: .93rem;
  margin-bottom: .85rem;
  line-height: 1.7;
}

.feature-list li i,
.icon-list li i {
  color: var(--case-red);
  font-size: 1.05rem;
  margin-top: .15rem;
  flex: 0 0 auto;
}

/* Dark sections */
.counter-section,
.stories-section {
  background: var(--case-dark-overlay), var(--case-dark);
  color: var(--case-white);
  position: relative;
  overflow: hidden;
}

.counter-section { padding: 78px 0; }
.stories-section { padding: 84px 0; }

.counter-section::before,
.stories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

.counter-section > .container,
.stories-section > .container {
  position: relative;
  z-index: 1;
}

.counter-item {
  border-left: 2px solid var(--case-red);
  padding-left: 18px;
}

.counter-number {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  margin-bottom: .4rem;
}

.counter-item h4 {
  font-size: 1rem;
  margin-bottom: .55rem;
}

.counter-item p {
  color: rgba(255,255,255,.64);
  line-height: 1.75;
  font-size: var(--case-small);
  margin-bottom: 0;
}

/* Product and Blog */
.product-swiper,
.blog-swiper { padding: 8px 4px 54px; }

.product-card,
.blog-card {
  height: 100%;
  border: 0;
  border-radius: var(--case-radius-lg);
  background: var(--case-white);
  overflow: hidden;
}

.blog-card { box-shadow: var(--case-shadow-sm); }

.product-media {
  background: var(--case-soft);
  border-radius: var(--case-radius-lg);
  padding: 32px;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2 / 1;
  margin-bottom: 18px;
}

.product-media img {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,.08));
}

.product-card h3,
.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: .7rem;
}

.product-card p {
  color: var(--case-muted);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: .85rem;
}

.blog-img-wrap {
  position: relative;
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  transition: .35s ease;
}

.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-card .card-body { padding: 20px; }

.date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.94);
  border-radius: var(--case-radius-pill);
  padding: .42rem .8rem;
  font-size: .76rem;
  color: #555;
}

/* Swiper */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 1;
  background: #c9c9c9;
}

.swiper-pagination-bullet-active { background: var(--case-red); }
.hero-swiper .swiper-pagination { bottom: 28px !important; }

/* Story */
.story-swiper { padding-bottom: 52px; }
.story-card { position: relative; z-index: 1; }

.story-img {
  width: 100%;
  border-radius: var(--case-radius-lg);
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.story-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,.88);
  color: #222;
  border-radius: var(--case-radius-sm);
  padding: .75rem 1rem;
  font-size: .82rem;
  box-shadow: var(--case-shadow-md);
}

.story-content p {
  color: rgba(255,255,255,.68);
  line-height: var(--case-line-height);
  margin-bottom: 1.3rem;
}

/* Banners */
.image-text-section img,
.guide-img {
  width: 100%;
  border-radius: var(--case-radius-lg);
  object-fit: cover;
}

.image-text-section img { aspect-ratio: 1.1 / 1; }

.wide-banner {
  background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.65)), var(--case-soft);
  min-height: 245px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wide-banner-card {
  width: min(100%, 430px);
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.12));
  transform: rotate(-4deg);
}

.guide-box {
  background: var(--case-pink);
  border-radius: 24px;
  padding: clamp(22px, 3.2vw, 36px);
  position: relative;
  overflow: hidden;
}

.guide-box::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 2px;
  background: var(--case-red);
}

.guide-img { aspect-ratio: 1.35 / 1; }

/* Certifications */
.cert-card {
  border: 1px solid var(--case-border);
  border-radius: var(--case-radius-lg);
  padding: 28px 18px;
  height: 100%;
  background: var(--case-white);
  text-align: center;
  transition: var(--case-transition);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--case-shadow-md);
}

.cert-logo {
  height: 54px;
  object-fit: contain;
  margin-bottom: 1.1rem;
}

.cert-card h3 {
  font-size: .98rem;
  margin-bottom: .6rem;
}

.cert-card p {
  color: var(--case-muted);
  font-size: .86rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Forms */
.form-control {
  border: 1px solid var(--case-border);
  border-radius: var(--case-radius-sm);
  min-height: 50px;
  font-size: .9rem;
  padding: .8rem 1rem;
}

textarea.form-control { min-height: 145px; }

.form-control:focus {
  border-color: rgba(255,37,43,.45);
  box-shadow: 0 0 0 .2rem rgba(255,37,43,.08);
}

/* Footer */
.site-footer {
  background: var(--case-dark);
  color: var(--case-white);
  padding: 64px 0 20px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1.3rem;
}

.footer-text {
  color: rgba(255,255,255,.62);
  line-height: 1.9;
  font-size: .9rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1.35rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: .75rem; }

.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.footer-links a:hover { color: var(--case-white); }

.contact-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.68);
  margin-bottom: .9rem;
  font-size: .9rem;
}

.contact-row i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--case-white);
  color: var(--case-red);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 42px;
  padding-top: 18px;
  color: rgba(255,255,255,.55);
  font-size: .84rem;
}

.social-links a {
  color: rgba(255,255,255,.72);
  margin-right: .9rem;
}

.social-links a:hover { color: var(--case-white); }

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--case-red);
  color: var(--case-white);
  display: grid;
  place-items: center;
  z-index: 999;
  box-shadow: var(--case-red-shadow);
}

.back-to-top:hover {
  color: var(--case-white);
  background: var(--case-red-dark);
}

/* Responsive */
@media (max-width: 991.98px) {
  :root { --case-section-padding: 70px; }

  .hero-slide,
  .hero-inner,
  .industry-hero .hero-inner {
    min-height: auto;
    text-align: center;
    padding: 52px 0 74px;
  }

  .hero-text { margin-inline: auto; }
  .solution-tabs .nav-link { min-width: 100%; }
  .counter-item { margin-bottom: 28px; }
  .story-content { text-align: center; }
}

@media (max-width: 575.98px) {
  :root { --case-section-padding: 56px; }

  .btn-case,
  .btn-dark-pill { width: 100%; }

  .tab-content-box,
  .solution-box {
    border-radius: 20px;
    padding: 22px;
  }

  .footer-bottom { text-align: center; }
}
