/* ====================================================
   THE ARK PETROLEUM L.L.C — style.css
   ==================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg-dark:       #071425;
  --bg-mid:        #0e223d;
  --text:          #17243a;
  --muted:         #5f6e87;
  --surface:       #ffffff;
  --line:          #d8e2ef;
  --primary:       #0f9ad6;
  --primary-dark:  #0872a3;
  --accent:        #13bf96;
  --radius:        14px;
  --shadow:        0 14px 34px rgba(10, 26, 45, 0.13);
  --shadow-lg:     0 24px 48px rgba(10, 26, 45, 0.18);
  --transition:    0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: #f5f9ff;
  line-height: 1.65;
  overflow-x: hidden;
}
img     { max-width: 100%; display: block; }
ul      { list-style: none; }
address { font-style: normal; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #fff; color: #0a2b4a;
  padding: 0.6rem 0.9rem; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(19,191,150,0.55);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container { width: min(1160px, 92%); margin: 0 auto; }
section { padding: 96px 0; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; animation: none; }

/* Safety net: if JS observer never fires (local file:// or JS error),
   fade everything in after 1 s so content is never permanently hidden */
@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}
.reveal {
  animation: revealFallback 0.6s ease 1.2s forwards;
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 1.8px;
  color: var(--primary); margin-bottom: 0.55rem;
}
.section-label--light { color: #9be8ff; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head.left { text-align: left; }
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #102a4a; font-weight: 800; line-height: 1.2;
}
.section-head p { color: var(--muted); max-width: 680px; margin: 0.75rem auto 0; font-size: 1.02rem; }
.section-head.left p { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.78rem 1.25rem; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.93rem;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(15,154,214,0.35);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.5); color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  min-height: 76px; padding: 0 4%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(5,18,33,0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(5,18,33,0.97); }

/* --- Logo (FA icon) --- */
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: #ebf5ff;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.logo-icon--footer {
  width: 34px; height: 34px; font-size: 1rem;
}
.logo-text {
  font-size: 1rem; font-weight: 800; letter-spacing: 0.3px; color: #ebf5ff;
}
.logo-accent { color: var(--primary); }
.footer-logo .logo-text { color: #d0e6f8; }

/* --- Nav links --- */
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  text-decoration: none; color: rgba(216,233,251,0.85);
  font-size: 0.9rem; font-weight: 600;
  padding: 0.45rem 0.75rem; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: #80dbff; }
.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important; padding: 0.45rem 1rem; border-radius: 8px;
}
.btn-nav:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }

/* --- Burger --- */
.burger {
  display: none; border: none; background: transparent;
  padding: 4px; cursor: pointer; flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 24px; height: 2.5px;
  background: #d8e9fb; border-radius: 2px;
  transition: all 0.3s ease;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh; min-height: 100dvh; position: relative;
  display: grid; align-items: center;
  margin-top: 76px; color: #fff; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/cargoship.jpg") center / cover no-repeat;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(4,14,26,0.88) 0%, rgba(8,28,54,0.65) 100%);
  z-index: -1;
}
.hero-content { padding: 4rem 0; max-width: 760px; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.8px; color: #9be8ff; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.12; font-weight: 800; }
.lead { margin-top: 1.3rem; max-width: 620px; color: rgba(216,232,250,0.9); font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); display: flex; justify-content: center;
}
.hero-scroll span {
  display: block; width: 2px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}

/* =====================================================
   HIGHLIGHTS
   ===================================================== */
