/* =========================================================
   Petrós Energy Products, Inc. — Site styles
   Brand: Indigo #1A3078 · Green #7CA23C · Water Blue #205890
   ========================================================= */

:root {
  --indigo-deep: #152A66;
  --indigo: #1A3078;
  --indigo-soft: #2A3F8F;
  --blue: #205890;
  --blue-light: #2E79B5;
  --green: #7CA23C;
  --green-bright: #8DB63F;
  --green-deep: #5E9233;

  --ink: #141A2E;
  --slate: #4A5568;
  --slate-light: #6B7688;
  --surface: #F5F7FA;
  --surface-2: #EEF2F7;
  --border: #E2E8F0;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20, 26, 46, .08), 0 1px 2px rgba(20, 26, 46, .04);
  --shadow: 0 10px 30px rgba(20, 26, 46, .08), 0 4px 10px rgba(20, 26, 46, .04);
  --shadow-lg: 0 24px 60px rgba(20, 26, 46, .14);

  --container: 1160px;
  --header-h: 74px;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Manrope', var(--font-body);
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--indigo); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
section { scroll-margin-top: 84px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .96rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-accent { background: var(--green); color: #10230a; box-shadow: 0 8px 20px rgba(124, 162, 60, .32); }
.btn-accent:hover { background: var(--green-bright); color: #10230a; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 162, 60, .4); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 12px; }
/* Header logo: height derives from the bar height (--header-h) so it always
   scales with the bar. 95% of the bar height, leaving a hair of breathing room. */
.logo-img {
  height: calc(var(--header-h) * 0.95);
  width: auto; display: block;
}
.logo-icon { width: 38px; height: 46px; flex: 0 0 auto; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.72rem;
  color: var(--indigo); letter-spacing: .01em;
}
.logo-name span { color: var(--indigo); }
.logo-sub {
  font-family: var(--font-body); font-weight: 500; font-size: .62rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--green-deep); margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--slate); padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav > a:hover { color: var(--indigo); background: var(--surface); }
.main-nav > a.active { color: var(--indigo); }
.nav-cta { margin-left: 10px; color: #10230a !important; }
.nav-cta:hover { background: var(--green-bright) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--indigo); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* header + hero + stat bar = one full screen; the hero flexes to fill.
   Applies at all widths so mobile behaves the same as desktop. */
.hero-screen {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100dvh - var(--header-h) - 1px);
}
.hero { position: relative; overflow: hidden; color: #fff; flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(141,182,63,.28), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(46,121,181,.42), transparent 60%),
    linear-gradient(135deg, #16265e 0%, #1A3078 46%, #21508a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(2rem, 6vh, 4rem) 24px; max-width: 820px; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #b8e070; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .35em; }
.grad-text { background: linear-gradient(100deg, #9BC63F, #7fd0e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--indigo-deep); color: #fff; flex: 0 0 auto; }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; }
.trust-item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--green-bright); letter-spacing: -0.02em; }
.trust-label { font-size: .82rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px; }
.section-sub { color: var(--slate); font-size: 1.08rem; margin-top: .4em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.about-lead p { color: var(--slate); font-size: 1.08rem; }
.about-lead p:first-child { font-size: 1.18rem; color: var(--ink); }
.about-cards { display: grid; gap: 16px; }
.mini-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green);
}
.mini-card h3 { margin-bottom: 6px; color: var(--indigo); }
.mini-card p { margin: 0; color: var(--slate); font-size: .98rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8e8; }
.product-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(26,48,120,.09), rgba(46,121,181,.12));
  color: var(--indigo);
}
.product-icon svg { width: 26px; height: 26px; }
.product-card:hover .product-icon { background: linear-gradient(140deg, var(--indigo), var(--blue)); color: #fff; }
.product-card h3 { color: var(--indigo); margin-bottom: 8px; }
.product-card p { margin: 0; color: var(--slate); font-size: .96rem; }
.products-cta { text-align: center; margin-top: 44px; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  text-align: center; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  color: #fff; background: linear-gradient(140deg, var(--indigo), var(--blue));
  box-shadow: 0 8px 18px rgba(26,48,120,.25);
}
.cert-card:nth-child(2) .cert-badge { background: linear-gradient(140deg, var(--blue), var(--blue-light)); }
.cert-card:nth-child(3) .cert-badge,
.cert-card:nth-child(4) .cert-badge { background: linear-gradient(140deg, var(--green-deep), var(--green)); box-shadow: 0 8px 18px rgba(94,146,51,.28); }
.cert-card h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--indigo); }
.cert-card p { margin: 0; color: var(--slate-light); font-size: .9rem; }
.cert-foot { text-align: center; margin-top: 34px; color: var(--slate); }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 15px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--mono, var(--indigo)); letter-spacing: .04em;
}
.partner-logo { display: flex; align-items: center; height: 52px; margin-bottom: 15px; }
.partner-logo img { max-height: 50px; max-width: 200px; width: auto; height: auto; display: block; }
.partner-card h3 { color: var(--indigo); margin-bottom: 8px; }
.partner-card p { color: var(--slate); font-size: .96rem; flex: 1; }
.partner-card a { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.contact-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
  max-width: 640px; width: 100%; margin: 0 auto;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field span { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(46,121,181,.14);
}
.field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); width: 100%; cursor: pointer;
  padding: 12px 40px 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field select:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(46,121,181,.14); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: .9rem; margin: 12px 0 0; min-height: 1.2em; }
.form-note.ok { color: var(--green-deep); font-weight: 600; }
.form-note.err { color: #b4232a; font-weight: 600; }

.contact-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; text-align: center; max-width: 680px; margin: 0 auto clamp(30px, 5vw, 44px); }
.info-block h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-deep); margin-bottom: 6px; }
.info-block p { margin: 0; color: var(--slate); }
.info-block a { color: var(--slate); }
.info-block a:hover { color: var(--indigo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: rgba(255,255,255,.78); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 60px 24px 44px; }
.logo--footer .logo-name, .logo--footer .logo-name span { color: #fff; }
.logo--footer .logo-sub { color: var(--green-bright); }
.footer-logo-img { height: 48px; width: auto; display: block; }
.footer-tag { margin-top: 18px; max-width: 380px; font-size: .96rem; color: rgba(255,255,255,.66); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-nav a { color: rgba(255,255,255,.78); padding: 5px 0; font-size: .96rem; }
.footer-nav a:hover { color: var(--green-bright); }
.footer-contact p { margin: 0 0 10px; font-size: .96rem; color: rgba(255,255,255,.72); }
.footer-contact a { color: rgba(255,255,255,.86); }
.footer-contact a:hover { color: var(--green-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 24px; font-size: .86rem; color: rgba(255,255,255,.55); text-align: center; }
.footer-bottom-inner p { margin: 0; }
.built { text-align: center; }
.built a { display: inline-flex; align-items: center; text-decoration: none; }
.built img { height: 50px; width: auto; opacity: .6; transition: opacity .2s ease; display: block; }
.built a:hover img { opacity: .95; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 20px 22px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: 13px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { gap: 16px; }
}

@media (max-width: 460px) {
  .product-grid, .partner-grid, .cert-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 1.5rem; }
  .logo-icon { width: 33px; height: 40px; }
}
