﻿/* =========================================================
   Shanghai Paiki Packaging — Homepage styles
   Palette: deep navy #0f2a43 / cyan accent #E8831A / neutrals
   Fonts: Sora (headings) + Inter (body)
   ========================================================= */

:root {
  --navy: #0f2a43;
  --navy-2: #163a5c;
  --accent: #E8831A;
  --accent-dark: #0f8296;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e5eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 40px -24px rgba(15, 42, 67, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo__text { font-family: "Sora", "Inter", sans-serif; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: left;}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px -10px rgba(23,162,184,0.7); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,0.82); font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__contact a:hover { color: var(--white); }
.topbar__sep { margin: 0 10px; opacity: 0.4; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(15,42,67,0.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__inner img{max-width:60%;}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-family: "Sora"; font-weight: 700; letter-spacing: 0.5px;
}
.logo__text { font-weight: 700; font-size: 1.02rem; color: var(--navy); display: flex; flex-direction: column; line-height: 1.15; }
.logo__text small { font-family: "Inter"; font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.3px; }
.logo--light .logo__mark { background: var(--accent); }
.logo--light .logo__text { color: var(--white); }
.logo--light .logo__text small { color: rgba(255,255,255,0.6); }

/* WordPress nav menu compatibility */
.nav { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; margin: 0; }
.nav li { margin: 0; padding: 0; position: relative; }
.nav a { display: block; font-weight: 500; font-size: 0.94rem; color: var(--ink); transition: color 0.25s; }

/* Underline hover — top-level only */
.nav > li > a { position: relative; }
.nav > li > a:not(.nav__cta):after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav > li > a:not(.nav__cta):hover { color: var(--accent); }
.nav > li > a:not(.nav__cta):hover:after { width: 100%; }

/* Current-item highlight */
.nav > .current-menu-item > a:not(.nav__cta),
.nav > .current_page_item > a:not(.nav__cta),
.nav > .current-category-ancestor > a:not(.nav__cta) { color: var(--accent); }
.nav > .current-menu-item > a:not(.nav__cta):after,
.nav > .current_page_item > a:not(.nav__cta):after,
.nav > .current-category-ancestor > a:not(.nav__cta):after { width: 100%; }

/* CTA button */
.nav__cta { background: #E8831A; color: var(--white) !important; padding: 10px 20px; border-radius: 999px; white-space: nowrap; transition: background 0.25s, transform 0.25s; }
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav li > .nav__cta:after { display: none !important; }

/* ── Dropdown sub-menu ── */
.nav > li.menu-item-has-children { position: relative; }

/* Bridge gap between parent and sub-menu so hover doesn't break */
.nav > li.menu-item-has-children:before {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 8px;
  z-index: 61;
}

.nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: -4px;
  min-width: 200px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); list-style: none;
  padding: 8px 0; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s var(--ease);
  z-index: 60;
}
.nav > li.menu-item-has-children:hover > .sub-menu,
.nav > li.menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Dropdown arrow — must override the underline :after from .nav > li > a */
.nav > li.menu-item-has-children > a { display: flex; align-items: center; }
.nav > li.menu-item-has-children > a:after {
  content: "";
  position: static;
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -2px;
  flex-shrink: 0;
  left: auto; bottom: auto;
  background: transparent;
  transition: none;
}
/* Prevent underline hover from stretching the arrow */
.nav > li.menu-item-has-children > a:hover:after,
.nav > li.menu-item-has-children.current-menu-item > a:after,
.nav > li.menu-item-has-children.current-category-ancestor > a:after {
  width: 5px;
}

/* Sub-menu items — no underline */
.nav .sub-menu li { display: block; }
.nav .sub-menu a {
  position: static;
  padding: 10px 18px; font-size: 0.89rem; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.nav .sub-menu a:after { display: none !important; }
.nav .sub-menu a:hover { background: var(--bg-alt); color: var(--accent); }
.nav .sub-menu .current-menu-item > a { color: var(--accent); background: var(--bg-alt); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,42,67,0.94) 0%, rgba(15,42,67,0.78) 45%, rgba(15,42,67,0.5) 100%); }
.hero__inner { position: relative; padding: 108px 24px 96px; max-width: var(--maxw); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; max-width: 16ch; text-wrap: balance; }
.hero__title span { color: var(--accent); }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,0.85); max-width: 56ch; text-wrap: pretty; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 720px; }
.hero__stats div { border-left: 2px solid rgba(23,162,184,0.6); padding-left: 16px; }
.hero__stats strong { display: block; font-family: "Sora"; font-size: 1.5rem; }
.hero__stats span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding:50px 0; }
/* .section--alt { background: var(--bg-alt); } */
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.76rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--navy); text-wrap: balance; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.04rem; text-wrap: pretty; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); background-size: cover; background-position: center; color: var(--white); padding: 72px 0 64px; text-align: center; }
.page-hero:before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: 0.88; }
.page-hero.has-bg:before { opacity: 0.75; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: rgba(255,255,255,0.7); }
.page-hero__title { font-size: clamp(1.8rem, 3.5vw, 2.0rem); font-weight: 700; margin-bottom: 16px; }
.page-hero__lead { color: rgba(255,255,255,0.8); max-width: 100%; margin: 0 auto; font-size: 1.05rem; text-wrap: pretty; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb-bar a { color: var(--muted); transition: color 0.2s; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb__current { color: var(--ink); font-weight: 500; }

/* ---------- Product Hero (detail page) ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-hero__gallery { display: flex; flex-direction: column; gap: 12px; }
.product-hero__main-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); position: relative; }
.product-hero__main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.product-hero__slide.is-active { opacity: 1; pointer-events: auto; position: relative; }
.product-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: background .2s, box-shadow .2s; }
.product-hero__arrow:hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.product-hero__arrow--prev { left: 10px; }
.product-hero__arrow--next { right: 10px; }
.product-hero__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-hero__thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.product-hero__thumb:hover { opacity: 1; border-color: var(--accent); }
.product-hero__thumb.is-active { opacity: 1; border-color: var(--accent); }
.product-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-hero__info { display: flex; flex-direction: column; gap: 18px; }
.product-hero__title { font-family: "Sora"; font-size: clamp(1rem, 3vw, 1.3rem); color: var(--navy); font-weight: 700; }
.product-hero__tagline { font-size: 0.9rem; color: var(--muted); line-height: 1.6; text-align: justify;}
.product-hero__features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.product-hero__features li { padding-left: 18px; position: relative; font-size: 0.95rem; color: var(--ink); }
.product-hero__features li:before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .product-hero { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Product Content ---------- */

.product-content__heading { font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--navy); margin-bottom: 20px; }
.product-content__body { font-size: 0.97rem; color: var(--muted); line-height: 1.75; }
.product-content__body p { margin-bottom: 16px; }

/* ---------- Blog/News Article ---------- */

.article__featured { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; background: var(--bg-alt); }
.article__featured img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.article__meta time { color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.article__meta-sep { opacity: .5; }
.article__title { font-family: "Sora"; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); font-weight: 700; margin-bottom: 28px; }
.article__content { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.article__content p { margin-bottom: 20px; }
.article__content h2, .article__content h3 { color: var(--navy); margin: 32px 0 14px; }
.article__content img { border-radius: var(--radius); margin: 24px 0; }
.article__related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.article__related h3 { font-family: "Sora"; font-size: 1.2rem; color: var(--navy); margin-bottom: 24px; }

/* ---------- Application Cards ---------- */
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.app-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: 0.92rem; color: var(--ink); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--bg-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.14rem; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Capabilities strip ---------- */
.capabilities { background: var(--navy); color: var(--white); }
.capabilities .container { max-width: none; padding: 0; }
.capabilities__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.cap { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.cap:last-child { border-right: 0; }
.cap__label { display: block; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.cap__value { font-family: "Sora"; font-weight: 600; font-size: 1.1rem; }

/* ---------- Products ---------- */
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.product__body { padding: 28px; }
.product__body h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.product__body p { color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--navy); font-weight: 500; }

/* ---------- Series Section ---------- */
.series__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.series__head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--navy); margin-bottom: 10px; }

/* ---------- Product Card (compact, for series listing) ---------- */
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 20px; text-align: left; }
.product-card__body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.product-card__body h3 a:hover { color: var(--accent); }
.product-card__body p { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.product-card__more { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: color 0.2s; }
.product-card__more:hover { color: var(--accent-dark); }

/* ---------- Spec Table ---------- */
.spec-table { max-width: 780px; margin: 0 auto; overflow-x: auto; }
.spec-table table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.spec-table th, .spec-table td { padding: 14px 22px; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--navy); color: var(--white); font-weight: 600; font-family: "Sora"; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .5px; }
.spec-table td { color: var(--ink); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover td { background: var(--bg-alt); }

/* ---------- Solutions ---------- */
.solution { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.solution__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(23,162,184,0.1); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.solution__icon a { display: block; width: 100%; height: 100%; }
.solution__icon svg { width: 24px; height: 24px; }
.solution__icon img { width: 100%; height: 100%; object-fit: cover; }
.solution__thumb { aspect-ratio: 4 / 2.8; overflow: hidden; background: var(--bg-alt); }
.solution__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.solution:hover .solution__thumb img { transform: scale(1.04); }
.solution__body { padding: 20px 22px 22px; }
.solution__body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.solution__body h3 a:hover { color: var(--accent); }
.solution__body p { color: var(--muted); font-size: 0.89rem; margin-bottom: 10px; }
.solution h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 10px; }
.solution p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Case Cards ---------- */
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.05); }
.case-card__body { padding: 20px 22px 22px; }
.case-card__tag { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.case-card__body h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.case-card__body h3 a:hover { color: var(--accent); }
.case-card__body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

/* ---------- Case Detail Hero ---------- */
.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.case-hero__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.case-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.case-hero__title { font-family: "Sora"; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.case-hero__excerpt { color: var(--muted); font-size: 1rem; line-height: 1.7; }
@media (max-width: 720px) { .case-hero { grid-template-columns: 1fr; } }

/* ---------- News Cards ---------- */
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 22px 24px; }
.news-card__date { font-size: 0.78rem; color: var(--accent); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.news-card__body h3 { font-size: 1.08rem; color: var(--navy); margin: 8px 0; }
.news-card__body h3 a:hover { color: var(--accent); }
.news-card__body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

/* ---------- Process ---------- */
.process .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__num { font-family: "Sora"; font-weight: 700; font-size: 1.6rem; color: var(--accent); opacity: 0.55; }
.step h3 { margin: 12px 0 10px; color: var(--navy); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); margin-bottom: 18px; text-wrap: balance; }
.about__body p { color: var(--muted); margin-bottom: 16px; }
.about__quote { font-family: "Sora"; font-size: 1.2rem; color: var(--navy); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; }
.about__values { display: grid; gap: 14px; margin: 26px 0; }
.about__values div strong { color: var(--navy); }
.about__values div span { color: var(--muted); font-size: 0.92rem; }
.about__values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about__value-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.about__value-item strong { display: block; color: var(--navy); font-family: "Sora"; font-size: 1.1rem; margin-bottom: 10px; }
.about__value-item span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) { .about__values-grid { grid-template-columns: 1fr; } }
.certs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.certs li { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; padding: 8px 16px; border-radius: 8px; background: var(--navy); color: var(--white); }

