/* ==========================================================================
   OFISTORE — Shared Pages Layout & Typography System
   ========================================================================== */

.page-hero-corporate {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  background: radial-gradient(circle at 85% 20%, rgba(7, 87, 217, 0.08), transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-corporate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(7, 87, 217, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 87, 217, 0.03) 1px, transparent 1px);
  pointer-events: none;
}

.page-hero-corporate .page-shell {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  max-width: 820px;
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-hero-desc {
  max-width: 680px;
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-item strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.hero-stat-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Subpage Content Section */
.page-content-section {
  padding: var(--section-space) 0;
  background-color: var(--canvas);
}

.page-content-section.soft-bg {
  background-color: var(--surface-subtle);
}

.page-content-section.dark-bg {
  background-color: var(--surface-dark);
  color: #ffffff;
}

/* Solutions Grid & Cards */
.solutions-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.sol-industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--ease-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.sol-industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan-accent));
  opacity: 0;
  transition: opacity var(--ease-fast);
}

.sol-industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 87, 217, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.sol-industry-card:hover::before {
  opacity: 1;
}

.sol-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.sol-card-icon svg {
  width: 26px;
  height: 26px;
}

.sol-industry-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.sol-industry-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.sol-feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
}

.sol-feature-bullets li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sol-feature-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

/* Managed Services 4-Column Layout */
.managed-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.managed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--ease-smooth);
}

