:root {
  /* Colors */
  --union-blue: #0071BC;
  --union-green: #91C024;
  --primary: var(--union-blue);
  --accent: var(--union-green);
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-dark: #1f2937;
  --bg-light: #FAFAFA;
  --bg-soft: #F4F9F2;
  --surface-white: #FFFFFF;

  /* Shadows (Material Design elevation) */
  --shadow-1: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
  --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);

  /* Typography */
  --font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Border radius */
  --radius: 12px;
}

/* Global Reset & Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ================= NAVIGATION ================= */

nav {
  background-color: var(--surface-white);
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-logo {
  height: 50px; /* Adjust to your preferred size */
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit; /* keep the text color same as normal */
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10%;
  background: var(--surface-white);
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
}

.menu a {
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--primary);
  user-select: none;
}

.menu {
  display: flex;
  gap: 36px;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0 14px 0;
  transition: color 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.menu a:hover,
.menu a:focus, .menu a.focus {
  color: var(--primary);
  outline: none;
}

.menu a:hover::after,
.menu a:focus::after {
  width: 100%;
}

/* ACTIVE PAGE LINK */
.menu .focus {
  color: var(--primary);
}


/* ================= HERO ================= */

.hero {
  padding: 80px 8%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #005a96);
  color: var(--surface-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  gap: 24px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.25rem;
  max-width: 480px;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Button base style for consistency */
.btn,
.btn-green,
.btn.primary,
.btn.ghost {
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  border-radius: 24px;
  padding: 14px 34px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
  user-select: none;
  text-align: center;
  font-size: 1rem;
  border: none;
}

.btn-green,
.btn.primary {
  background-color: var(--accent);
  color: var(--surface-white);
  box-shadow: 0 8px 15px rgba(145, 192, 36, 0.4);
}

.btn-green:hover,
.btn-green:focus,
.btn.primary:hover,
.btn.primary:focus {
  box-shadow: 0 12px 20px rgba(145, 192, 36, 0.6);
  transform: translateY(-3px);
  outline: none;
}

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--surface-white);
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* ================= FEATURES ================= */

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  font-size: 1rem;
  color: var(--text-primary);
}

.feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--surface-white);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.3s ease;
}

.feature-list span:hover {
  box-shadow: var(--shadow-2);
}

/* ================= CONTAINERS ================= */

/* Container to center content and limit width for better layout */
.container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ================= ABOUT PAGE ================= */

.about-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--surface-white);
  background: linear-gradient(135deg, var(--primary), #005a96);
  margin-bottom: 40px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 60%);
  z-index: 0;
}

.about-hero .hero-content {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-hero .hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.5;
}

/* About main grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.about-text h2 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Highlight aside styling */
.about-highlight {
  background: var(--bg-soft);
  padding: 30px 24px;
  border-radius: var(--radius);
  color: var(--text-dark);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s ease;
}

.about-highlight:hover {
  box-shadow: var(--shadow-2);
}

.about-highlight h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.about-highlight ul {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.about-highlight ul li {
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
}

/* Custom bullet as a green check */
.about-highlight ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* About CTA Section */
.about-cta {
  text-align: center;
  color: var(--primary);
  margin-bottom: 80px;
}

.about-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-cta p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ================= PRODUCTS PAGE ================= */

/* Section Header - consistent with homepage/about */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--primary);
  font-weight: 700;
  font-size: 2.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

/* Background images as product cards */
.product-card {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 30px 30px;
  color: var(--surface-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

/* Gradient overlay for balanced image visibility and text legibility */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 80%, transparent 100%);
  border-radius: var(--radius);
  z-index: 0;
}

/* Text info container for hover effect */
.product-info {
  padding: 20px 25px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.product-card:hover .product-info,
.product-card:focus-within .product-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.75);
}

.product-card:hover .product-info p,
.product-card:focus-within .product-info p,
.product-card:hover .product-info h3,
.product-card:focus-within .product-info h3 {
  text-shadow: none;
  color: var(--surface-white);
}

/* Keep the button visible always */
.product-card a.btn.primary {
  position: relative;
  z-index: 2;
  background-color: var(--accent);
  box-shadow: 0 6px 15px rgba(145, 192, 36, 0.6);
  border-radius: 24px;
  font-weight: 700;
  padding: 14px 36px;
  width: max-content;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--surface-white);
}

.product-card a.btn.primary:hover,
.product-card a.btn.primary:focus {
  background-color: #6baa1e;
  box-shadow: 0 10px 28px rgba(107, 170, 30, 0.7);
  outline: none;
}

.product-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-6px);
}

.product-card h3,
.product-card p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.product-card h3 {
  font-weight: 700;
  font-size: 1.8rem;
}

.product-card p {
  font-size: 1.05rem;
  max-width: 320px;
  margin-bottom: 18px;
}

/* Specific product background images */
.boda-boda-premium {
  background-image: url('images/oil1.jpeg');
}

.diesel-engine-oil {
  background-image: url('images/oil2.jpeg');
}

/* ================= FEATURES PAGE ================= */