/* ---------- CTA / Contact ---------- */
.cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 92px 0; }

/* Simple centered CTA (no form) */
.cta-simple { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 80px 0; text-align: center; }

.cta-simple h2 { font-family: "Sora"; font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
.cta-simple p { color: rgba(255,255,255,0.8); font-size: 1.02rem; margin-bottom: 28px; text-wrap: pretty; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta__intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta__intro > p { color: rgba(255,255,255,0.82); margin-bottom: 28px; max-width: 46ch; }
.cta__contact { list-style: none; display: grid; gap: 16px; }
.cta__contact li { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.cta__contact span { color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
.cta__contact a, .cta__contact p { color: rgba(255,255,255,0.9); }
.cta__contact a:hover { color: var(--accent); }

.cta__form { background: var(--white); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg-alt); transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(23,162,184,0.15);
}
.field textarea { resize: vertical; }
.form__note { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form__note.is-success { color: var(--accent-dark); font-weight: 600; }
.form__note.is-error { color: #d94c4c; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #0b1f31; color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 18px; font-size: 0.92rem; max-width: 38ch; }
.footer__social { display: flex; gap: 14px; margin-top: 20px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.08); transition: background 0.25s, transform 0.25s; }
.footer__social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer__social img { width: 30px; height: 30px; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; font-size: 0.9rem; margin-bottom: 10px; transition: color 0.25s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
  .cap { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .about__grid, .cta__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--white); padding: 24px; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.4s var(--ease); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.is-open { transform: translateY(0); }
  .nav li { display: block; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li:last-child { border-bottom: 0; }
  .nav > li > a { display: block; padding: 14px 0; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 16px; margin: 0; background: transparent; }
  .nav .sub-menu a { padding: 10px 0; font-size: 0.88rem; }
  .nav .menu-item-has-children > a:after { margin-bottom: 0; }
  .nav__toggle { display: flex; }
  .topbar { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .field--row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
/* ==============================================
   Back to Top Button
   ============================================== */
.side-float {
  position: fixed;
  right: 24px;
  bottom: 60px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.side-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 0;
}
.side-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-color: var(--accent);;
}
.side-btn img {
  width: 20px;
  height: 20px;
  display: block;
}
.gotop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, visibility .3s, transform .3s, box-shadow .25s, border-color .25s;
}
.gotop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .side-float { right: 12px; bottom: 40px; gap: 8px; }
  .side-btn { width: 38px; height: 38px; }
  .side-btn img { width: 17px; height: 17px; }
}