.managed-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.managed-card .itil-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.managed-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.managed-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Brand portfolio */
.page-header { position: sticky; top: 0; z-index: 20; min-height: 80px; display: flex; align-items: center; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.page-shell { width: min(var(--max-width), calc(100% - var(--shell-pad) * 2)); margin-inline: auto; }
.page-header .page-shell, .page-nav, .distribution-layout, .distribution-points { display: flex; align-items: center; }
.page-header .page-shell { justify-content: space-between; gap: 28px; }
.page-header img { width: 142px; }
.page-menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.page-menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--ease-fast), opacity var(--ease-fast); }
.page-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.page-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.page-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.page-nav { gap: 6px; color: var(--text-muted); font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
.page-nav a { padding: 9px 16px; border-radius: var(--radius-pill); }
.page-nav a:hover, .page-nav .is-current { color: var(--primary); background: var(--primary-light); }
.page-nav a:last-child { margin-left: 10px; padding: 9px 20px; background: var(--ink); color: #fff; font-weight: 700; }
.page-nav a:last-child:hover { background: #11284a; color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-label { display: block; margin-bottom: 12px; color: var(--primary); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section-heading h2, .distribution-layout h2 { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.14; }
.section-heading p { max-width: 630px; margin-top: 18px; color: var(--text-muted); }
.brand-logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-logo-card { display: flex; min-height: 190px; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background var(--ease-smooth), transform var(--ease-smooth), box-shadow var(--ease-smooth); }
.brand-logo-card:hover { position: relative; z-index: 1; transform: translateY(-4px); background: #fbfdff; box-shadow: var(--shadow-card-hover); }
.brand-logo-card img { width: 78px; height: 42px; margin-bottom: auto; object-fit: contain; object-position: left center; }
.brand-logo-card strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }
.brand-logo-card span { color: var(--text-muted); font-size: 0.76rem; line-height: 1.35; }
.brand-logo-card.wordmark::before { width: 100%; height: 42px; margin-bottom: auto; color: var(--primary); content: attr(data-mark); font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; line-height: 42px; }
.brand-disclaimer { max-width: 800px; margin-top: 24px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.55; }
.distribution-band { padding: clamp(64px, 8vw, 104px) 0; background-color: var(--surface-dark); }
.distribution-layout { justify-content: space-between; gap: 48px; }
.distribution-layout > div:first-child { max-width: 620px; }
.distribution-layout h2 { margin-top: 18px; color: var(--text-on-dark); }
.distribution-layout p { margin-top: 18px; color: var(--text-on-dark-muted); }
.distribution-points { max-width: 360px; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.distribution-points span { padding: 8px 12px; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); color: #d9e9ff; font-family: var(--font-mono); font-size: 0.72rem; }
.page-cta { padding: 48px 0; background: var(--primary-light); }
.page-cta .page-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-cta h2 { max-width: 620px; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.25; }
.page-cta a { padding: 13px 22px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

/* Compatibility for existing secondary pages */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(52px, 7vw, 82px); background: radial-gradient(circle at 88% 16%, rgba(0, 210, 255, 0.12), transparent 26%), linear-gradient(135deg, #f5f9ff, #fff 64%); border-bottom: 1px solid var(--line); }
.page-kicker { margin-bottom: 14px; color: var(--primary); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.page-hero h1 { max-width: 800px; color: var(--ink); font-family: var(--font-display); font-size: clamp(2.15rem, 4.2vw, 3.7rem); line-height: 1.08; }
.page-hero p:last-child { max-width: 690px; margin-top: 20px; color: var(--text-muted); font-size: 1.08rem; }
.page-section { padding: var(--section-space) 0; }
.page-section.soft { background: var(--surface-subtle); }
.page-section h2 { max-width: 760px; margin-bottom: 30px; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.14; }
.brand-grid, .cert-grid, .case-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.brand-grid article, .cert-grid article, .case-page-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth); }
.brand-grid article:hover, .cert-grid article:hover, .case-page-grid article:hover { transform: translateY(-4px); border-color: rgba(7, 87, 217, 0.32); box-shadow: var(--shadow-card-hover); }
.brand-grid strong, .cert-grid span, .case-page-grid article > span { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.brand-grid p, .cert-grid p, .case-page-grid p { margin-top: 10px; color: var(--text-muted); font-size: 0.91rem; }
.cert-grid article { min-height: 180px; }
.cert-grid h3, .case-page-grid h3 { margin-top: 30px; color: var(--ink); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.28; }
.case-page-grid strong { display: block; margin-top: 22px; color: var(--primary); font-family: var(--font-mono); font-size: 0.77rem; line-height: 1.45; }

/* Cases and certifications */
.case-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(245, 249, 255, 0.98) 0%, rgba(245, 249, 255, 0.92) 47%, rgba(245, 249, 255, 0.3) 100%), url('../images/banner7.jpg') center / cover; }
.case-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 32px; align-items: end; margin-bottom: 42px; }
.case-intro p { max-width: 690px; color: var(--text-muted); font-size: 1.05rem; }
.case-count { padding: 24px; border-left: 3px solid var(--cyan-accent); background: var(--surface-dark); color: #fff; }
.case-count strong { display: block; color: #67baff; font-family: var(--font-display); font-size: 2.35rem; line-height: 1; }
.case-count span { display: block; margin-top: 8px; color: var(--text-on-dark-muted); font-size: 0.83rem; }
.case-portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-study { position: relative; display: flex; min-height: 284px; flex-direction: column; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth); }
.case-study:hover { transform: translateY(-4px); border-color: rgba(7, 87, 217, 0.32); box-shadow: var(--shadow-card-hover); }
.case-study.featured { grid-column: span 2; min-height: 300px; padding-right: 46%; background: linear-gradient(90deg, #08162b 0%, #0f2342 55%, rgba(8, 22, 43, 0.55) 100%), var(--case-image) right center / cover; border-color: #0f2342; }
.case-number { display: inline-flex; width: fit-content; margin-bottom: 28px; padding: 5px 9px; border-radius: 4px; background: var(--primary-light); color: var(--primary); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; }
.case-study h3 { max-width: 600px; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.case-study p { max-width: 620px; margin-top: 14px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.58; }
.case-study.featured h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.case-study.featured p { color: #cbd5e1; }
.case-study.featured .case-number { background: rgba(103, 186, 255, 0.15); color: #67baff; }
.case-result { display: block; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--primary); font-family: var(--font-mono); font-size: 0.77rem; line-height: 1.45; }
.case-study.featured .case-result { border-color: rgba(255, 255, 255, 0.16); color: #aee2ff; }
.case-photo { width: calc(100% + 60px); max-width: none; height: 168px; margin: -30px -30px 24px; object-fit: cover; object-position: center; }

.cert-hero { background: radial-gradient(circle at 88% 18%, rgba(0, 210, 255, 0.14), transparent 25%), linear-gradient(135deg, #f5f9ff, #fff 64%); }
.cert-overview { display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr); gap: 30px; align-items: center; margin-bottom: 42px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.cert-overview-mark { display: grid; width: 148px; height: 148px; place-items: center; border: 1px solid rgba(7, 87, 217, 0.2); border-radius: 50%; background: radial-gradient(circle, #fff 0 55%, var(--primary-light) 56% 67%, #fff 68%); color: var(--primary); font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: 0.04em; }
.cert-overview h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.12; }
.cert-overview p { max-width: 610px; margin-top: 14px; color: var(--text-muted); }
.certification-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.certification-card { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth); }
.certification-card:hover { transform: translateY(-4px); border-color: rgba(7, 87, 217, 0.32); box-shadow: var(--shadow-card-hover); }
.certification-card .cert-area { display: block; color: var(--primary); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.certification-card .cert-code { display: block; margin-top: 28px; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.18; }
.certification-card h3 { margin-top: 14px; color: var(--text-muted); font-family: var(--font-body); font-size: 0.91rem; font-weight: 500; line-height: 1.45; }
.cert-note { max-width: 900px; margin: 28px auto 0; color: var(--text-muted); font-size: 0.82rem; text-align: center; }

/* Section hero backgrounds */
.solutions-hero { background: linear-gradient(90deg, rgba(8, 22, 43, 0.96) 0%, rgba(8, 22, 43, 0.88) 42%, rgba(8, 22, 43, 0.18) 100%), url('../images/banner5.jpg') center / cover; border-bottom: 0; }
.solutions-hero h1 { color: #fff; }
.solutions-hero .page-kicker { color: #67baff; }
.solutions-hero p:last-child { color: #d7e5f5; }

.brands-hero { background: radial-gradient(circle at 82% 20%, rgba(0, 210, 255, 0.24), transparent 18%), radial-gradient(circle at 93% 68%, rgba(7, 87, 217, 0.38), transparent 25%), linear-gradient(120deg, #08162b 0%, #102e57 52%, #0c5ea3 100%); border-bottom: 0; }
.brands-hero::before { opacity: 0.38; background-size: 28px 28px; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 1px, transparent 1px); }
.brands-hero .page-hero-title { color: #fff; }
.brands-hero .page-hero-desc, .brands-hero .hero-stat-item span { color: #c6dcf4; }
.brands-hero .page-hero-stats { border-color: rgba(255, 255, 255, 0.18); }
.brands-hero .hero-stat-item strong { color: #67d7ff; }
.brands-hero .badge { background: rgba(255, 255, 255, 0.1); border-color: rgba(103, 186, 255, 0.38); color: #bce7ff; }

.cert-hero { background: linear-gradient(90deg, rgba(8, 22, 43, 0.95) 0%, rgba(8, 22, 43, 0.84) 44%, rgba(8, 22, 43, 0.22) 100%), url('../images/banner6.jpg') center / cover; border-bottom: 0; }
.cert-hero h1 { color: #fff; }
.cert-hero .page-kicker { color: #67baff; }
.cert-hero p:last-child { color: #d7e5f5; }

@media (max-width: 960px) { .page-header .page-shell { position: relative; } .page-menu-toggle { display: flex; } .page-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: flex; align-items: stretch; flex-direction: column; gap: 8px; padding: 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); box-shadow: 0 18px 32px rgba(8, 22, 43, 0.12); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity var(--ease-fast), transform var(--ease-fast); } .page-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); } .page-nav a, .page-nav a:last-child { width: 100%; min-height: 44px; margin-left: 0; padding: 12px 20px; text-align: center; } }
@media (max-width: 900px) { .brand-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .distribution-layout { align-items: flex-start; flex-direction: column; } .distribution-points { justify-content: flex-start; } }
@media (max-width: 680px) { .page-header { min-height: 76px; } .page-header .page-shell { gap: 14px; } .page-header img { width: 124px; max-width: none; } .brand-logo-grid, .brand-grid, .cert-grid, .case-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-logo-card { min-height: 164px; padding: 18px; } .brand-grid article { min-width: 0; padding: 22px 20px; } .brand-grid strong { font-size: 1.1rem; line-height: 1.18; overflow-wrap: anywhere; } .brand-grid p { font-size: 0.88rem; line-height: 1.5; } .page-cta .page-shell { align-items: flex-start; flex-direction: column; } }

/* Responsive */
@media (max-width: 768px) {
  .hero-stat-item {
    flex: 1 1 40%;
  }

  .case-intro, .cert-overview, .case-portfolio { grid-template-columns: 1fr; }
  .case-study.featured { grid-column: auto; padding-right: 30px; background: linear-gradient(90deg, rgba(8, 22, 43, 0.96) 0%, rgba(8, 22, 43, 0.72) 100%), var(--case-image) center / cover; }
  .certification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .page-hero, .page-hero-corporate { padding: 56px 0 48px; }
  .page-hero h1, .page-hero-title { font-size: clamp(1.95rem, 9vw, 2.4rem); letter-spacing: 0; }
  .page-hero p:last-child, .page-hero-desc { font-size: 1rem; }
  .page-hero-stats { gap: 16px; margin-top: 28px; padding-top: 20px; }
  .hero-stat-item { flex: 1 1 40%; }
  .hero-stat-item strong { font-size: 1.45rem; }
  .brand-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-grid article { padding: 22px; }
  .brand-grid strong { font-size: 1.18rem; }
  .brand-logo-card { min-height: 150px; padding: 16px; }
  .brand-logo-card img { width: 66px; height: 36px; }
  .case-study { min-height: 0; padding: 22px; }
  .case-photo { width: calc(100% + 44px); height: 148px; margin: -22px -22px 20px; }
  .case-study.featured { min-height: 318px; padding: 24px 22px; }
  .case-number { margin-bottom: 18px; }
  .case-study h3 { font-size: 1.22rem; }
  .case-result { margin-top: 20px; padding-top: 16px; }
  .cert-overview { gap: 22px; padding: 24px; }
  .cert-overview-mark { width: 112px; height: 112px; font-size: 1.7rem; }
  .certification-grid { grid-template-columns: 1fr; }
  .certification-card { min-height: 0; padding: 22px; }
  .page-cta { padding: 36px 0; }
  .page-cta a { width: 100%; min-height: 48px; }
}

