/* ================================================================
   COSMOCHEM — about.css  |  About Us Page Styles
   ================================================================ */

/* ── Shared Page Utilities ─────────────────────────────────────── */
.about-page-eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 10px;
}

/* ── 1. HERO ────────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(10,12,28,.82), rgba(10,12,28,.70)),
              url('../images/producthero.png') center/cover no-repeat;
  padding: 120px 0 80px;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%,
              oklch(75.5% 0.12 212deg / 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  color: white !important;
  margin-bottom: 24px;
}

.about-hero-breadcrumb a {
  color: white !important;
  transition: color .15s;
}
.about-hero-breadcrumb a:hover { color: var(--blue); }
.about-hero-breadcrumb span   { color: var(--blue); }

.about-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff !important;
  margin-bottom: 18px;
}

.about-hero-title strong {
  color: var(--blue);
}

.about-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: oklch(82% 0.025 212deg);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── 2. COMPANY INTRODUCTION ───────────────────────────────────── */
.about-intro-section {
  padding: 90px 0;
  background: var(--bg);
}

.about-intro-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-intro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 380px;
}

.about-intro-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--blue-dark);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px oklch(75.5% 0.12 212deg / 0.35);
}

.about-intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-intro-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.about-intro-content p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.about-check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.about-check-list li svg {
  flex-shrink: 0;
  color: oklch(52% 0.18 148deg);
  margin-top: 1px;
}

/* ── 3. MISSION & VISION ───────────────────────────────────────── */
.mv-section {
  padding: 80px 0;
  background: var(--surface);
}

.mv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mv-card.mission::before { background: var(--blue-dark); }
.mv-card.vision::before  { background: var(--pink); }

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

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.mv-icon.blue { background: var(--blue-tint); color: var(--blue-dark); }
.mv-icon.pink { background: var(--pink-tint); color: var(--pink); }

.mv-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.mv-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}

/* ── 4. WHY CHOOSE US ──────────────────────────────────────────── */
.why-section {
  padding: 90px 0;
  background: var(--bg);
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.why-card:hover {
  border-color: oklch(75.5% 0.12 212deg / 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .2s;
}

.why-card:hover .why-icon {
  background: var(--blue-dark);
  color: #fff;
}

.why-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* ── 5. PRODUCT EXPERTISE ──────────────────────────────────────── */
.expertise-section {
  padding: 80px 0;
  background: var(--surface);
}

.exp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  transition: all .22s ease;
}

.exp-card:hover {
  border-color: oklch(75.5% 0.12 212deg / 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.exp-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all .22s;
}

.exp-card:hover .exp-icon {
  background: var(--blue-dark);
  color: #fff;
}

.exp-card h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.exp-card p {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

/* ── 6. QUALITY SECTION ────────────────────────────────────────── */
.quality-section {
  padding: 90px 0;
  background: var(--bg);
}

.quality-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.quality-img-wrap img {
  width: 100%;
  object-fit: cover;
  min-height: 400px;
  display: block;
}

.quality-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.quality-content p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.quality-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quality-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quality-item h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.quality-item p {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .quality-grid { grid-template-columns: 1fr; }
}

/* ── 7. INDUSTRIES WE SERVE ────────────────────────────────────── */
.industries-section {
  padding: 80px 0;
  background: var(--surface);
}

.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all .22s ease;
  cursor: default;
}

.industry-card:hover {
  border-color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.industry-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-tint) 0%, oklch(90% 0.06 350deg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue-dark);
  transition: all .22s;
}

.industry-card:hover .industry-icon {
  background: var(--blue-dark);
  color: #fff;
}

.industry-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

/* ── 8. OUR PROCESS ────────────────────────────────────────────── */
.process-section {
  padding: 90px 0;
  background: var(--bg);
}

/* ── Process Timeline ─────────────────────────────────────────── */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* ── ptl-item: 3-column grid  [card | connector | spacer]
   or [spacer | connector | card] for right-side items         ── */
.ptl-item {
  display: grid;
  /* mobile: single column — everything stacks */
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}

/* ── Desktop layout ──────────────────────────────────────────── */
@media (min-width: 768px) {
  .ptl-item {
    /* [left-half] [connector] [right-half] */
    grid-template-columns: 1fr 72px 1fr;
    align-items: start;
    margin-bottom: 36px; /* row gap between steps on desktop */
  }
  .ptl-item--last { margin-bottom: 0; }

  /* LEFT card: card | connector | spacer */
  .ptl-item--left .ptl-card      { grid-column: 1; grid-row: 1; }
  .ptl-item--left .ptl-connector { grid-column: 2; grid-row: 1; }
  .ptl-item--left .ptl-spacer    { grid-column: 3; grid-row: 1; }

  /* RIGHT card: spacer | connector | card */
  .ptl-item--right .ptl-spacer    { grid-column: 1; grid-row: 1; }
  .ptl-item--right .ptl-connector { grid-column: 2; grid-row: 1; }
  .ptl-item--right .ptl-card      { grid-column: 3; grid-row: 1; }
}

/* ── Cards ───────────────────────────────────────────────────── */
.ptl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  transition: box-shadow .22s ease, transform .22s ease;
  margin-bottom: 32px; /* mobile gap between steps */
}

