/*
  PrimeGas & Commodities — Responsive refinement & interaction layer.
  Brand palette retained from the previous design:
  deep evergreen #18392f, darkest evergreen #0e2a23, muted gold #d9c083,
  warm ivory #f6f5ef and white. No new brand colours have been introduced.
*/
:root {
  --brand-green: #18392f;
  --brand-green-deep: #0e2a23;
  --brand-gold: #d9c083;
  --brand-ivory: #f6f5ef;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --soft-shadow: 0 18px 45px rgba(9, 34, 28, .085);
}

html { scroll-padding-top: 100px; }
body { font-size: 15px; overflow-x: clip; }
main, section, .container { min-width: 0; }
img, svg, iframe { max-width: 100%; }
.container { width: min(calc(100% - 80px), var(--max)); }
:where(.service-card, .commodity-card, .step-card, .value-card, .contact-form-wrap) { min-width: 0; }
:where(h1, h2, h3, p, a, strong, .contact-info-row) { overflow-wrap: break-word; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 4px;
}

/* Navigation stays visible after the announcement scrolls out of view. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  transition: box-shadow .32s var(--ease-out), background .32s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 32px rgba(12, 37, 29, .11); }
.site-header .container { gap: clamp(14px, 2.1vw, 34px); }
.desktop-nav { gap: clamp(16px, 2.3vw, 34px); }
.nav-link { font-size: 12px; font-weight: 750; white-space: nowrap; padding: 10px 0; }
.nav-link::after { bottom: 3px; height: 2px; background: var(--brand-gold); }
.nav-cta { min-height: 46px; white-space: nowrap; }
.brand { flex-shrink: 0; }
.brand-symbol { transition: transform .45s var(--ease-out); }
.brand:hover .brand-symbol, .brand:focus-visible .brand-symbol { transform: rotate(-4deg) scale(1.055); }
.mobile-toggle, .mobile-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.mobile-toggle { border-radius: 10px; }
.mobile-toggle:hover { background: var(--brand-ivory); }

/* Hero typography and page rhythm scale fluidly across desktop and tablet. */
.hero--home { min-height: min(760px, 87svh); }
.hero-inner { max-width: 760px; padding: clamp(86px, 8vw, 126px) 0 clamp(120px, 10vw, 147px); }
.hero h1 { font-size: clamp(50px, 5.8vw, 88px); line-height: 1.09; text-wrap: balance; }
.hero-lead, .subhero p { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.8; }
.hero-overlay-card { transition: transform .55s var(--ease-out), background .4s ease; }
.hero-overlay-card:hover { transform: translateY(-6px); background: rgba(15, 45, 37, .67); }
.subhero h1 { text-wrap: balance; }
.section { padding-block: clamp(65px, 7.2vw, 110px); }
.section-heading h2, .section h2 { text-wrap: balance; }
.section-heading p, .story-content > p, .lead-grid p, .approach-intro p,
.reach-content p, .contact-info > p, .section-heading p, .cta-box p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.86;
}

