/* ==========================================================================
   Yulong Petrochemical — corporate industrial design system
   ========================================================================== */

:root {
  --yp-navy: #0b1f38;
  --yp-navy-deep: #071628;
  --yp-charcoal: #1c2430;
  --yp-accent: #1f7ae0;
  --yp-accent-dark: #145fb3;
  --yp-steel: #5b6b7d;
  --yp-steel-light: #e6ebf1;
  --yp-line: #d7dee7;
  --yp-white: #ffffff;
  --yp-bg: #f6f8fb;
  --yp-text: #1a2331;
  --yp-text-muted: #55627380;
  --yp-radius: 10px;
  --yp-shadow-sm: 0 1px 2px rgba(11, 31, 56, .06), 0 2px 8px rgba(11, 31, 56, .06);
  --yp-shadow-md: 0 8px 30px rgba(11, 31, 56, .10);
  --yp-container: 1200px;
  --yp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--yp-font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--yp-text);
  background: var(--yp-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yp-accent-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--yp-navy);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--yp-accent);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  word-wrap: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--yp-navy);
  color: #fff;
  padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout ------------------------------------------------------------------ */
.yp-container {
  width: 100%;
  max-width: var(--yp-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.yp-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.yp-section--alt { background: var(--yp-bg); }
.yp-section--navy { background: var(--yp-navy); color: #e8eef6; }
.yp-section--navy h2,
.yp-section--navy h3 { color: #fff; }

.yp-section__head { max-width: 760px; margin-bottom: 2.5rem; }
.yp-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.yp-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yp-accent);
  margin-bottom: .75rem;
}
.yp-section--navy .yp-eyebrow { color: #6fb0f5; }

.yp-lead { font-size: 1.075rem; color: #4a5769; }
.yp-section--navy .yp-lead { color: #c6d4e5; }

.yp-grid { display: grid; gap: 1.5rem; }
.yp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.yp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.yp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.yp-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.yp-media {
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow-md);
}

/* Buttons ---------------------------------------------------------------- */
.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .97rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration: none;
}
.yp-btn:hover, .yp-btn:focus { text-decoration: none; transform: translateY(-1px); }
.yp-btn--primary { background: var(--yp-accent); color: #fff; }
.yp-btn--primary:hover, .yp-btn--primary:focus { background: var(--yp-accent-dark); color: #fff; }
.yp-btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.yp-btn--outline:hover, .yp-btn--outline:focus { background: #fff; color: var(--yp-navy); border-color: #fff; }
.yp-btn--dark { background: var(--yp-navy); color: #fff; }
.yp-btn--dark:hover, .yp-btn--dark:focus { background: var(--yp-navy-deep); color: #fff; }
.yp-btn--ghost { border-color: var(--yp-line); color: var(--yp-navy); }
.yp-btn--ghost:hover, .yp-btn--ghost:focus { border-color: var(--yp-navy); }

.yp-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Header ----------------------------------------------------------------- */
.yp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--yp-line);
  backdrop-filter: saturate(140%) blur(6px);
}

.yp-header__topbar {
  background: var(--yp-navy);
  color: #cfdcec;
  font-size: .85rem;
}
.yp-header__topbar .yp-container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: flex-end;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.yp-header__topbar a { color: #cfdcec; }
.yp-header__topbar a:hover { color: #fff; }

.yp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.yp-brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.yp-brand__mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--yp-navy), var(--yp-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: .95rem;
}
.yp-brand__text { min-width: 0; }
.yp-brand__name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--yp-navy);
  text-decoration: none;
}
.yp-brand__name:hover { text-decoration: none; }
.yp-brand__tagline {
  display: block;
  font-size: .74rem;
  color: var(--yp-steel);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.yp-brand .custom-logo { max-height: 54px; width: auto; }

.yp-nav-wrap { display: flex; align-items: center; gap: 1.25rem; }

.yp-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.yp-nav li { position: relative; }
.yp-nav a {
  display: block;
  padding: .6rem .8rem;
  font-size: .94rem;
  font-weight: 600;
  color: var(--yp-charcoal);
  border-radius: 6px;
}
.yp-nav a:hover, .yp-nav a:focus { background: var(--yp-steel-light); text-decoration: none; }
.yp-nav .current-menu-item > a,
.yp-nav .current_page_item > a { color: var(--yp-accent-dark); }

.yp-nav ul ul {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  min-width: 230px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 8px;
  box-shadow: var(--yp-shadow-md);
  padding: .35rem;
  z-index: 20;
}
.yp-nav li:hover > ul,
.yp-nav li:focus-within > ul { display: flex; }

.yp-menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--yp-line);
  border-radius: 6px;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 600;
  color: var(--yp-navy);
  cursor: pointer;
}
.yp-menu-toggle__bars { position: relative; width: 18px; height: 12px; display: inline-block; }
.yp-menu-toggle__bars span,
.yp-menu-toggle__bars::before,
.yp-menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--yp-navy);
}
.yp-menu-toggle__bars::before { top: 0; }
.yp-menu-toggle__bars span { top: 5px; }
.yp-menu-toggle__bars::after { bottom: 0; }

@media (max-width: 979px) {
  .yp-menu-toggle { display: inline-flex; }
  .yp-nav-wrap .yp-btn { display: none; }
  .yp-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--yp-line);
    box-shadow: var(--yp-shadow-md);
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .yp-nav.is-open { display: block; }
  .yp-nav ul { flex-direction: column; gap: 0; padding: .75rem 1.25rem 1.5rem; }
  .yp-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--yp-steel-light); border-radius: 0; }
  .yp-nav ul ul {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
}

