/* ==========================================================
   Valar Fuel Services — styles
   Colour tokens mirror bharatpetroleum.in stylesheets
   (common.css / home_page.css).
   ========================================================== */
:root {
  /* BPCL blues */
  --bpcl-blue: #007ec4;
  --bpcl-blue-600: #0076c0;
  --bpcl-blue-700: #0069a5;
  --bpcl-blue-800: #00527f;
  --bpcl-navy: #003296;
  --bpcl-steel: #3277b4;
  --bpcl-sky: #347ebe;
  /* BPCL yellows */
  --bpcl-yellow: #ffdd00;
  --bpcl-yellow-alt: #ffcc00;
  --bpcl-gold: #f4da35;
  --bpcl-cream: #fcf6c9;
  /* Neutrals */
  --ink: #0b1630;
  --text: #333333;
  --muted: #666666;
  --line: #e5e7eb;
  --surface: #f3f3f3;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --primary: var(--bpcl-blue);
  --primary-deep: var(--bpcl-navy);
  --accent: var(--bpcl-yellow);

  --font-sans: "Figtree", "Proxima Nova", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 50, 150, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(11, 22, 48, 0.18);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--primary-deep); box-shadow: 0 12px 30px -10px rgba(255, 221, 0, 0.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--bpcl-yellow-alt); }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-dark { background: var(--primary-deep); color: var(--white); }
.btn-dark:hover { background: var(--bpcl-blue-800); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(0, 50, 150, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: 0.04em; font-size: 1.02rem; }
.brand-sub { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 20px; color: var(--primary-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(0, 126, 196, 0.55), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0, 82, 127, 0.9), transparent 60%),
    linear-gradient(160deg, var(--bpcl-navy) 0%, #00246e 55%, #001a50 100%);
  padding: 140px 0 100px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-lead { font-size: 1.18rem; color: rgba(255, 255, 255, 0.8); max-width: 34ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-badge strong { display: block; font-size: 1.6rem; color: var(--white); font-family: var(--font-display); font-weight: 600; }
.hero-badge span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .ring {
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 221, 0, 0.25);
  animation: spin 40s linear infinite;
}
.hero-visual .ring::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 14%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}
.pump { width: min(360px, 80%); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); animation: float 7s ease-in-out infinite; }

.tamil-mark {
  position: absolute;
  right: -14%;
  bottom: -22%;
  z-index: -1;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  color: rgba(255, 221, 0, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--accent); color: var(--primary-deep); overflow: hidden; }
.ribbon-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  animation: marquee 32s linear infinite;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ribbon-track span::after { content: "◆"; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-alt { background: linear-gradient(180deg, #f6f9fd 0%, var(--white) 100%); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-card {
  position: relative;
  border-radius: 28px;
  padding: 48px;
  background: linear-gradient(150deg, var(--bpcl-blue) 0%, var(--bpcl-navy) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 0, 0.45), transparent 70%);
}
.about-card .tamil { font-size: 4.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.about-card .roman { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; margin-bottom: 18px; }
.about-card p { color: rgba(255, 255, 255, 0.82); position: relative; }
.about-card .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}
.about-card .meta strong { display: block; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003296' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Fuels */
.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fuel-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  overflow: hidden;
}
.fuel-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bpcl-blue), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.fuel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.fuel-card:hover::after { transform: scaleX(1); }
.fuel-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bpcl-cream);
  color: var(--primary-deep);
  margin-bottom: 24px;
}
.fuel-icon svg { width: 28px; height: 28px; }
.fuel-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.fuel-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Amenities */
.amenity-wrap {
  border-radius: 32px;
  background: linear-gradient(160deg, var(--bpcl-navy), #001a50);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.amenity-wrap::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 126, 196, 0.6), transparent 70%);
}
.amenity-wrap h2 { color: var(--white); }
.amenity-wrap .section-head p { color: rgba(255, 255, 255, 0.72); }
.amenity-wrap .eyebrow { color: var(--accent); }
.amenity-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden; }
.amenity { background: rgba(0, 36, 110, 0.92); padding: 32px 26px; transition: background 0.3s; }
.amenity:hover { background: rgba(0, 82, 127, 0.95); }
.amenity svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.amenity h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.amenity p { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; margin: 0; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; }
.partner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-deep);
  background: linear-gradient(135deg, var(--accent), var(--bpcl-gold));
}
.partner h3 { margin: 0 0 2px; }
.partner span { color: var(--muted); font-size: 0.92rem; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-card {
  padding: 44px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.contact-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf4fb;
  color: var(--primary);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--ink); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-list a:hover { color: var(--primary); }
.map-frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(0.9); }

/* Footer */
.site-footer { background: #001a50; color: rgba(255, 255, 255, 0.7); padding: 64px 0 32px; font-size: 0.92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-top p { max-width: 40ch; margin-top: 16px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 0.82rem; }
.footer-bottom .stripe { display: inline-flex; gap: 4px; }
.footer-bottom .stripe i { width: 22px; height: 4px; border-radius: 2px; background: var(--bpcl-blue); }
.footer-bottom .stripe i:last-child { background: var(--accent); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .hero { text-align: left; }
  .about-grid { gap: 48px; }
  .fuel-grid { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 100px 32px 32px;
    background: var(--bpcl-navy);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav-links a { font-size: 1.15rem; }
  .nav-open .nav-links { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
  .nav-toggle { z-index: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .fuel-grid, .amenity-grid, .partner-grid { grid-template-columns: 1fr; }
  .about-card, .contact-card { padding: 32px 26px; }
  .hero-badges { gap: 20px; }
  .hero-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
