/* ── content.css — Extended Page Sections ─────────────────────────── */

/* ── Stats Band ─────────────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--gold-dim);
}
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item:nth-child(odd)::before { display: none; }
}

/* ── Deep Dive Editorial ─────────────────────────────────────────────── */
.deep-dive {
  padding: 96px 0;
  background: var(--navy-dark);
}
.deep-dive .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.deep-dive-label-col {
  position: sticky;
  top: 100px;
}
.deep-dive-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.deep-dive-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.deep-dive-accent {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 24px;
}
.deep-dive-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-base);
  margin-bottom: 28px;
}
.deep-dive-body p:last-child { margin-bottom: 0; }
.deep-dive-body strong { color: var(--gold); font-weight: 700; }
@media (max-width: 768px) {
  .deep-dive .container { grid-template-columns: 1fr; gap: 32px; }
  .deep-dive-label-col { position: static; }
}

/* ── Project Types Grid ──────────────────────────────────────────────── */
.project-types {
  padding: 88px 0;
  background: var(--navy-mid);
}
.project-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
  border: 1px solid rgba(245,201,47,0.1);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.pt-card {
  background: var(--navy-dark);
  padding: 32px 24px;
  transition: background var(--trans), transform var(--trans);
  position: relative;
  overflow: hidden;
}
.pt-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.pt-card:hover { background: var(--navy-light); }
.pt-card:hover::before { transform: scaleX(1); }
.pt-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.pt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.pt-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .project-types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .project-types-grid { grid-template-columns: 1fr; }
}

/* ── Standards Section ───────────────────────────────────────────────── */
.standards-section {
  padding: 80px 0;
  background: var(--navy-dark);
}
.standards-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-base);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.standard-card {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--navy-mid);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.standard-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
}
.standard-code {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
}
.standard-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.standard-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .standards-grid { grid-template-columns: 1fr; }
}

/* ── Tech Stack ──────────────────────────────────────────────────────── */
.tech-stack {
  padding: 80px 0;
  background: var(--navy-mid);
}
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.tech-card {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color var(--trans), transform var(--trans);
}
.tech-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.tech-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.tech-use {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tech-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Applications Grid ───────────────────────────────────────────────── */
.applications-section {
  padding: 88px 0;
  background: var(--navy-dark);
}
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.app-card {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  border: 1px solid rgba(245,201,47,0.08);
  transition: border-color var(--trans), transform var(--trans);
}
.app-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-6px);
}
.app-icon { font-size: 2.2rem; margin-bottom: 18px; display: block; }
.app-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.app-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .applications-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .applications-grid { grid-template-columns: 1fr; }
}

/* ── Philosophy Block ────────────────────────────────────────────────── */
.philosophy-section {
  padding: 100px 0;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}
.philosophy-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.philosophy-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,17,51,0.8) 0%, transparent 70%);
  pointer-events: none;
}
.philosophy-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.philosophy-quote {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
  font-style: italic;
  margin: 32px 0;
  padding: 0 24px;
}
.philosophy-quote em { color: var(--gold); font-style: normal; font-weight: 700; }
.philosophy-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-base);
  margin-bottom: 24px;
  text-align: left;
}

/* ── Cross-Sell Strip ────────────────────────────────────────────────── */
.cross-sell {
  padding: 64px 0;
  background: var(--navy);
  border-top: 1px solid var(--gold-dim);
}
.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.cross-card {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: border-color var(--trans), background var(--trans);
  text-decoration: none;
}
.cross-card:hover {
  border-color: var(--gold);
  background: var(--navy-mid);
}
.cross-icon { font-size: 2.4rem; flex-shrink: 0; }
.cross-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cross-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.cross-arrow { margin-left: auto; color: var(--gold); font-size: 1.4rem; flex-shrink: 0; transition: transform var(--trans); }
.cross-card:hover .cross-arrow { transform: translateX(6px); }
@media (max-width: 640px) {
  .cross-sell-grid { grid-template-columns: 1fr; }
}

/* ── Design Styles Grid ──────────────────────────────────────────────── */
.design-styles {
  padding: 88px 0;
  background: var(--navy-dark);
}
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.style-tile {
  background: var(--navy-mid);
  padding: 32px 24px;
  transition: background var(--trans);
}
.style-tile:hover { background: var(--navy-light); }
.style-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(245,201,47,0.15);
  line-height: 1;
  margin-bottom: 12px;
}
.style-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.style-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About / Mission Section ─────────────────────────────────────────── */
.about-section {
  padding: 100px 0;
  background: var(--navy-mid);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 28px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-base);
  margin-bottom: 20px;
}
.about-text strong { color: var(--gold); }
.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.value-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
  width: 40px;
  line-height: 1.3;
}
.value-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.value-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Integrated Approach ─────────────────────────────────────────────── */
.integrated-section {
  padding: 88px 0;
  background: var(--navy-dark);
}
.integrated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.int-panel {
  background: var(--navy-mid);
  padding: 48px 32px;
  position: relative;
  transition: background var(--trans);
}
.int-panel:hover { background: var(--navy-light); }
.int-panel-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(245,201,47,0.08);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.int-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.int-panel-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-base);
}
@media (max-width: 768px) {
  .integrated-grid { grid-template-columns: 1fr; }
}

/* ── Global Delivery Section ─────────────────────────────────────────── */
.global-section {
  padding: 88px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.global-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(245,201,47,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.global-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.global-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}
.global-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-base);
  margin-bottom: 20px;
}
.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.delivery-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
}
.delivery-icon { font-size: 1.4rem; flex-shrink: 0; }
.delivery-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.delivery-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .global-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── RTL Overrides ───────────────────────────────────────────────────── */
[dir="rtl"] .deep-dive .container {
  /* keep 1fr 2fr columns — direction:rtl flips the column order automatically */
  direction: rtl;
}
[dir="rtl"] .deep-dive-label-col { text-align: right; }
[dir="rtl"] .deep-dive-headline { text-align: right; }
[dir="rtl"] .deep-dive-sub { text-align: right; letter-spacing: 1px; }
[dir="rtl"] .deep-dive-accent { margin-left: auto; margin-right: 0; }
[dir="rtl"] .stat-item + .stat-item::before {
  left: auto; right: 0;
}
[dir="rtl"] .cross-card { flex-direction: row-reverse; }
[dir="rtl"] .cross-arrow { margin-left: 0; margin-right: auto; }
[dir="rtl"] .cross-card:hover .cross-arrow { transform: translateX(-6px); }
[dir="rtl"] .delivery-item { border-left: none; border-right: 3px solid var(--gold); }
[dir="rtl"] .deep-dive-body { text-align: right; }
[dir="rtl"] .philosophy-text { text-align: right; }

@media (max-width: 768px) {
  [dir="rtl"] .deep-dive-label-col { text-align: right; }
  [dir="rtl"] .deep-dive-accent { margin-left: auto; margin-right: 0; }
}

/* ── Service Gallery ─────────────────────────────────────────────────── */
.service-gallery {
  padding: 0 0 72px;
  background: var(--navy-dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gold-dim);
  position: relative;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,36,0.45) 0%, transparent 50%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .service-gallery { padding-bottom: 48px; }
}
[dir="rtl"] .gallery-grid { direction: rtl; }