.highlights { padding: 44px 0 24px; }
.highlights-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.highlight-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.highlight-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.highlight-card h2 { font-size: 1.65rem; color: #0e2e52; font-weight: 800; display: inline; }
.counter-suffix    { font-size: 1.4rem; font-weight: 800; color: #0e2e52; }
.highlight-card p  { font-size: 0.85rem; color: #607089; margin-top: 0.3rem; }

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3,1fr); }
.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c3dff4; }
.badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 1.05rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.service-card h3 { color: #123760; margin-bottom: 0.55rem; font-size: 1.1rem; }
.service-card p  { color: #5a6881; font-size: 0.95rem; }

/* =====================================================
   PRODUCTS
   ===================================================== */
.products { background: linear-gradient(180deg, #eef6ff, #f4f9ff); }
.products-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.products-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.product-list { display: grid; gap: 0.75rem; }
.product-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.9rem; position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-list li:hover { border-color: #93c5e8; box-shadow: 0 6px 16px rgba(10,26,45,0.08); }
.product-icon { position: absolute; left: 1rem; top: 1rem; color: var(--primary-dark); font-size: 0.9rem; }
.product-list h3 { font-size: 0.98rem; color: #123b67; }
.product-list p  { font-size: 0.88rem; color: #5e6d86; margin-top: 0.15rem; }

/* =====================================================
   WHY US
   ===================================================== */
.why-us { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.why-card {
  background: #f7fbff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; color: var(--primary); font-size: 1.3rem;
  margin: 0 auto 1rem; background: #e4f4fd; border: 1px solid #c0e2f4;
}
.why-card h3 { color: #0e3058; font-size: 1.02rem; margin-bottom: 0.6rem; }
.why-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  background:
    linear-gradient(120deg, rgba(5,17,30,0.91), rgba(9,30,55,0.86)),
    url("../images/oil_rigs.jpg") center / cover no-repeat;
}
.about .section-head h2 { color: #e8f3ff; }
.about .section-head p  { color: rgba(216,232,250,0.8); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.about-panel {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: var(--radius); padding: 1.6rem; color: #cfe0f5; font-size: 1rem;
  display: flex; flex-direction: column; justify-content: center;
}
.about-panel-para { margin-top: 1rem; }
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.compliance-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.compliance-item {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px; padding: 0.45rem 1rem;
  color: #c8e4ff; font-size: 0.88rem; font-weight: 600;
}
.compliance-item i { color: var(--accent); }



/* =====================================================
   CONTACT
   ===================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.address-area, .message-area {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.address-area h3, .message-area h3 { color: #143f70; margin-bottom: 1.2rem; font-size: 1.1rem; }
.address-area ul { display: grid; gap: 1rem; }
.address-area li { display: grid; grid-template-columns: 48px 1fr; gap: 0.75rem; align-items: start; }
.address-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e6f3fb; color: #0b6e9e; border: 1px solid #c0def5; font-size: 1rem; flex-shrink: 0;
}
.address-details h4 { font-size: 0.88rem; color: #15395f; font-weight: 700; }
.address-details p  { color: #5d6b82; font-size: 0.9rem; margin-bottom: 0.3rem; }
.address-details a  { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(11,110,158,0.35); }
.address-details a:hover { color: #0b6e9e; border-color: #0b6e9e; }

/* Form */
.input_field { margin-bottom: 0.85rem; }
.input_field label { display: block; font-size: 0.83rem; font-weight: 600; color: #2d4a6a; margin-bottom: 0.3rem; }
.input_field input, .input_field textarea {
  width: 100%; padding: 0.72rem 0.9rem;
  border: 1.5px solid #ccd9ea; border-radius: 10px;
  background: #fafdff; font: inherit; font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input_field input:focus, .input_field textarea:focus {
  outline: none; border-color: #67bae1;
  box-shadow: 0 0 0 3px rgba(15,154,214,0.14);
}
.input_field textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; border: none; border-radius: 10px; padding: 0.85rem;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  cursor: pointer; transition: filter var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover  { filter: brightness(1.07); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
#error_message {
  background: #fde8e9; color: #9f2234; border-radius: 8px;
  font-size: 0.88rem; text-align: center; min-height: 0; overflow: hidden;
  transition: all var(--transition);
}
#error_message:not(:empty) { padding: 0.6rem 0.9rem; margin-bottom: 0.75rem; }
.form-success {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #e8faf4; border: 1px solid #a8ecd4;
  border-radius: 10px; padding: 1rem; margin-bottom: 1rem; color: #0e5c3a;
}
.form-success i      { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.form-success strong { display: block; font-size: 0.95rem; }
.form-success p      { font-size: 0.88rem; opacity: 0.85; margin-top: 0.2rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: #070f1c; color: #8ba4c4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.85rem; line-height: 1.65; max-width: 260px; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.07); color: #9bbbd8;
  border: 1px solid rgba(255,255,255,0.1); text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-col h4 { color: #d4e8fb; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col ul a { color: #7a99ba; text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: #a8d0ef; }
.footer-col address { display: grid; gap: 0.65rem; }
.footer-col address p { font-size: 0.88rem; display: flex; gap: 0.55rem; align-items: flex-start; }
.footer-col address i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-col address a { color: #7a99ba; text-decoration: none; }
.footer-col address a:hover { color: #a8d0ef; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.82rem; color: #4e6a86; }

/* =====================================================
   WHATSAPP FAB
   ===================================================== */
.whatsapp-fab {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.6rem;
  text-decoration: none; box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,0.55); }
.whatsapp-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* =====================================================
   MOBILE NAV ANIMATION
   ===================================================== */
@keyframes navLinkFade {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
  .highlights-grid    { grid-template-columns: repeat(2,1fr); }
  .services-grid      { grid-template-columns: 1fr; }
  .products-layout    { grid-template-columns: 1fr; }
  .about-grid         { grid-template-columns: 1fr; }
  .contact-layout     { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .navbar { min-height: 68px; padding: 0 5%; }
  .nav-links {
    position: fixed; top: 68px; right: 0;
    width: min(80vw, 300px); height: calc(100vh - 68px);
    background: #08182b; flex-direction: column; align-items: flex-start;
    padding: 1.4rem 1.2rem; transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid rgba(255,255,255,0.07); gap: 0; overflow-y: auto;
  }
  .nav-links li { opacity: 0; width: 100%; }
  .nav-links.nav-active { transform: translateX(0); }
  .nav-link { display: block; width: 100%; padding: 0.6rem 0.4rem; border-radius: 0; }
  .btn-nav  { margin-top: 0.5rem; text-align: center; border-radius: 8px !important; }
  .burger   { display: flex; flex-direction: column; }
  .burger.toggle .line1 { transform: rotate(-45deg) translate(-4px, 5.5px); }
  .burger.toggle .line2 { opacity: 0; }
  .burger.toggle .line3 { transform: rotate(45deg) translate(-4px, -5.5px); }
  .hero { margin-top: 68px; min-height: 90vh; }
  .highlights-grid  { grid-template-columns: repeat(2,1fr); }
  .hero-actions     { flex-direction: column; align-items: flex-start; }
  .why-grid         { grid-template-columns: 1fr 1fr; }
  .address-area li  { grid-template-columns: 42px 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0 1.5rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 84vh;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .lead {
    font-size: 0.95rem;
  }

  .section-head p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .why-grid        { grid-template-columns: 1fr; }
  .hero h1         { font-size: 1.85rem; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
