/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* GLOBAL */
html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0b0b0b;
  color: #ffffff;
  line-height: 1.6;
}

/* LAYOUT */
header, footer {
  background: #111;
  padding: 20px 40px;
}

main {
  padding: 60px 40px;
  min-height: calc(100vh - 160px);
}

/* TEXT */
h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

p, li {
  font-size: 18px;
  max-width: 800px;
}

/* IMAGES */
img {
  max-width: 100%;
  margin: 30px 0;
  border-radius: 6px;
}

/* LINKS */
a {
  color: #00ffa6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* BUTTON */
.cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 26px;
  background: #00ffa6;
  color: #000;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.button:hover {
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.6); /* soft glow */
  transform: translateY(-2px); /* subtle lift */
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #000;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 999;
  cursor: pointer; 
  transition: transform 0.25s ease, box-shadow 0.25s ease; 
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 24px rgba(0,0,0,0.45), /* deeper shadow */
    0 0 16px rgba(37, 211, 102, 0.6), /* stronger green glow */
    0 0 32px rgba(37, 211, 102, 0.6); /* wider soft glow */
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  height: 42px;
  width: auto;
}

.logo-wrap span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.content.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 10%;
}

.content.split.reverse {
  direction: rtl;
}

.content.split.reverse .text {
  direction: ltr;
}

.content.split img {
  width: 100%;
  border-radius: 12px;
}

.content.split h2 {
  margin-bottom: 20px;
}

.content.split ul {
  list-style: none;
  padding: 0;
}

.content.split li {
  margin-bottom: 12px;
}

.seo-story {
  position: relative;
  background: url('assets/images/inland-refinery.png') center/cover no-repeat;
}

.seo-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.seo-overlay {
  position: relative;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.cta.refined {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 80px 10%;
  background: #0e0e0e;
}

.cta.refined h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta.refined p {
  color: #b5b5b5;
  margin-bottom: 32px;
  max-width: 600px;
}

.refined-btn {
  background: transparent;
  border: 1px solid #25D366;
  color: #25D366;

  padding: 14px 34px;
  font-size: 1rem;
  border-radius: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.refined-btn:hover {
  background: #25D366;
  color: #000;
}

.full-width-image {
  width: 100%;
  margin: 80px 0;
}

.full-width-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==============================
   COUNTRY TARGETING SECTION
============================== */

.country-targeting {
  background: #0e0e0e;
  padding: 90px 20px;
}

.country-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.country-targeting h2 {
  font-size: 34px;
  margin-bottom: 16px;
  color: #ffffff;
}

.country-intro {
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: 17px;
  color: #b5b5b5;
  line-height: 1.7;
}

/* Grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Cards */
.country-card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 30px 26px;
  text-align: left;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.country-card h3 {
  color: #f5c16c;
  margin-bottom: 12px;
  font-size: 20px;
}

.country-card p {
  color: #c9c9c9;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Hover animation */
.country-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.6),
    0 0 0 2px rgba(245, 193, 108, 0.18);
}

/* ==============================
   MOBILE RESPONSIVE
============================== */

@media (max-width: 1100px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .country-targeting {
    padding: 70px 20px;
  }

  .country-targeting h2 {
    font-size: 26px;
  }

  .country-intro {
    font-size: 15.5px;
    margin-bottom: 36px;
  }

  .country-grid {
    grid-template-columns: 1fr;
  }

  .country-card {
    text-align: center;
  }
}

/* ==============================
   INNER PAGES ONLY
============================== */

.inner-page .page-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.inner-page .hero-overlay {
  width: 100%;
  padding: 60px 20px;
  background: rgba(0,0,0,0.65);
  text-align: center;
}

.inner-page .hero-overlay h1 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #fff;
}

.inner-page .hero-overlay p {
  font-size: 18px;
  color: #ddd;
}

.inner-page .content.centered {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.inner-page .content.centered p {
  line-height: 1.8;
  color: #ccc;
}

.inner-page .split {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.inner-page .split .image img {
  width: 100%;
  border-radius: 12px;
}

/* ==============================
   PREMIUM CTA (INNER PAGES)
============================== */

.inner-page .premium-cta {
  background: transparent;
  padding: 80px 20px;
  text-align: center;
}

.inner-page .premium-cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 30px;
}

.inner-page .cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #c89b3c, #a87c1a);
  color: #111;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.inner-page .cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
  background: linear-gradient(135deg, #ddb24a, #c89b3c);
}

/* Fix extra space below footer on inner pages */
.inner-page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.inner-page .cta:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 0;
}

/* ==============================
   ABOUT PAGE SPLIT SECTION
============================== */

