/* ==========================================================================
   SPECIAL METAL (BAHRAIN) - MASTER STYLESHEET
   Industrial Metallurgy & Engineering Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary-teal: #004d4f;
  --primary-teal-dark: #00383a;
  --primary-teal-darker: #002527;
  --primary-teal-light: #026568;
  --primary-teal-muted: #e6f1f2;
  
  --accent-green: #75b838;
  --accent-green-hover: #65a12f;
  --accent-green-light: #f0f8e9;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-light: #e0f2fe;
  
  --bg-light: #f4f6f8;
  --bg-card: #ffffff;
  --bg-dark: #002527;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-teal: rgba(0, 77, 79, 0.2);
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Fonts */
  --font-heading: 'Oswald', 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 77, 79, 0.1), 0 10px 10px -5px rgba(0, 77, 79, 0.04);
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 20px rgba(117, 184, 56, 0.4);
  
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-card);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  line-height: 1.15;
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-teal);
  margin-bottom: 8px;
}

.section-tag.light {
  color: var(--accent-cyan);
}

.section-title {
  font-size: 2.3rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-title.light {
  color: var(--text-white);
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

.text-green {
  color: var(--accent-green) !important;
}

.text-teal {
  color: var(--primary-teal) !important;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* Top Contact Bar */
.top-bar {
  background-color: var(--primary-teal-dark);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.top-bar-item a:hover {
  color: var(--text-white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  color: #cbd5e1;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--text-white);
}

/* Main Navigation */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 77, 79, 0.05);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo .logo-img {
  height: 50px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-img {
  transform: scale(1.02);
}

.footer-about .brand-logo {
  display: inline-flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.footer-about .brand-logo .logo-img {
  height: 58px;
  width: auto;
  max-width: 290px;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 3px 8px rgba(0, 77, 79, 0.25);
  position: relative;
}

.logo-symbol svg {
  width: 28px;
  height: 28px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-teal);
  line-height: 1;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-top: 2px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-teal);
  transition: width 0.2s ease;
}

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

.nav-link.active {
  color: var(--primary-teal);
  font-weight: 600;
}

/* Nav CTA Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 10px rgba(117, 184, 56, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-green-hover), #568a25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline-teal {
  background-color: transparent;
  color: var(--primary-teal);
  border-color: var(--border-light);
}

.btn-outline-teal:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  background-color: var(--primary-teal-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--primary-teal);
  border-color: var(--text-white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-outline-dark:hover {
  background-color: var(--text-dark);
  color: var(--text-white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-teal);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   Home Hero Section (Screenshot 1)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  background: #002224;
  color: var(--text-white);
  display: flex;
  align-items: center;
  padding: 90px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 36, 38, 0.90) 0%,
    rgba(0, 60, 62, 0.70) 50%,
    rgba(0, 77, 79, 0.35) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge-tag {
  background-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.08;
  color: var(--text-white);
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 620px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Quality Assurance Strip */
.assurance-strip {
  background-color: #e6ebed;
  border-bottom: 1px solid #d4dde0;
  padding: 14px 0;
}

.assurance-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.assurance-item {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assurance-item::after {
  content: '|';
  margin-left: 16px;
  color: #cbd5e1;
}

.assurance-item:last-child::after {
  display: none;
}

/* ==========================================================================
   Vision / About Section (Screenshot 1)
   ========================================================================== */
.vision-section {
  padding: 90px 0;
  background-color: var(--bg-card);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.vision-image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: visible;
}

.vision-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.vision-stat-card {
  position: absolute;
  bottom: -20px;
  right: 0;
  background-color: var(--primary-teal);
  color: var(--text-white);
  padding: 24px 30px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 77, 79, 0.35);
  max-width: 220px;
}

.vision-stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-white);
  margin-bottom: 4px;
}

.vision-stat-label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.3;
  color: #d1fae5;
}

.vision-content {
  padding-left: 10px;
}

.vision-text {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
}

.vision-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.highlight-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}

.highlight-box:hover {
  border-color: var(--primary-teal);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.highlight-icon {
  color: var(--primary-teal);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-title {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Specialties / Products Section (Screenshot 1)
   ========================================================================== */
.specialties-section {
  padding: 90px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.catalogue-link {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--primary-teal);
  padding-bottom: 2px;
}

.catalogue-link:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.product-card-img-wrapper {
  height: 220px;
  overflow: hidden;
  background-color: #cbd5e1;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag-pill {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Philosophy / Why Us Section (Screenshot 1)
   ========================================================================== */
.philosophy-section {
  padding: 90px 0;
  background-color: var(--bg-card);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.why-us-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.why-us-card:hover {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-us-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: var(--primary-teal-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  font-size: 1.8rem;
}

.why-us-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.why-us-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner (Screenshot 1, 2, 3, 4)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
  color: var(--text-white);
  padding: 70px 0;
  text-align: center;
}

.cta-title {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 30px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer (Screenshot 1, 2, 3, 4, 5)
   ========================================================================== */
.main-footer {
  background-color: var(--primary-teal-darker);
  color: #cbd5e1;
  padding-top: 70px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .logo-title {
  color: var(--text-white);
}

.footer-desc {
  margin: 18px 0 20px;
  line-height: 1.65;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition);
}

.footer-social-btn:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-white);
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-green);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

/* Contact Page Layout Grid */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding: 20px 0;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #64748b;
  text-transform: uppercase;
  font-family: var(--font-condensed);
  letter-spacing: 0.8px;
}

.footer-bottom-links a:hover {
  color: var(--text-white);
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   Page Headers (Screenshots 2, 3, 4, 5)
   ========================================================================== */
.page-hero {
  background-color: var(--primary-teal-dark);
  color: var(--text-white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero.hero-with-bg {
  background: linear-gradient(rgba(0, 36, 38, 0.9), rgba(0, 60, 62, 0.85)), url('../assets/images/hero_pipes_bg.jpg') center/cover no-repeat;
  text-align: left;
  padding: 80px 0;
}

.page-hero-title {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 100px;
  right: 26px;
  left: auto;
  z-index: 999;
}

.whatsapp-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: chatPulse 2.4s infinite;
  pointer-events: none;
}


.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  border: 1px solid var(--border-light);
}

.whatsapp-popup.active {
  display: flex;
}

.whatsapp-popup-header {
  background-color: var(--primary-teal);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-popup-body {
  padding: 16px;
  background-color: #efeae2;
  font-size: 0.88rem;
}

.whatsapp-msg {
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px 8px 8px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.whatsapp-popup-footer {
  padding: 12px 16px;
  background-color: #ffffff;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Modern Scroll Animations (Scroll-driven & IntersectionObserver fallback)
   ========================================================================== */

/* Base hidden state for fallback observer */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Native CSS Scroll-driven animations (where supported) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    
    /* Disable fallback transitions if native is supported */
    .reveal-up {
      transition: none;
      opacity: 1; 
      transform: none;
    }

    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-up {
      animation: fade-in-up auto ease-out both;
      animation-timeline: view(block);
      animation-range: entry 5% cover 25%;
    }
  }
}


/* Mobile Responsive for WhatsApp Widget */
@media (max-width: 768px) {
  .whatsapp-widget {
    bottom: 90px;
    right: 20px;
  }
  .whatsapp-btn {
    width: 56px;
    height: 56px;
  }
  .whatsapp-popup {
    position: fixed;
    bottom: 160px;
    right: 16px;
    left: 16px;
    width: auto; /* Takes up available width without overflowing */
  }
}
