/* ===========================================================
   AE360 LTD — Custom Styles (complements Tailwind utilities)
   =========================================================== */

:root {
  --brand-blue: #0055A5;
  --brand-blue-2: #0B62C4;
  --deep-navy: #071927;
  --deep-navy-2: #0A192F;
  --accent-blue: #0088FF;
  --accent-blue-2: #00A3FF;
  --silver: #E2E8F0;
  --silver-light: #F8FAFC;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --footer-navy: #030B14;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
}

.font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Header ---------- */
.header-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.logo-chip {
  display: inline-flex;
  align-items: center;
}

.logo-chip-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue-2), var(--accent-blue-2));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 20% 10%, rgba(0, 136, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(11, 98, 196, 0.22), transparent 55%),
    linear-gradient(180deg, var(--deep-navy) 0%, var(--deep-navy-2) 55%, #050e18 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1) 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1) 80%);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the refinery skyline band in frame at every width. */
  object-position: center 40%;
  display: block;
}

/* Fades the background photo to solid navy under the headline/copy and
   lets it read clearly elsewhere — same treatment at every breakpoint,
   so mobile and desktop show the facility photo the same way. */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(5, 16, 26, 0.98) 0%,
    rgba(7, 25, 39, 0.95) 24%,
    rgba(8, 27, 43, 0.8) 40%,
    rgba(9, 29, 47, 0.48) 58%,
    rgba(10, 31, 50, 0.14) 74%,
    rgba(10, 31, 50, 0) 88%
  );
}

.hero-fade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 14, 24, 0.9) 100%);
}

.gradient-text {
  background: linear-gradient(90deg, #62c8ff 0%, var(--accent-blue-2) 55%, #7fd7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--accent-blue));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 136, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(0, 136, 255, 0.65);
  filter: brightness(1.05);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.floating-badge {
  background: rgba(7, 25, 39, 0.75);
  border: 1px solid rgba(0, 163, 255, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,163,255,0.06);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Mission Banner ---------- */
.mission-banner {
  background: linear-gradient(120deg, #071927 0%, #0B62C4 140%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 163, 255, 0.25) inset, 0 25px 60px -20px rgba(0, 85, 165, 0.55);
}

.mission-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.glow-ring {
  box-shadow: 0 0 0 6px rgba(0, 163, 255, 0.08), 0 0 30px rgba(0, 163, 255, 0.35);
}

/* ---------- Cards ---------- */
.segment-card,
.solution-card,
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.segment-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
  border-color: rgba(0, 136, 255, 0.35);
}

.solution-card { overflow: hidden; }

.solution-card .img-wrap { overflow: hidden; }

.solution-card .img-wrap img,
.solution-card .img-wrap .art-fill {
  transition: transform 0.5s ease;
}

.solution-card:hover .img-wrap img,
.solution-card:hover .img-wrap .art-fill {
  transform: scale(1.08);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px -18px rgba(15, 23, 42, 0.3);
}

.icon-circle {
  background: linear-gradient(135deg, rgba(0, 85, 165, 0.08), rgba(0, 163, 255, 0.14));
  color: var(--brand-blue);
}

/* ---------- Product Bottles (illustrated, real logo label) ---------- */
.oil-bottle {
  width: 86px;
  height: 132px;
  margin: 0 auto;
  position: relative;
}

.oil-bottle .cap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 16px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(135deg, var(--cap-2, #cbd5e1) 0%, var(--cap, #94a3b8) 55%, var(--cap, #94a3b8) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 -3px 4px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.oil-bottle .cap::after {
  content: '';
  position: absolute;
  inset: 2px 5px auto 5px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.oil-bottle .neck {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 12px;
  background: var(--cap, #94a3b8);
  border-radius: 2px;
  z-index: 2;
}

.oil-bottle .bottle-body {
  position: absolute;
  top: 24px;
  left: 3px;
  right: 3px;
  bottom: 0;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(100deg, #ffffff 0%, #eef2f6 32%, #c7d2dd 48%, #eef2f6 62%, #ffffff 100%);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.3), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.oil-bottle .bottle-body::before {
  /* plastic shine streak */
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 14%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1));
  filter: blur(0.5px);
}

.oil-bottle .label {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  bottom: 32%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
}

.oil-bottle .label img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.oil-bottle .band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(180deg, var(--cap, #94a3b8), var(--cap, #94a3b8));
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.2);
}

/* ---------- FAQ accordion ---------- */
.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--brand-blue);
}

.grade-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--silver-light);
  border: 1px solid var(--silver);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
}

/* ---------- Find Your Lubricant widget ---------- */
.finder-panel {
  background: linear-gradient(160deg, #0A192F 0%, #071927 100%);
}

.finder-tab {
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.finder-tab.active {
  color: #fff;
  border-color: var(--accent-blue-2);
}

.finder-card {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.oil-pour {
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

/* ---------- Value Proposition Strip ---------- */
.value-strip {
  background: linear-gradient(180deg, #050e18, #030B14);
}

.value-icon {
  border: 1px solid rgba(0, 163, 255, 0.3);
  background: rgba(0, 163, 255, 0.06);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0, 163, 255, 0.25), transparent 60%),
    linear-gradient(120deg, #071927, #0B62C4 120%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

/* ---------- Footer ---------- */
.footer-navy {
  background: var(--footer-navy);
}

.footer-link {
  color: #94A3B8;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.social-icon:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Find Your Lubricant: matched product highlight ---------- */
.match-highlight {
  animation: match-pulse 1.2s ease-in-out 2;
  border-color: var(--accent-blue-2) !important;
}

@keyframes match-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.35), 0 20px 40px -18px rgba(15, 23, 42, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(0, 163, 255, 0.12), 0 20px 40px -18px rgba(15, 23, 42, 0.25); }
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 720px;
  opacity: 1;
}

/* ---------- Utility ---------- */
.section-eyebrow {
  letter-spacing: 0.14em;
}

.divider-accent {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-2), var(--accent-blue-2));
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

::selection {
  background: rgba(0, 163, 255, 0.3);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #64748B; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrolling highlights ticker ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.75rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-blue-2);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.7);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
