/* CLP Petroleum Energy — brand palette taken from the 2026 company profile */
:root {
  --navy: #0b2133;
  --navy-2: #142b3b;
  --navy-3: #1c3a50;
  --cream: #f5f2eb;
  --cream-2: #ece7dc;
  --gold: #d9b374;
  --gold-2: #be985d;
  --ink: #142b3b;
  --slate: #596870;
  --mist: #cdd5da;
  --white: #ffffff;

  --font-head: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.15em; }
.ic-lg { width: 32px; height: 32px; color: var(--gold-2); }
.ic-xl { width: 40px; height: 40px; color: var(--gold-2); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; }
.muted { color: var(--slate); }
.small { font-size: .85rem; color: var(--slate); }
.note { color: var(--gold-2); font-weight: 500; margin-top: 1.5rem; }
.role { color: var(--gold); font-family: var(--font-head); font-size: 1.05rem; margin-top: -.3rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e6c48a; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(11,33,51,.0);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(11,33,51,.96); box-shadow: 0 2px 20px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  color: var(--white); text-decoration: none; font-family: var(--font-head);
  font-size: .95rem; letter-spacing: .03em; opacity: .88; transition: color .2s, opacity .2s;
}
.site-nav a:hover { color: var(--gold); opacity: 1; }
.site-nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: .45rem 1rem; border-radius: var(--radius); opacity: 1; }
.site-nav .nav-cta:hover { background: var(--gold); color: var(--navy); }
.header-tools { display: flex; align-items: center; gap: .6rem; margin-left: 1.4rem; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--white); text-decoration: none; padding: .35rem .6rem; min-width: 40px; min-height: 32px; display: grid; place-items: center; opacity: .75; }
.lang-switch a:hover { opacity: 1; color: var(--gold); }
.lang-switch a[aria-current="page"] { background: var(--gold); color: var(--navy); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,33,51,.92) 0%, rgba(11,33,51,.65) 45%, rgba(11,33,51,.15) 100%), linear-gradient(0deg, rgba(11,33,51,.8), transparent 45%); }
.hero-content { position: relative; padding-bottom: clamp(64px, 12vh, 120px); padding-top: 140px; }
.hero-content .eyebrow { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 540px; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.legal-name { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0; }

/* Sections */
.section { padding: var(--section-y) 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark .lead { color: var(--white); }
.section.dark .muted, .section.dark p { color: var(--mist); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .eyebrow { color: var(--gold); }
.section.dark .ic-lg, .section.dark .ic-xl { color: var(--gold); }
.section.light { background: var(--cream); }
.section.light.alt { background: var(--cream-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev > :first-child { order: 0; }
.split-tight { gap: clamp(24px, 4vw, 48px); }
.split-top { align-items: start; }

.media { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s ease; }
.media:hover img { transform: scale(1.03); }
.media-portrait img { aspect-ratio: 3 / 4; max-height: 620px; }
.media-short img { aspect-ratio: 16 / 9; object-position: center 15%; }
.media-short { margin-top: 2rem; }
.media figcaption { padding: .9rem 0 0; font-size: .9rem; color: var(--slate); }
.media figcaption strong { display: block; color: var(--gold-2); font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; }
.dark .media figcaption { color: var(--mist); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: 2.2rem; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--gold); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--mist); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 2.35rem; height: 1px; background: linear-gradient(90deg, var(--gold-2), rgba(190,152,93,.15)); }
.timeline li { position: relative; padding-top: 0; }
.timeline .t-year { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--gold-2); margin-bottom: 1.6rem; }
.timeline li::before { content: ""; position: absolute; top: calc(2.35rem - 5px); left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 5px var(--cream); }
.timeline h3 { margin-bottom: .4rem; }
.timeline p { color: var(--slate); font-size: .95rem; }

/* Quote */
.quote { margin: 1.5rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--gold-2); }
.quote p { font-size: 1.08rem; color: var(--ink); }

/* Feature lists */
.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.6rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list h3 { margin-bottom: .2rem; }
.feature-list p { margin: 0; color: var(--slate); }
.dark .feature-list h3 { color: var(--gold); font-weight: 500; }
.dark .feature-list p { color: var(--mist); }

/* Product table */
.product-table { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.product-table li { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid rgba(20,43,59,.12); }
.product-table .ic { width: 22px; height: 22px; color: var(--gold-2); }
.product-table strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.product-table span { color: var(--slate); font-size: .95rem; }

.product-groups { display: grid; gap: 1.8rem; }
.pg { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(20,43,59,.12); }
.pg:last-child { border-bottom: 0; }
.pg h3 { color: var(--gold-2); font-weight: 500; margin-bottom: .3rem; }
.pg p { margin: 0; font-size: 1.05rem; }

/* Refinery grid */
.refinery-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); }
.rp-card h3 { display: flex; align-items: center; gap: .6rem; color: var(--gold); font-weight: 500; font-size: 1.35rem; }
.rp-card h3 .ic { width: 26px; height: 26px; }
.rp-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.rp-body img, .urea-imgs img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.rp-body img { aspect-ratio: 4/3; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .55rem 0; font-size: 1.05rem; color: var(--white); border-bottom: 1px solid rgba(205,213,218,.15); }
.plain-list li.small { color: var(--mist); border: 0; }
.urea-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1rem; }
.urea-imgs img { aspect-ratio: 3/4; }