/* Hero ------------------------------------------------------------------- */
.yp-hero {
  position: relative;
  color: #fff;
  background: var(--yp-navy-deep);
  isolation: isolate;
}
.yp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.yp-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.yp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 22, 40, .94) 0%, rgba(7, 22, 40, .82) 45%, rgba(11, 31, 56, .55) 100%);
}
.yp-hero__inner {
  padding: clamp(4rem, 11vw, 8.5rem) 0;
  max-width: 820px;
}
.yp-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.25rem); }
.yp-hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #cfdcec;
  margin-bottom: 2rem;
  max-width: 46rem;
}
.yp-hero__facts {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.5rem;
}
.yp-hero__facts li { font-size: .95rem; color: #d7e2ef; }
.yp-hero__facts strong { display: block; color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #6fb0f5; }

/* Page hero -------------------------------------------------------------- */
.yp-page-hero {
  background: var(--yp-navy);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.yp-page-hero h1 { color: #fff; margin-bottom: .35rem; }
.yp-page-hero p { color: #c6d4e5; margin: 0; max-width: 60rem; }
.yp-breadcrumbs {
  font-size: .85rem;
  color: #9fb6cf;
  margin-bottom: .75rem;
}
.yp-breadcrumbs a { color: #cfdcec; }

/* Cards ------------------------------------------------------------------ */
.yp-card {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: var(--yp-radius);
  padding: 1.75rem;
  box-shadow: var(--yp-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.yp-card:hover { box-shadow: var(--yp-shadow-md); transform: translateY(-2px); }
.yp-card h3 { margin-bottom: .5rem; }
.yp-card p:last-child { margin-bottom: 0; }
.yp-card__icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--yp-steel-light);
  color: var(--yp-accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.yp-card__icon svg { width: 22px; height: 22px; }
.yp-section--navy .yp-card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .16);
  color: #d7e2ef;
}
.yp-section--navy .yp-card__icon { background: rgba(255, 255, 255, .1); color: #8cc3ff; }

.yp-card--flat { box-shadow: none; }
.yp-card--flat:hover { transform: none; box-shadow: var(--yp-shadow-sm); }

/* Info list / corporate table ------------------------------------------- */
.yp-info-list { margin: 0; }
.yp-info-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
}
.yp-info-list dt,
.yp-info-list dd {
  margin: 0;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--yp-line);
}
.yp-info-list dt {
  font-weight: 700;
  color: var(--yp-navy);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--yp-bg);
}
.yp-info-list dd { color: #33404f; }
@media (max-width: 640px) {
  .yp-info-list dl { grid-template-columns: 1fr; }
  .yp-info-list dt { border-bottom: 0; }
}

.yp-activity {
  border-left: 4px solid var(--yp-accent);
  padding: 1.5rem 1.75rem;
  background: #fff;
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow-sm);
}
.yp-activity__ssic {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--yp-steel-light);
  color: var(--yp-navy);
  margin-bottom: .75rem;
}

.yp-checklist { list-style: none; margin: 0; padding: 0; }
.yp-checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .7rem;
}
.yp-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: .65rem; height: .65rem;
  border-radius: 2px;
  background: var(--yp-accent);
}

/* CTA -------------------------------------------------------------------- */
.yp-cta {
  background: linear-gradient(120deg, var(--yp-navy) 0%, var(--yp-charcoal) 100%);
  color: #fff;
  border-radius: var(--yp-radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 1.75rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.yp-cta h2 { color: #fff; margin-bottom: .5rem; }
.yp-cta p { color: #c6d4e5; margin: 0; }

/* Contact ---------------------------------------------------------------- */
.yp-contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .yp-contact-grid { grid-template-columns: 1fr; } }

.yp-form { display: grid; gap: 1.1rem; }
.yp-form__row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.yp-field { display: grid; gap: .4rem; }
.yp-field label { font-weight: 600; font-size: .9rem; color: var(--yp-navy); }
.yp-field .yp-required { color: #b3261e; }
.yp-field input,
.yp-field select,
.yp-field textarea {
  width: 100%;
  font: inherit;
  color: var(--yp-text);
  padding: .75rem .85rem;
  border: 1px solid var(--yp-line);
  border-radius: 6px;
  background: #fff;
}
.yp-field textarea { min-height: 160px; resize: vertical; }
.yp-field input:focus,
.yp-field select:focus,
.yp-field textarea:focus {
  border-color: var(--yp-accent);
  outline: 2px solid rgba(31, 122, 224, .25);
  outline-offset: 0;
}
.yp-field__hint { font-size: .82rem; color: var(--yp-steel); }

.yp-notice {
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}
.yp-notice--success { background: #eaf6ee; border-color: #1e7f3c; color: #14522a; }
.yp-notice--error { background: #fdeceb; border-color: #b3261e; color: #7f1a15; }
.yp-notice ul { margin: .5rem 0 0; padding-left: 1.2rem; }

.yp-contact-details { list-style: none; margin: 0; padding: 0; }
.yp-contact-details li { display: flex; gap: .9rem; margin-bottom: 1.25rem; }
.yp-contact-details strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yp-steel);
}
.yp-contact-details address { font-style: normal; }

/* Footer ----------------------------------------------------------------- */
.yp-footer {
  background: var(--yp-navy-deep);
  color: #b9c8da;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .95rem;
}
.yp-footer h2, .yp-footer h3 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.yp-footer a { color: #cfdcec; }
.yp-footer a:hover { color: #fff; }
.yp-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2.5rem;
}
.yp-footer__company { font-weight: 700; color: #fff; }
.yp-footer ul { list-style: none; margin: 0; padding: 0; }
.yp-footer li { margin-bottom: .55rem; }
.yp-footer address { font-style: normal; margin-bottom: 1rem; }
.yp-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .87rem;
}
.yp-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.yp-footer__legal li { margin: 0; }

/* Content / blog --------------------------------------------------------- */
.yp-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.yp-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 979px) { .yp-layout--sidebar { grid-template-columns: 1fr; } }

.yp-entry-content { max-width: 75ch; }
.yp-entry-content > * + * { margin-top: 1.1em; }
.yp-entry-content h2 { margin-top: 2em; }
.yp-entry-content ul,
.yp-entry-content ol { padding-left: 1.4rem; }
.yp-entry-content blockquote {
  margin: 1.5rem 0;
  padding: .5rem 0 .5rem 1.5rem;
  border-left: 4px solid var(--yp-accent);
  color: #3c4a5c;
}
.yp-entry-content img { border-radius: var(--yp-radius); }
.yp-entry-content table { width: 100%; border-collapse: collapse; }
.yp-entry-content th,
.yp-entry-content td { border: 1px solid var(--yp-line); padding: .6rem .75rem; text-align: left; }

.yp-post-card {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow-sm);
  display: flex;
  flex-direction: column;
}
.yp-post-card__body { padding: 1.5rem; }
.yp-post-card h2 { font-size: 1.2rem; }
.yp-post-meta { font-size: .85rem; color: var(--yp-steel); margin-bottom: .6rem; }

.yp-sidebar .widget {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: var(--yp-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.yp-sidebar .widget-title { font-size: 1rem; margin-bottom: .9rem; }
.yp-sidebar ul { list-style: none; margin: 0; padding: 0; }
.yp-sidebar li { margin-bottom: .5rem; }

.yp-pagination { margin-top: 2.5rem; }
.yp-pagination .page-numbers {
  display: inline-block;
  padding: .5rem .85rem;
  border: 1px solid var(--yp-line);
  border-radius: 6px;
  margin: 0 .2rem .4rem 0;
  color: var(--yp-navy);
}
.yp-pagination .page-numbers.current {
  background: var(--yp-navy);
  color: #fff;
  border-color: var(--yp-navy);
}

.yp-search-form { display: flex; gap: .5rem; }
.yp-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--yp-line);
  border-radius: 6px;
}

.yp-comments { margin-top: 3rem; }
.yp-comments .comment-list { list-style: none; padding: 0; }
.yp-comments .comment-list ul { list-style: none; padding-left: 1.5rem; }
.yp-comments article {
  border: 1px solid var(--yp-line);
  border-radius: var(--yp-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.yp-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.yp-404__code { font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--yp-accent); margin: 0; }

.alignwide { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
