/* ============================================
   SENHAI OILS - Custom Brand Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --senhai-green: #1B4332;
  --senhai-green-light: #2D6A4F;
  --senhai-gold: #D4A853;
  --senhai-gold-light: #E8C97A;
  --senhai-cream: #FFF8F0;
  --senhai-dark: #0F1A14;
  --senhai-gray: #6B7280;
  --senhai-white: #FFFFFF;
}

/* --- Global --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Header Branding --- */
.site-header {
  background: var(--senhai-white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* --- Hero Section --- */
.senhai-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--senhai-dark) 0%, var(--senhai-green) 50%, #1a3a2a 100%);
  overflow: hidden;
}
.senhai-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("https://images.unsplash.com/photo-1598971861713-54ad16a7e72e?w=1600&q=80") center/cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.senhai-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(15,26,20,0.6));
}
.senhai-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 0;
}
.senhai-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.senhai-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.senhai-hero .hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.senhai-hero .hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.senhai-btn-primary {
  display: inline-block;
  background: var(--senhai-gold);
  color: var(--senhai-dark) !important;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.senhai-btn-primary:hover {
  background: var(--senhai-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,168,83,0.4);
}
.senhai-btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.senhai-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* --- Section Titles --- */
.senhai-section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.senhai-section-title .overline {
  display: inline-block;
  color: var(--senhai-gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.senhai-section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--senhai-dark);
  margin: 0.5rem 0;
}
.senhai-section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--senhai-gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.senhai-section-title .subtitle {
  color: var(--senhai-gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* --- Product Cards --- */
.senhai-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.senhai-product-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.senhai-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--senhai-gold);
}
.senhai-product-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--senhai-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.senhai-product-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--senhai-dark);
  margin-bottom: 0.5rem;
}
.senhai-product-card p {
  font-size: 0.9rem;
  color: var(--senhai-gray);
  line-height: 1.6;
  margin: 0;
}
.senhai-product-card .link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--senhai-green-light);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

/* --- Service Cards --- */
.senhai-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.senhai-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.senhai-service-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  border-color: var(--senhai-gold);
}
.senhai-service-card .s-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.senhai-service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--senhai-dark);
  margin-bottom: 0.5rem;
}
.senhai-service-card p {
  font-size: 0.9rem;
  color: var(--senhai-gray);
  line-height: 1.6;
}

/* --- Why Choose Section --- */
.senhai-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.senhai-why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--senhai-cream);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.senhai-why-item:hover {
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.senhai-why-item .why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.senhai-why-item .why-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--senhai-dark);
  margin: 0 0 4px 0;
}
.senhai-why-item .why-text p {
  font-size: 0.85rem;
  color: var(--senhai-gray);
  margin: 0;
  line-height: 1.5;
}

/* --- CTA Banner --- */
.senhai-cta-banner {
  background: linear-gradient(135deg, var(--senhai-green) 0%, var(--senhai-dark) 100%);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.senhai-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.senhai-cta-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  margin-bottom: 1rem;
}
.senhai-cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  position: relative;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* --- Footer --- */
.senhai-footer {
  background: var(--senhai-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

/* --- WhatsApp Float Button --- */
.senhai-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.senhai-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}
.senhai-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.senhai-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.senhai-whatsapp-float:hover .senhai-whatsapp-tooltip {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .senhai-hero h1 {
    font-size: 2rem;
  }
  .senhai-hero p {
    font-size: 1rem;
  }
  .senhai-hero .hero-badges {
    gap: 8px;
  }
  .senhai-hero .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .senhai-section-title h2 {
    font-size: 1.6rem;
  }
  .senhai-cta-banner {
    padding: 32px 24px;
  }
  .senhai-cta-banner h2 {
    font-size: 1.5rem;
  }
}

/* --- Astra Overrides --- */
.ast-container {
  max-width: 1200px;
}
.site-content .ast-container {
  max-width: 100%;
  padding: 0;
}
.entry-content {
  margin: 0;
}


/* --- Hide page title on homepage --- */
.home .entry-header {
  display: none !important;
}

/* --- Header improvements --- */
.site-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.site-header {
  padding: 8px 0;
}
@media (max-width: 768px) {
  .site-title {
    font-size: 1rem !important;
  }
}

/* --- Section padding normalization --- */
.entry-content > .wp-block-group {
  padding-top: 0;
  padding-bottom: 0;
}
.entry-content > .wp-block-cover {
  padding-top: 0;
  padding-bottom: 0;
}


/* --- Header with Logo --- */
.site-header {
  background: var(--senhai-dark) !important;
  border-bottom: 1px solid rgba(212,168,83,0.2) !important;
}
.site-header .site-title,
.site-header .site-title a {
  color: #fff !important;
}
.site-header .main-navigation .menu-link {
  color: rgba(255,255,255,0.85) !important;
}
.site-header .main-navigation .menu-link:hover,
.site-header .main-navigation .current-menu-item .menu-link {
  color: var(--senhai-gold) !important;
}
.site-header .custom-logo-link img {
  max-height: 48px;
  width: auto;
}
/* Mobile header */
.ast-mobile-header-wrap {
  background: var(--senhai-dark) !important;
}
.ast-mobile-menu-trigger-minimal .ast-button-wrap .menu-toggle-icon,
.ast-mobile-menu-trigger-minimal .ast-button-wrap .ast-mobile-menu-trigger-minimal {
  color: #fff !important;
}

/* Hide redundant site title (logo already has text) */
.site-header .site-title {
  display: none !important;
}
/* Center logo in header */
.site-header .site-logo-img {
  padding-right: 0 !important;
}

/* --- Force header dark background (override Astra inline styles) --- */
.ast-primary-header-bar,
.ast-primary-header-bar.ast-primary-header,
.main-header-bar.ast-primary-header-bar,
.main-header-bar-wrap,
.ast-main-header-wrap,
#masthead .ast-primary-header-bar {
  background-color: var(--senhai-dark) !important;
  background: var(--senhai-dark) !important;
}
.site-header,
#masthead {
  background-color: var(--senhai-dark) !important;
  background: var(--senhai-dark) !important;
}

/* Nav text colors - force override */
.ast-primary-header-bar .ast-builder-menu .menu-link,
.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
  color: rgba(255,255,255,0.9) !important;
}
.main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .current-menu-item > .menu-link,
.main-header-menu .menu-item:hover > .menu-link {
  color: var(--senhai-gold) !important;
}

/* Header bottom border */
.main-header-bar {
  border-bottom-color: rgba(212,168,83,0.2) !important;
}