/* Supply */
.banner { margin: 0 0 clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; }
.banner img { width: 100%; aspect-ratio: 5 / 1; object-fit: cover; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.col { border-top: 2px solid var(--gold-2); padding-top: 1.2rem; }
.col h3 { color: var(--gold-2); font-weight: 500; }
.col p { color: var(--slate); margin: 0; }

/* Numbered lists */
.num-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.num-list li { display: flex; gap: 1.2rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgba(205,213,218,.15); font-family: var(--font-head); font-size: 1.15rem; }
.num-list li > span { color: var(--gold); font-size: .95rem; min-width: 1.6rem; }
.num-list b { font-weight: 400; }
.num-list-light li { border-color: rgba(20,43,59,.12); font-family: var(--font-body); font-size: 1rem; }
.num-list-light li > span { color: var(--gold-2); font-family: var(--font-head); }
.num-list-light strong { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; }
.num-list-light p { margin: .15rem 0 0; color: var(--slate); }

/* Network */
.network { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.world { width: 100%; mix-blend-mode: lighten; }
.network-points { margin: 0; display: grid; gap: 1.4rem; }
.network-points dt { font-family: var(--font-head); color: var(--gold); font-size: 1.15rem; }
.network-points dd { margin: .15rem 0 0; color: var(--mist); }

/* Partners */
.partners { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.partner-logo { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 1.4rem; }
.partner-logo.dark-bg { background: var(--navy); }
.partner-logo img { max-height: 100%; width: auto; }
.partner p { color: var(--slate); }
.partner-join { align-self: center; margin-top: -60px; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-2); display: grid; place-items: center; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process li { background: var(--white); border: 1px solid rgba(190,152,93,.35); border-radius: 8px; padding: 1.4rem 1.2rem; position: relative; transition: transform .25s, box-shadow .25s; }
.process li:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,33,51,.08); }
.process .step { display: block; font-family: var(--font-head); color: var(--gold-2); margin-bottom: 1rem; }
.process .ic-xl { margin-bottom: 1rem; }
.process h3 { font-size: 1.05rem; }
.process p { font-size: .9rem; color: var(--slate); margin: 0; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); text-align: center; }
.value-ic { width: 96px; height: 96px; margin: 0 auto 1.3rem; border-radius: 50%; border: 1.5px solid var(--gold-2); display: grid; place-items: center; background: var(--white); }
.value p { color: var(--slate); font-size: .95rem; }

/* Feature banner & CTA */
.feature-banner, .cta { position: relative; color: var(--white); overflow: hidden; background: var(--navy); }
.feature-banner > img, .cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,33,51,.88), rgba(11,33,51,.35) 70%, transparent); }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,33,51,.95), rgba(11,33,51,.7) 50%, rgba(11,33,51,.3)); }
.feature-content, .cta-content { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(96px, 14vw, 180px); max-width: 1200px; }
.feature-content > *, .cta-content > * { max-width: 620px; }
.feature-content .eyebrow { color: var(--gold); }
.feature-content p { color: var(--mist); }
.feature-content .lead { color: var(--white); }
.cta-content .lead { color: var(--mist); }
.cta-contact { margin-top: 2.2rem; }
.cta-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.5rem; max-width: 760px !important; }
.cta-item { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cta-label { font-family: var(--font-head); color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.cta-contact a { align-items: flex-start; overflow-wrap: anywhere; }
.cta-contact a .ic { margin-top: .3em; }
.cta-contact a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--white); }
.cta-contact a:hover { color: var(--gold); }

/* Form */
.enquiry-form { background: var(--white); border-radius: 10px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 20px 50px rgba(11,33,51,.08); display: grid; gap: 1rem; }
.enquiry-form h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: .3rem; }
.enquiry-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enquiry-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--slate); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font: inherit; font-size: .95rem; color: var(--ink); width: 100%;
  padding: .7rem .8rem; border: 1px solid #d8d3c7; border-radius: var(--radius); background: #fcfbf8;
  transition: border-color .2s, box-shadow .2s;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217,179,116,.25); }
.enquiry-form .invalid { border-color: #c0533a; }
.enquiry-form .btn { justify-self: start; margin-top: .4rem; }
.form-msg { margin: 0; font-size: .9rem; color: var(--slate); min-height: 1.3em; }
.form-direct { margin: 0; font-size: .9rem; color: var(--slate); }
.form-direct a { color: var(--gold-2); font-weight: 600; }

/* Footer */
.site-footer { background: #071826; color: var(--mist); padding: 48px 0; text-align: center; }
.footer-logo { height: 56px; width: auto; margin: 0 auto 1rem; }
.site-footer p, .site-footer address { margin: .3rem 0; font-size: .9rem; font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: .8rem !important; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .small { color: rgba(205,213,218,.6); margin-top: 1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(3, 1fr); }
  .cols-4, .values { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .timeline li::before { display: none; }
  .timeline .t-year { margin-bottom: .6rem; }
  .refinery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 24px;
    transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s;
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
  }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open .site-header { background: var(--navy); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split, .network { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 2; }
  .media-portrait img { max-height: 480px; aspect-ratio: 4 / 5; }
  .partners { grid-template-columns: 1fr; }
  .partner-join { margin: 0 auto; }
  .banner img { aspect-ratio: 3 / 1; }
}
@media (max-width: 640px) {
  .brand img { height: 36px; }
  .process { grid-template-columns: 1fr 1fr; }
  .cols-4, .values, .timeline { grid-template-columns: 1fr; }
  .rp-body { grid-template-columns: 1fr; }
  .product-table li { grid-template-columns: 24px 1fr; }
  .product-table span { grid-column: 2; margin-top: -.6rem; }
  .enquiry-form .row { grid-template-columns: 1fr; }
  .cta-contact { grid-template-columns: 1fr; }
  .enquiry-form input, .enquiry-form select, .enquiry-form textarea { font-size: 16px; }
}
@media (max-width: 420px) {
  .process { grid-template-columns: 1fr; }
}
