/*
Theme Name: O2X Energies
Theme URI: https://o2xenergies.com
Author: O2X Energies
Description: Custom theme for O2X Energies, a Dubai-based LPG and refined petroleum trading company. Elementor compatible, SEO-ready.
Version: 1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: o2x-energies
*/

  :root{
    --bg:#0B1E2D; --panel:#0F2233; --panel-2:#122A3D;
    --text:#F3EFE6; --text-dim:#9FB0B8; --text-mute:#6E828C;
    --accent:#D98E3F; --accent-dim:#B9762F;
    --line: rgba(243,239,230,0.14); --line-strong: rgba(243,239,230,0.28);
  }
  html[data-theme="light"]{
    --bg:#F6F4EE; --panel:#FFFFFF; --panel-2:#EFEAE0;
    --text:#16242F; --text-dim:#4C5A63; --text-mute:#7A8891;
    --accent:#B9762F; --accent-dim:#8F5B21;
    --line: rgba(22,36,47,0.12); --line-strong: rgba(22,36,47,0.22);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{margin:0; background:var(--bg); color:var(--text); font-family:'IBM Plex Sans', Arial, sans-serif; font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; transition:background .2s ease, color .2s ease; overflow-x:hidden;}
  h1,h2,h3{font-family:'Archivo', Arial, sans-serif; font-weight:800; letter-spacing:-0.01em; margin:0;}
  h1,h2{text-transform:uppercase; letter-spacing:0.005em;}
  a{color:inherit;} img{display:block; max-width:100%;}
  .wrap{max-width:1140px; margin:0 auto; padding:0 32px;}
  ::selection{background:var(--accent); color:var(--bg);}
  :focus-visible{outline:2px solid var(--accent); outline-offset:3px;}

  /* Scroll reveal — content is visible by default; hidden state only applies
     once the .js class (set by an inline script) confirms JS actually ran,
     so a blocked/failed script can never leave content permanently hidden. */
  .js .reveal{opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);}
  .js .reveal.in{opacity:1; transform:translateY(0);}
  .js .reveal-stagger.in > *{opacity:1; transform:translateY(0);}
  .js .reveal-stagger > *{opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease;}
  .js .reveal-stagger > *:nth-child(1){transition-delay:.02s;}
  .js .reveal-stagger > *:nth-child(2){transition-delay:.12s;}
  .js .reveal-stagger > *:nth-child(3){transition-delay:.22s;}
  @media (prefers-reduced-motion: reduce){
    *{transition-duration:.01ms !important; scroll-behavior:auto !important;}
    .reveal, .reveal-stagger > *{opacity:1 !important; transform:none !important;}
  }

  header.site{position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--line);}
  nav.wrap{display:flex; align-items:center; justify-content:space-between; height:74px;}
  .brand{display:flex; align-items:baseline; gap:2px; font-size:21px; font-weight:800; text-decoration:none;}
  .brand .o2{color:var(--accent);}
  .brand small{font-family:'IBM Plex Sans'; font-weight:500; font-size:10.5px; letter-spacing:0.2em; color:var(--text-dim); margin-left:9px;}
  nav ul{list-style:none; display:flex; gap:30px; margin:0; padding:0;}
  nav ul a{font-size:14px; color:var(--text-dim); text-decoration:none; transition:color .15s; position:relative;}
  nav ul a::after{content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px; background:var(--accent); transition:width .2s ease;}
  nav ul a:hover{color:var(--text);}
  nav ul a:hover::after{width:100%;}
  .btn{display:inline-flex; align-items:center; gap:8px; padding:11px 20px; font-size:14px; font-weight:600; text-decoration:none; border:1px solid transparent; border-radius:2px; cursor:pointer; transition:background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;}
  .btn:active{transform:scale(.97);}
  .btn-accent{background:var(--accent); color:var(--bg);}
  .btn-accent:hover{opacity:.88;}
  .btn-outline{border-color:var(--line-strong); color:var(--text); background:transparent;}
  .btn-outline:hover{border-color:var(--accent); color:var(--accent);}
  .nav-cta{display:flex; align-items:center; gap:14px;}
  .nav-links-desk{display:flex;}
  .theme-toggle{width:38px; height:38px; border-radius:2px; border:1px solid var(--line-strong); background:transparent; color:var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer;}
  .theme-toggle:hover{border-color:var(--accent); color:var(--accent);}
  .theme-toggle svg{width:18px; height:18px;}
  @media (max-width:820px){ .nav-links-desk{display:none;} }

  .hero{display:grid; grid-template-columns:1.05fr 0.95fr; border-bottom:1px solid var(--line);}
  .hero-copy{padding:88px 48px 64px 32px; max-width:600px; display:flex; flex-direction:column; justify-content:center;}
  .eyebrow{display:flex; align-items:center; gap:12px; color:var(--accent); font-size:12.5px; letter-spacing:0.14em; margin-bottom:24px;}
  .eyebrow .stub{width:32px; height:1px; background:var(--accent);}
  h1.hero-h{font-size:clamp(34px,4.4vw,54px); line-height:1.08; color:var(--text);}
  h1.hero-h em{font-style:normal; color:var(--accent);}
  .hero-sub{margin-top:22px; color:var(--text-dim); font-size:16.5px; max-width:500px;}
  .hero-actions{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
  .hero-visual{position:relative; background:#08161f; min-height:420px; overflow:hidden;}
  .hero-visual .parallax-img{width:100%; height:130%; object-fit:cover; position:absolute; top:-15%; left:0; filter:saturate(.92) contrast(1.04); will-change:transform;}
  .hero-visual::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.5) 100%); z-index:1;}
  .hero-visual .tag{position:absolute; left:22px; bottom:20px; z-index:2; font-family:'IBM Plex Mono'; font-size:11.5px; color:#F3EFE6; background:rgba(11,30,45,0.6); padding:6px 11px; border:1px solid rgba(243,239,230,.28);}
  @media (max-width:900px){ .hero{grid-template-columns:1fr;} .hero-copy{padding:56px 24px 36px;} .hero-visual{min-height:260px;} }

  .strip{border-bottom:1px solid var(--line); background:var(--panel);}
  .strip .wrap{display:flex; align-items:center; gap:0; padding:14px 32px; font-family:'IBM Plex Mono'; font-size:12px; color:var(--text-dim); flex-wrap:wrap; row-gap:8px;}
  .strip span{white-space:nowrap;}
  .strip .sep{color:var(--accent-dim); margin:0 16px;}

  section{padding:84px 0; border-bottom:1px solid var(--line);}
  section:last-of-type{border-bottom:none;}
  .kicker{display:flex; align-items:center; gap:12px; margin-bottom:20px; color:var(--accent); font-size:12.5px; letter-spacing:0.14em;}
  .kicker .stub{width:26px; height:1px; background:var(--accent);}
  .sec-head{max-width:640px;}
  h2.sec-title{font-size:clamp(26px,3vw,36px); color:var(--text); line-height:1.15;}
  .sec-lede{color:var(--text-dim); font-size:15.5px; margin-top:16px; max-width:560px;}

  .about-grid{display:grid; grid-template-columns:1fr 0.85fr; gap:56px; margin-top:36px; align-items:start;}
  .about-body p{color:var(--text-dim); font-size:16px; margin:0;}
  .about-facts{border-left:1px solid var(--line-strong); padding-left:28px;}
  .fact{padding:18px 0; border-bottom:1px solid var(--line);}
  .fact:first-child{padding-top:0;} .fact:last-child{border-bottom:none; padding-bottom:0;}
  .fact .n{font-size:30px; color:var(--accent); font-weight:800; font-family:'Archivo';}
  .fact .l{font-size:13px; color:var(--text-mute); margin-top:5px;}
  @media (max-width:860px){ .about-grid{grid-template-columns:1fr; gap:36px;} .about-facts{border-left:none; padding-left:0; border-top:1px solid var(--line-strong); padding-top:22px;} }

  .gallery{display:grid; grid-template-columns:1.2fr 1fr; gap:16px; margin-top:48px;}
  .gallery figure{margin:0; position:relative; overflow:hidden; background:var(--panel-2); min-height:260px;}
  .gallery img{width:100%; height:100%; object-fit:cover; position:absolute; inset:0;}
  .js .gallery img{transform:scale(1.08); transition:transform .8s ease;}
  .js .gallery figure.in img{transform:scale(1);}
  .gallery figcaption{position:absolute; left:16px; bottom:14px; z-index:2; font-family:'IBM Plex Mono'; font-size:11px; color:#F3EFE6; background:rgba(11,30,45,0.6); padding:5px 10px; letter-spacing:.03em;}
  .gallery .stack{display:grid; grid-template-rows:1fr 1fr; gap:16px;}
  @media (max-width:760px){ .gallery{grid-template-columns:1fr;} }

  /* Full-bleed cinematic banner */
  .banner{position:relative; min-height:60vh; display:flex; align-items:center; overflow:hidden; border-bottom:1px solid var(--line);}
  .banner .parallax-img{position:absolute; top:-20%; left:0; width:100%; height:140%; object-fit:cover; will-change:transform; filter:saturate(.95) contrast(1.05) brightness(.85);}
  .banner::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(4,10,15,.82) 0%, rgba(4,10,15,.45) 55%, rgba(4,10,15,.15) 100%); z-index:1;}
  .banner-copy{position:relative; z-index:2; padding:0 32px; max-width:640px;}
  .banner-copy p.eyebrow{color:var(--accent); font-size:12.5px; letter-spacing:.14em; margin-bottom:16px;}
  .banner-copy h2{font-size:clamp(26px,3.4vw,42px); color:#F3EFE6; line-height:1.18;}

  .prod-list{margin-top:48px; display:flex; flex-direction:column;}
  .prod-row{display:grid; grid-template-columns:50px 1fr 1.1fr; gap:32px; padding:32px 0; border-top:1px solid var(--line); align-items:start; transition:padding-left .25s ease;}
  .prod-row:last-child{border-bottom:1px solid var(--line);}
  .prod-row:hover{padding-left:8px;}
  .prod-icon{width:40px; height:40px; color:var(--accent); transition:transform .25s ease;}
  .prod-row:hover .prod-icon{transform:scale(1.08);}
  .prod-name{font-family:'Archivo'; font-weight:700; font-size:20px; color:var(--text);}
  .prod-tag{display:block; margin-top:7px; font-family:'IBM Plex Mono'; font-size:11px; color:var(--text-mute); letter-spacing:.05em;}
  .prod-desc{color:var(--text-dim); font-size:15px;}
  @media (max-width:760px){ .prod-row{grid-template-columns:1fr; gap:12px;} }

  .reach{background:var(--panel);}
  .reach-grid{display:grid; grid-template-columns:1fr 1fr; gap:52px; margin-top:44px; align-items:center;}
  .reach-map{background:var(--panel-2); border:1px solid var(--line); padding:18px;}
  .reach-cols{display:grid; grid-template-columns:1fr 1fr; gap:32px;}
  .reach-col h3{font-size:13px; letter-spacing:.08em; color:var(--accent); font-family:'IBM Plex Sans'; font-weight:600; margin-bottom:14px;}
  .reach-col ul{list-style:none; margin:0; padding:0; color:var(--text-dim); font-size:14.5px;}
  .reach-col li{padding:8px 0 8px 16px; border-top:1px solid var(--line); position:relative;}
  .reach-col li:first-child{border-top:none;}
  .reach-col li::before{content:""; position:absolute; left:0; top:16px; width:5px; height:5px; background:var(--accent); border-radius:50%;}
  .route-path{stroke-dasharray:400; stroke-dashoffset:0;}
  .js .route-path{stroke-dashoffset:400; transition:stroke-dashoffset 1.4s ease;}
  .js .reach-map.in .route-path{stroke-dashoffset:0;}
  @media (max-width:900px){ .reach-grid{grid-template-columns:1fr;} }

  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; margin-top:44px;}
  .contact-lines{display:flex; flex-direction:column; gap:22px;}
  .cline{border-top:1px solid var(--line); padding-top:16px;}
  .cline .k{font-size:11.5px; letter-spacing:.1em; color:var(--text-mute); font-family:'IBM Plex Mono';}
  .cline .v{font-size:16.5px; margin-top:7px; color:var(--text);}
  .cline .v a{text-decoration:none; border-bottom:1px solid var(--line-strong);}
  .cline .v a:hover{color:var(--accent); border-color:var(--accent);}
  form.cform{display:flex; flex-direction:column; gap:16px;}
  .cform label{font-size:11.5px; letter-spacing:.08em; color:var(--text-mute); margin-bottom:7px; display:block;}
  .cform input, .cform textarea{width:100%; background:var(--panel); border:1px solid var(--line-strong); color:var(--text); padding:12px 13px; font-family:'IBM Plex Sans'; font-size:15px; border-radius:2px;}
  .cform input:focus, .cform textarea:focus{border-color:var(--accent); outline:none;}
  .cform textarea{resize:vertical; min-height:100px;}
  @media (max-width:860px){ .contact-grid{grid-template-columns:1fr; gap:36px;} }

  footer{padding:36px 0;}
  .foot-wrap{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
  .foot-wrap .brand{font-size:15px;}
  .foot-meta{color:var(--text-mute); font-size:12px; font-family:'IBM Plex Mono';}