.inner-page .about-split {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 80px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.inner-page .about-text {
  flex: 1;
}

.inner-page .about-text h3 {
  color: #f5f5f5;
  margin-top: 20px;
}

.inner-page .about-text p,
.inner-page .about-text li {
  color: #ccc;
  line-height: 1.7;
}

.inner-page .about-image {
  flex: 1;
  text-align: center;
}

.inner-page .about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Mobile fallback */
@media (max-width: 900px) {
  .inner-page .about-split {
    flex-direction: column;
  }
}

/* ==============================
   PRODUCT CARDS
============================== */

.inner-page .product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.inner-page .product-card {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 30px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.inner-page .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.inner-page .product-card h3 {
  color: #f5c16c;
  margin-bottom: 15px;
}

.inner-page .product-card ul {
  padding-left: 18px;
  margin-bottom: 15px;
}

.inner-page .product-card li {
  color: #ddd;
  margin-bottom: 6px;
}

.inner-page .product-card p {
  color: #bbb;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 900px) {
  .inner-page .product-cards {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   HERO BUTTON HOVER EFFECT
============================== */

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 35px;
  justify-content: center;
}

.hero-btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.35s ease;
  position: relative;
}

/* Primary WhatsApp Button */
.hero-btn.primary {
  background: linear-gradient(135deg, #2e8b57, #1f6f45);
  color: #fff;
  box-shadow: 0 10px 30px rgba(46, 139, 87, 0.25);
}

/* Secondary Button */
.hero-btn.secondary {
  background: transparent;
  color: #f5c16c;
  border: 1px solid rgba(245, 193, 108, 0.4);
}

/* Hover Effects */
.hero-btn:hover {
  transform: translateY(-3px);
}

/* Glow on hover */
.hero-btn.primary:hover {
  box-shadow:
    0 0 0 2px rgba(245, 193, 108, 0.2),
    0 18px 40px rgba(46, 139, 87, 0.45);
}

.hero-btn.secondary:hover {
  background: rgba(245, 193, 108, 0.08);
  box-shadow:
    0 0 0 2px rgba(245, 193, 108, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.6);
}

/* ==============================
   HOMEPAGE FEATURE CARDS HOVER
============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto 30px;
  padding: 0 20px;
}

.card {
  background: #1f1f1f;
  border-radius: 18px;
  padding: 35px 28px;
  text-align: center;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.card h3 {
  color: #f5c16c;
  margin-bottom: 12px;
}

.card p {
  color: #bbb;
  line-height: 1.6;
}

/* Hover */
.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.6),
    0 0 0 2px rgba(245, 193, 108, 0.18);
}

/* ==============================
   NAV ACTIVE STATE
============================== */

nav a {
  color: #ccc;
  margin-left: 24px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f5c16c;
}

/* Active page */
nav a.active {
  color: #f5c16c;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f5c16c;
  border-radius: 2px;
}

nav {
  display: flex;
  align-items: center;
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-hero-content h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.page-hero-content p {
  font-size: 16px;
  color: #ddd;
  margin: 0 auto;
  max-width: 700px;
}

/* ===== FORCE HEADER ALIGNMENT ===== */

.header-container {
  display: flex;
  justify-content: space-between; /* Push left and right */
  align-items: center; /* Vertically center items */
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.contact-info {
  margin-bottom: 12px; /* keeps spacing between email and WhatsApp */
}

/* Add space above the email line */
.contact-info.email {
  margin-top: 20px;
}

#hero-heading span {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#hero-heading span.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* ============================
   MOBILE RESPONSIVE STYLES
   ============================ */

@media (max-width: 768px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* NAVBAR */
  header {
    padding: 15px 20px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 16px;
  }

  /* HERO SECTION */
  .hero {
    padding: 80px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 17px;
    margin-top: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  /* GENERAL SECTIONS */
  section {
    padding: 60px 20px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }

  /* CARDS (Homepage + Products) */
  .cards,
  .product-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card,
  .product-card {
    padding: 25px;
  }

  /* ABOUT PAGE (TEXT + IMAGE SIDE BY SIDE → STACK) */
  .two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .two-column img {
    width: 100%;
    height: auto;
  }

  /* FULL WIDTH IMAGES */
  .full-width-image img {
    height: auto;
    object-fit: cover;
  }

  /* CTA SECTION */
  .cta-section {
    padding: 60px 20px;
    text-align: center;
  }

  .cta-section a {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
  }

  /* FOOTER */
  footer {
    padding: 40px 20px;
    text-align: center;
  }
}

/* Prevent horizontal overflow on mobile */
html, body {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {

  header {
    padding: 16px 20px;
  }

  .hero {
    padding: 0 20px;
    height: auto;
    min-height: 100vh;
  }

  nav a {
    margin-left: 16px;
  }
}

@media (max-width: 768px) {

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 20px;
    border-radius: 14px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {

  .content.split,
  .content.split.reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .content.split.reverse {
    flex-direction: column;
  }

  .content.split .text,
  .content.split .image {
    width: 100%;
  }

  .content.split img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  .content.split .text {
    text-align: center;
  }
}

@media (max-width: 768px) {

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {

  .full-width-image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 768px) {

  section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {

  .seo-story {
    padding: 60px 20px;
    background-position: center;
  }

  .seo-overlay {
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .seo-overlay h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .seo-overlay p {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  .seo-story {
    padding: 70px 24px;
  }
}

/* Hamburger hidden on desktop */
.menu-toggle {
  display: flex;
  font-size: 26px;
  cursor: pointer;
  color: var(--accent);
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}

/* Mobile navigation */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(14,14,15,0.98);
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  nav.show {
    display: flex;
    animation: fadeDown 0.3s ease;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-toggle {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Morph to X */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===============================
   Page Fade Transitions
================================ */

body {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}