@media (min-width: 768px) {
  .ptl-card {
    margin-bottom: 0;
    margin-top: 0;
    /* Give cards breathing room above the dot */
    padding-top: 26px;
  }

  /* Left cards: arrow points RIGHT (toward the line) */
  .ptl-item--left .ptl-card {
    margin-right: 0;
    text-align: right;
  }
  .ptl-item--left .ptl-card::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -10px;
    border: 10px solid transparent;
    border-left-color: var(--border);
    pointer-events: none;
  }
  .ptl-item--left .ptl-card::before {
    content: '';
    position: absolute;
    top: 27px;
    right: -8px;
    border: 9px solid transparent;
    border-left-color: var(--surface);
    pointer-events: none;
    z-index: 1;
  }

  /* Right cards: arrow points LEFT (toward the line) */
  .ptl-item--right .ptl-card {
    margin-left: 0;
    text-align: left;
  }
  .ptl-item--right .ptl-card::after {
    content: '';
    position: absolute;
    top: 26px;
    left: -10px;
    border: 10px solid transparent;
    border-right-color: var(--border);
    pointer-events: none;
  }
  .ptl-item--right .ptl-card::before {
    content: '';
    position: absolute;
    top: 27px;
    left: -8px;
    border: 9px solid transparent;
    border-right-color: var(--surface);
    pointer-events: none;
    z-index: 1;
  }
}

.ptl-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* step number badge inside card */
.ptl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  /* On desktop, float the badge to the outer edge of its card */
  .ptl-item--left .ptl-step-num  { float: right; margin-left: 12px; margin-bottom: 8px; }
  .ptl-item--right .ptl-step-num { float: left;  margin-right: 12px; margin-bottom: 8px; }
}

.ptl-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
  /* clear the floated step-num so h4 sits below it on desktop */
}
@media (min-width: 768px) {
  .ptl-item--left  .ptl-card h4 { clear: right; }
  .ptl-item--right .ptl-card h4 { clear: left;  }
}

.ptl-card p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* ── Connector column (the vertical line + dot) ───────────────── */
.ptl-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Mobile: horizontal separator, no vertical line */
@media (max-width: 767px) {
  .ptl-connector { display: none; }
}

/* Desktop: draw the vertical line through the connector column */
@media (min-width: 768px) {
  /* Extend line through ALL items by using a pseudo-element on the timeline wrapper */
  .process-timeline::before {
    content: '';
    position: absolute;
    left: calc(50% - 1px);
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-dark), var(--pink));
    border-radius: 2px;
    z-index: 0;
  }

  .ptl-connector {
    justify-content: flex-start;
    padding-top: 22px; /* align dot with the top of card content */
    z-index: 1;
  }
}

/* The circular dot on the line */
.ptl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px oklch(75.5% 0.12 212deg / 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Mobile fallback: show a simple left-line layout */
@media (max-width: 767px) {
  .process-timeline {
    padding-left: 36px;
    position: relative;
  }
  .process-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-dark), var(--pink));
    border-radius: 2px;
  }
  .ptl-card {
    position: relative;
  }
  .ptl-card::before,
  .ptl-card::after {
    display: none; /* no arrow on mobile */
  }
  /* Show dot as absolutely positioned on the left line */
  .ptl-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 4px;
  }
  .ptl-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue-dark);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px oklch(75.5% 0.12 212deg / 0.25);
    z-index: 2;
  }
  /* Hide the spacer and connector on mobile */
  .ptl-spacer { display: none; }
  .ptl-item--left  .ptl-step-num,
  .ptl-item--right .ptl-step-num {
    float: none;
    margin: 0 0 10px;
  }
}

/* ── Spacer (empty half-column on the opposite side) ─────────── */
.ptl-spacer { display: block; }
@media (max-width: 767px) { .ptl-spacer { display: none; } }

/* ── Last item: no trailing line below the final dot ─────────── */


/* ── 9. STATS SECTION ──────────────────────────────────────────── */
.stats-section {
  padding: 70px 0;
  background: linear-gradient(135deg, oklch(85.58% 0.03591 226.747) 0%, oklch(52.453% 0.07398 230.614) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%,
              oklch(75.5% 0.12 212deg / 0.06) 0%, transparent 65%);
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--blue-xdark) !important;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:white;
  display: block;
}

.stat-divider {
  width: 1px;
  background: oklch(100% 0 0 / 0.1);
  align-self: stretch;
}

@media (max-width: 575px) {
  .stat-divider { display: none; }
}




/* ── 10. GALLERY ───────────────────────────────────────────────── */
.gallery-section {
  padding: 80px 0;
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
  min-height: 80px;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--large {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--large { grid-column: span 2; }
  .gallery-item--tall  { grid-row: span 1; }
}

/* ── 11. FINAL CTA ─────────────────────────────────────────────── */
.about-cta-section {
  padding: 90px 0;
  background: linear-gradient(135deg, oklch(15% 0.055 212deg) 0%, oklch(11% 0.03 250deg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%,
              oklch(75.5% 0.12 212deg / 0.06) 0%, transparent 70%);
}

.about-cta-section > .container { position: relative; z-index: 1; }

.about-cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.about-cta-section p {
  font-size: 1rem;
  color: oklch(78% 0.03 212deg);
  max-width: 50ch;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.about-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Section title shared ──────────────────────────────────────── */
.page-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.page-section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-section-header p {
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.65;
}