/* Hover states: elegant, subtle and purposeful; disabled for touch devices. */
.btn, .nav-cta, .location-directions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .25s ease, border-color .25s ease, color .25s ease;
}
.btn::before, .nav-cta::before, .location-directions::before {
  content: '';
  position: absolute;
  top: -100%; left: -48%;
  width: 33%; height: 310%;
  transform: rotate(23deg) translateX(-220%);
  background: rgba(255, 255, 255, .18);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.btn svg, .nav-cta svg, .location-directions svg,
.text-link svg, .commodity-card a svg, .service-footer svg {
  transition: transform .35s var(--ease-out);
}
.service-card, .value-card, .step-card, .commodity-card {
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .35s ease, background .35s ease;
}
.service-photo { isolation: isolate; }
.service-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease-out), filter .6s ease;
  z-index: 0;
}
.service-no { z-index: 2; }
.service-photo::after { z-index: 1; }
.service-card .service-footer a { min-width: 40px; min-height: 40px; }
.service-footer a { transition: transform .35s var(--ease-out), background .25s ease, color .25s ease; }
.commodity-card { position: relative; overflow: hidden; }
.commodity-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--brand-gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.approach-row { transition: padding-left .35s var(--ease-out), background .35s ease; }
.approach-row svg { transition: transform .35s var(--ease-out), color .3s ease; }
.value-icon { transition: transform .45s var(--ease-out), background .3s ease; }
.category-btn { min-height: 44px; transition: transform .25s var(--ease-out), box-shadow .25s ease, color .25s ease, background .25s ease, border-color .25s ease; }
.footer-col a { width: fit-content; transition: color .25s ease, transform .25s var(--ease-out); }
.accordion summary { transition: color .25s ease, padding-left .25s var(--ease-out); }
.accordion summary::after { transition: transform .3s var(--ease-out); }
.accordion details[open] summary::after { transform: rotate(180deg); }
.contact-info-icon { transition: transform .35s var(--ease-out), background .35s ease; }
.region-map, .location-map-frame { transition: box-shadow .45s var(--ease-out), border-color .35s ease; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover, .nav-cta:hover, .location-directions:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 29px rgba(13, 46, 33, .20);
  }
  .btn:hover::before, .nav-cta:hover::before, .location-directions:hover::before { transform: rotate(23deg) translateX(800%); }
  .btn:hover svg, .nav-cta:hover svg, .location-directions:hover svg,
  .text-link:hover svg, .commodity-card a:hover svg { transform: translate(4px, -1px); }
  .nav-link:hover { color: var(--brand-green); }
  .service-card:hover { transform: translateY(-9px); box-shadow: 0 25px 60px rgba(9, 34, 28, .14); border-color: #d5d9ce; }
  .service-card:hover .service-photo::before { transform: scale(1.085); filter: saturate(1.1); }
  .service-card:hover .service-footer a { transform: rotate(45deg); background: var(--brand-green); color: #fff; }
  .service-card:hover .service-footer a svg { transform: rotate(-45deg); }
  .commodity-card:hover { transform: translateY(-7px); box-shadow: var(--soft-shadow); border-color: #cbd9c9; }
  .commodity-card:hover::after { transform: scaleX(1); }
  .value-card:hover, .step-card:hover { transform: translateY(-6px); box-shadow: var(--soft-shadow); border-color: #d0d9ca; }
  .value-card:hover .value-icon { transform: rotate(-8deg) scale(1.08); background: #e1ead5; }
  .step-card:hover { border-top-color: var(--brand-green); }
  .approach-row:hover { padding-left: 17px; background: #f6f8f3; }
  .approach-row:hover svg { transform: translate(3px, -3px); color: var(--brand-green); }
  .category-btn:hover:not([aria-pressed="true"]) { transform: translateY(-2px); box-shadow: 0 7px 19px rgba(13, 46, 33, .09); }
  .footer-col a:hover { transform: translateX(4px); }
  .accordion summary:hover { color: #1c6142; padding-left: 8px; }
  .contact-info-row:hover .contact-info-icon { transform: scale(1.08); background: #e9f0e5; }
  .region-map:hover, .location-map-frame:hover { box-shadow: 0 23px 60px rgba(2, 28, 18, .14); border-color: #abbda7; }
  .story-visual:hover .story-main-img { transform: scale(1.015); }
  .story-visual:hover .story-mini { transform: translate(-3px, -7px); }
}
.story-main-img, .story-mini { transition: transform .7s var(--ease-out); }

/* Key animation: progressive enhancement adds this class after page load. */
.motion-ready .reveal-on-scroll {
  opacity: 0;
  translate: 0 25px;
  transition: opacity .7s var(--ease-out), translate .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal-on-scroll.is-visible { opacity: 1; translate: 0 0; }
.hero-inner > .eyebrow, .hero-inner > h1, .hero-inner > .hero-lead, .hero-inner > .hero-actions { animation: hero-arrive .85s var(--ease-out) both; }
.hero-inner > h1 { animation-delay: .08s; }
.hero-inner > .hero-lead { animation-delay: .17s; }
.hero-inner > .hero-actions { animation-delay: .26s; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet / compact desktop: grids must breathe instead of squeezing. */
@media (max-width: 1220px) {
  .container { width: min(calc(100% - 64px), var(--max)); }
  .hero h1 { font-size: clamp(51px, 6.4vw, 75px); }
  .service-body { padding: 25px 23px; }
  .service-photo { height: 220px; }
  .services-grid, .value-grid { gap: 16px; }
  .footer-grid { gap: 30px; }
  .story-layout { gap: 45px; }
  .reach-grid { gap: 35px; }
  .approach-layout { gap: 40px; }
}

@media (max-width: 1000px) {
  .site-header { height: 75px; }
  .mobile-toggle { display: inline-flex; }
  .mobile-menu { width: min(420px, 90vw); padding: 96px 30px 42px; }
  .mobile-menu a { min-height: 57px; display: flex; align-items: center; padding: 16px 0; font-size: clamp(17px, 2.3vw, 20px); }
  .mobile-menu .mobile-cta { justify-content: center; min-height: 54px; }
  .proof-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 0 18px; }
  .proof-item strong { font-size: 13px; }
  .proof-item span { font-size: 11px; }
  .services-grid { gap: 14px; }
  .service-body h3 { font-size: 20px; }
  .service-body p { font-size: 13px; }
  .commodity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reach-grid { grid-template-columns: 1fr 1fr; }
  .reach-content h2 { font-size: clamp(38px, 4.2vw, 52px); }
  .reach-content { padding: 55px 0; }
  .reach-art { min-width: 0; padding: 22px 0; }
  .region-map iframe { height: 280px; }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-form-wrap { padding: 32px 28px; }
}

@media (max-width: 800px) {
  .container { width: min(calc(100% - 42px), var(--max)); }
  .section { padding-block: 75px; }
  .section-head-flex { align-items: start; }
  .hero--home { min-height: 630px; }
  .hero-inner { padding: 100px 0 132px; max-width: 100%; }
  .hero h1 { font-size: clamp(51px, 8.1vw, 70px); }
  .hero-overlay-card, .hero-vertical { display: none; }
  .hero-lead { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .services-grid .service-card:last-child .service-photo { height: 270px; }
  .service-photo { height: 215px; }
  .story-layout, .lead-grid, .approach-layout, .capabilities-layout,
  .contact-layout, .faq-grid, .reach-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-visual { max-width: 580px; height: 430px; }
  .story-stamp { right: 4px; }
  .approach-intro p { max-width: 650px; }
  .reach-content { padding: 69px 0 0; }
  .reach-content h2 { max-width: 670px; }
  .reach-art { padding: 28px 0 60px; }
  .region-map { max-width: 100%; }
  .region-map iframe { height: 310px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .lead-photo { height: 350px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { gap: 42px; }
  .contact-info-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .contact-info-row { grid-template-columns: 1fr; gap: 8px; }
  .faq-grid { gap: 18px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 34px), var(--max)); }
  .announcement { height: 30px; }
  .announcement > .container { justify-content: center; }
  .announcement-right { display: none; }
  .site-header { height: 67px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-main { font-size: 22px; }
  .brand-sub { font-size: 7px; }
  .mobile-menu { width: min(380px, 91vw); padding-inline: 25px; }
  .hero--home { min-height: 0; background-position: center, 62% center, center; }
  .hero-inner { padding: 78px 0 138px; }
  .hero h1 { font-size: clamp(39px, 10.8vw, 58px); line-height: 1.1; margin-block: 18px; }
  .hero-lead { font-size: 14px; line-height: 1.75; margin-bottom: 25px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 180px; min-width: 0; white-space: normal; text-align: center; font-size: 12px; }
  .hero-actions .btn svg { flex-shrink: 0; }
  .hero-meta { bottom: 26px; gap: 9px; font-size: 9px; letter-spacing: .07em; flex-wrap: wrap; }
  .hero-meta .line { width: 21px; }
  .section { padding-block: 65px; }
  .section-heading h2, .section h2, .story-content h2 { font-size: clamp(32px, 8vw, 43px); }
  .section-heading p { font-size: 14px; }
  .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .section-head-flex .section-heading { margin-bottom: 20px; }
  .proof-items { gap: 14px 0; padding: 23px 0; }
  .proof-item { gap: 11px; padding: 7px 10px; }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(even) { border-left: 1px solid #d9ded4; }
  .proof-item strong { font-size: 12px; }
  .proof-item span { font-size: 10.5px; line-height: 1.45; }
  .proof-icon { height: 29px; width: 29px; }
  .proof-icon svg { height: 23px; width: 23px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .services-grid .service-card:last-child .service-photo { height: 220px; }
  .service-photo { height: 220px; }
  .service-body { padding: 25px; }
  .service-body h3 { font-size: 22px; }
  .service-body p { font-size: 13.5px; min-height: 0; }
  .story-visual { height: 365px; }
  .story-mini { width: 50%; height: 170px; border-width: 7px; }
  .story-stats { gap: 10px; flex-wrap: wrap; }
  .story-stats > div { min-width: 90px; }
  .story-stats strong { font-size: 20px; }
  .story-stats small { font-size: 11px; }
  .approach-row { padding-block: 19px; gap: 10px; grid-template-columns: 34px 1fr 20px; }
  .approach-row h3 { font-size: 18px; }
  .approach-row p { font-size: 13px; }
  .reach-content { padding: 65px 0 0; }
  .reach-art { padding: 27px 0 49px; }
  .region-map iframe { height: 270px; }
  .region-map-footer a { min-height: 36px; }
  .cta-box h2 { font-size: clamp(32px, 8vw, 42px); }
  .cta-box .btn { max-width: 100%; white-space: normal; }
  .subhero { min-height: 355px; }
  .subhero-inner { padding-block: 64px; }
  .subhero h1 { font-size: clamp(42px, 9.4vw, 57px); }
  .subhero p { font-size: 14px; }
  .subhero .breadcrumb { margin-bottom: 24px; font-size: 10px; }
  .lead-photo { height: 310px; }
  .founder-year { font-size: 64px; }
  .value-grid, .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .value-card { padding: 29px; }
  .value-card p, .step-card p { font-size: 13px; }
  .step-card { min-height: 0; padding: 25px 26px; }
  .step-card .step-num { margin-bottom: 20px; }
  .commodity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .commodity-card { min-height: 220px; padding: 20px 16px; }
  .commodity-card .commodity-label { font-size: 10px; margin-bottom: 17px; }
  .commodity-card h3 { font-size: 17px; }
  .commodity-card p { font-size: 12px; }
  .commodity-card a { font-size: 11px; }
  .category-bar { gap: 8px; }
  .category-btn { flex: 0 1 auto; padding: 10px 14px; font-size: 11.5px; }
  .product-feature .product-text { padding: 32px 23px 38px; }
  .product-text h2 { font-size: clamp(30px, 7.6vw, 41px); }
  .product-feature .product-visual { min-height: 260px; }
  .contact-info-list { grid-template-columns: 1fr; gap: 21px; }
  .contact-info-row { grid-template-columns: 44px 1fr; }
  .contact-info-row a, .contact-info-row p { font-size: 13.5px; }
  .contact-form-wrap { padding: 26px 20px; }
  .contact-form-wrap h3 { font-size: 26px; }
  .contact-form-wrap > .form-lead { font-size: 13px; }
  .field label { font-size: 12px; }
  .field input, .field textarea, .field select { font-size: 16px; border-radius: 6px; min-height: 50px; }
  .form-help { font-size: 11px; }
  .form-controls { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .form-controls .btn { width: 100%; margin: 0; min-height: 51px; }
  .accordion summary { font-size: 15px; padding: 20px 2px; }
  .accordion details p { font-size: 13px; padding-right: 14px; }
  .location-map-section { margin-top: 55px; }
  .location-map-heading h2 { font-size: clamp(31px, 7vw, 43px); }
  .location-directions { min-height: 48px; }
  .location-map-frame { height: 320px; }
  .location-map-bottom { align-items: flex-start; }
  .location-map-links { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 21px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 11px; }
  .footer-col a, .footer-col p { font-size: 12.5px; }
  .footer-bottom { font-size: 11px; text-align: center; }
}

@media (max-width: 395px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .brand { gap: 7px; min-width: 0; }
  .brand-main { font-size: 21px; }
  .brand-sub { font-size: 6.7px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(37px, 10.6vw, 43px); }
  .hero-actions .btn { flex-basis: 100%; }
  .hero-inner { padding-bottom: 128px; }
  .hero-meta { font-size: 8px; }
  .proof-items { grid-template-columns: 1fr 1fr; }
  .proof-item { display: block; }
  .proof-icon { margin-bottom: 7px; }
  .story-visual { height: 300px; }
  .story-mini { height: 136px; }
  .story-stamp { width: 82px; height: 82px; border-width: 7px; }
  .region-map iframe { height: 235px; }
  .region-map-footer { gap: 6px; }
  .region-map-footer span, .region-map-footer a { font-size: 10px; }
  .commodity-grid { grid-template-columns: 1fr; }
  .commodity-card { min-height: 0; }
  .category-btn { font-size: 11px; padding-inline: 12px; }
  .location-map-frame { height: 275px; }
}

/* Small viewport landscape, touch devices, and users who prefer stillness. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero--home { min-height: 460px; }
  .hero-inner { padding-block: 64px 110px; }
  .mobile-menu { padding-top: 76px; }
}
@media (hover: none) {
  .service-card, .commodity-card, .value-card, .step-card, .btn { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-on-scroll { opacity: 1 !important; translate: 0 0 !important; }
}