/* Feature grid used in homepage features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto 80px;
}

/* Feature cards */
.feature-card {
  background: var(--surface-white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

/* ================= HIGHLIGHT SECTION ================= */

.highlight {
  background: linear-gradient(135deg, rgba(145,192,36,0.12), rgba(0,113,188,0.08));
  margin-bottom: 80px;
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--primary);
  transition: box-shadow 0.3s ease;
}

.highlight:hover {
  box-shadow: var(--shadow-3);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--surface-white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 18px;
  user-select: none;
}

/* ================= LOCATION SECTION ================= */

.location {
  background: var(--surface-white);
  padding: 80px 8%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  max-width: 540px;
  margin: 0 auto 80px;
  text-align: center;
}

.location-card p {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.location-card p strong {
  color: var(--primary);
  font-weight: 700;
}

.phone {
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* ================= FOOTER ================= */

.site-footer {
  background: linear-gradient(135deg, #0b0b0b, #151515);
  color: #e5e7eb;
  padding: 70px 8% 30px;
  margin-top: 80px;
  font-family: var(--font-family);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-brand h3 {
  margin: 0 0 10px;
  color: var(--surface-white);
}

.footer-brand .tagline {
  font-size: 0.95rem;
  color: #9ca3af;
}

.site-footer p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer-info p,
.footer-contact p {
  color: #d1d5db;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* =================== Contact Form Jazz =================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 80px;
  align-items: stretch;
}

.contact-form {
  background: var(--surface-white);
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.3s ease;
  max-height: 600px;

}

.contact-form:hover,
.contact-form:focus-within {
  box-shadow: var(--shadow-2);
}

.form-group {
  position: relative;
  font-size: 1rem;
  padding-top: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 12px 8px 12px;
  border: none;
  border-bottom: 2px solid var(--text-secondary);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline-offset: 4px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(145, 192, 36, 0.3);
  outline: none;
}

/* Floating Label */
.form-group label {
  position: absolute;
  top: 22px;
  left: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s ease;
  user-select: none;
  background: var(--surface-white);
  padding: 0 6px;
  border-radius: 4px;
}

/* Float label up on focus or filled input */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(145, 192, 36, 0.7);
}

/* Animated underline */
.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.form-group input:focus ~ .underline,
.form-group textarea:focus ~ .underline {
  width: 100%;
}

/* Button with ripple effect */
.btn-green {
  position: relative;
  overflow: hidden;
  user-select: none;
  padding: 16px 48px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(145, 192, 36, 0.5);
  color: var(--surface-white);
  background: linear-gradient(135deg, #8bc34a, #5a9216);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-green:hover,
.btn-green:focus {
  box-shadow: 0 12px 28px rgba(145, 192, 36, 0.7);
  transform: translateY(-3px);
  outline: none;
}

.btn-green:active {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(145, 192, 36, 0.4);
}

/* Ripple effect */
.btn-green.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 1s ease;
  z-index: 1;
}

.btn-green.ripple:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

/* Success Message */
.success-message {
  max-width: 640px;
  margin: 20px auto 40px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #d0eecd, #a2d18f);
  border-radius: var(--radius);
  color: #27632a;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-1);
}

/* Contact Info Styling */
.contact-info {
  display: flex;
  flex-direction: column;  /* stack video and text vertically */
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--surface-white);
  overflow: hidden;
  user-select: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
  max-height: 600px;

}

.contact-info:hover {
  box-shadow: var(--shadow-2);
}

/* Video container */
.contact-media {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; /* portrait aspect ratio */
  overflow: hidden;
  flex-shrink: 0;
  max-height: 400px;
}

/* Video itself */
.contact-media video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Subtle polish on hover */
.contact-info:hover video {
  filter: brightness(1);
}

/* Text section */
.contact-text {
  padding: 0px 22px 20px 22px!important;
  text-align: center;
  color: var(--text-primary);
}

.contact-text h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-text p {
  color: var(--text-secondary);
  line-height: 1.5;
}

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

@media (max-width: 900px) {
  nav {
    padding: 12px 5%;
  }

  .menu {
    gap: 24px;
  }

  .hero {
    flex-direction: column;
    padding: 50px 5%;
    text-align: center;
  }

  .hero-text {
    flex: unset;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .feature-list {
    flex-direction: column;
    gap: 20px;
  }

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

  .about-highlight {
    margin-top: 30px;
  }

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

  .product-card {
    padding: 24px 18px;
    min-height: auto;
    background-position: center;
  }

  /* Remove fixed height on small screens for product cards */
  .product-card.boda-boda-premium,
  .product-card.diesel-engine-oil {
    min-height: 320px;
  }

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

  .contact-form {
    padding: 32px 24px;
  }

  .contact-info {
    padding: 0;
    flex-direction: column;
  }

  .contact-media{
    max-height: 480px;
  }

  .contact-text {
    padding: 24px 20px;
  }
}

@media (max-width: 899px) {
  /* On smaller screens, stack and make sure widths are full */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    width: 100%;
  }
}
