/*
Theme Name: Natural Springs Water Solution Theme
Theme URI: https://www.naturalspringswatersolution.com/
Author: Antigravity
Author URI: https://www.naturalspringswatersolution.com/
Description: A fully customizable, premium, dynamic theme for Sewage Treatment Plants, ETP, RO & ZLD manufacturers. Developed from static designs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ns-water-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
  --color-primary: #15476E;       /* Deep Navy Blue */
  --color-primary-dark: #0f324e;  /* Darker Navy for overrides */
  --color-primary-light: #1d6197; /* Lighter Navy for accents */
  --color-secondary: #339EAD;     /* Teal/Cyan */
  --color-secondary-hover: #28818E; /* Darker teal for hover states */
  --color-secondary-light: #e6f5f7; /* Very light teal for background accents */
  --color-text: #1E293B;          /* Slate 800 for primary text */
  --color-text-light: #475569;    /* Slate 600 for body text/descriptions */
  --color-text-muted: #64748B;    /* Slate 500 */
  --color-bg-light: #F8FAFC;      /* Slate 50 background */
  --color-bg-white: #FFFFFF;      /* Clean White */
  --color-border: #E2E8F0;        /* Slate 200 border */
  --color-danger: #EF4444;        /* Soft red for validation errors */
  --color-success: #10B981;       /* Soft green for success states */

  --font-headings: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  --max-width: 1200px;
  --header-height: 80px;
  --announcement-height: 40px;
}

/* --- BASE STYLES & RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- ACCESSIBILITY FOCUS STATES --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}

/* --- STRUCTURE / CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--color-bg-white);
}

.section-bg-dark {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}
.section-bg-dark h2,
.section-bg-dark p {
  color: var(--color-bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-full);
}

.section-header p {
  font-size: 1.125rem;
}

/* Eyebrow / Tag */
.eyebrow {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
}
.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background-color: transparent;
}
.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
}
.btn-white:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- HEADER / NAVIGATION --- */
.announcement-bar {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
  font-size: 0.825rem;
  text-align: center;
  padding: 0.5rem 1rem;
  height: auto;
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 1000;
  position: relative;
}

.main-header {
  background-color: var(--color-bg-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), background var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0.5rem;
}

/* --- HERO SECTION --- */
.hero {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(21, 71, 110, 1) 0%, rgba(15, 50, 78, 1) 90.2%);
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 158, 173, 0.05) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: var(--color-bg-white);
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subheadline {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.hero-body {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-primary-dark);
}

.hero-visual img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Stat Counter Strip */
.stat-strip {
  background-color: var(--color-bg-white);
  padding: 2.5rem 0;
  box-shadow: var(--shadow-md);
  margin-top: -3rem;
  position: relative;
  z-index: 5;
  border-radius: var(--border-radius-lg);
  border-bottom: 4px solid var(--color-secondary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SERVICES & PRODUCTS CARDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary);
}

.card:hover .card-img {
  transform: scale(1.05);
}

/* STP variation tech cards on services page */
.stp-hero-img {
  height: 280px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.services-cards {
  grid-template-columns: repeat(2, 1fr);
}

.tech-card {
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  border: 1px solid transparent;
}

.tech-card img {
  transition: transform var(--transition-slow);
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary);
  background: var(--color-bg-white);
}

.tech-card:hover img {
  transform: scale(1.08);
}

.card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon-tag {
  align-self: flex-start;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--color-secondary-hover);
}

.section-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* --- SUSTAINABILITY SECTION --- */
.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.sustain-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.sustain-card:hover {
  transform: translateY(-5px);
}

.sustain-icon {
  width: 54px;
  height: 54px;
  background-color: var(--color-secondary-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

.sustain-icon svg {
  width: 28px;
  height: 28px;
}

.sustain-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* --- CLIENT MARQUEE --- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-white);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-normal {
  animation: marquee-normal 30s linear infinite;
}

.marquee-reverse {
  animation: marquee-reverse 30s linear infinite;
}

.marquee-item {
  width: 200px;
  height: 90px;
  margin: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.marquee-item svg,
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.marquee-item:hover {
  transform: scale(1.15); /* Pop up a little bit */
}

@keyframes marquee-normal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --- FAQ SECTION --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-item.active {
  border-color: var(--color-secondary);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon-box {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.975rem;
  color: var(--color-text-light);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-inner {
  border-top: 1px solid var(--color-border);
}

/* --- CONTACT & FORMS --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background-color: var(--color-bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-secondary-light);
  padding-bottom: 0.5rem;
}

.contact-details-list {
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-content h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.contact-detail-content a:hover {
  color: var(--color-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}

.social-icon-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Forms styling */
.form-card {
  background-color: var(--color-bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-secondary);
  background-color: var(--color-bg-white);
  outline: none;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* Honeypot field (hidden from users but caught by bots) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* Form status alerts */
.form-status {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 0 0;
  border-top: 4px solid var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--color-bg-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-full);
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128C7E;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- ABOUT PAGE SPECIAL COMPONENTS --- */
/* Milestones Timeline */
.timeline-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  color: var(--color-bg-white);
  background: radial-gradient(circle at 10% 20%, rgba(21, 71, 110, 1) 0%, rgba(15, 50, 78, 1) 90.2%);
}

.timeline-section .section-header .eyebrow {
  color: var(--color-secondary);
}

.timeline-section .section-header h2 {
  color: var(--color-bg-white);
}

.timeline-section .section-header p {
  color: rgba(255, 255, 255, 0.78);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Static dim track - barely visible so upcoming path is hidden */
.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--border-radius-full);
}

/* Light beam that travels top -> down with scroll */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: var(--beam, 0%);
  border-radius: var(--border-radius-full);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--color-secondary) 55%, #bff4fb 100%);
  box-shadow: 0 0 18px 4px rgba(51, 158, 173, 0.8), 0 0 36px 8px rgba(51, 158, 173, 0.45);
  z-index: 1;
  transition: height 0.15s linear;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: rgba(15, 50, 78, 0.9);
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 2.5rem;
  z-index: 2;
  opacity: 0;
  transform: scale(0.4);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

/* Milestone lights up when beam passes it */
.timeline-item.visible::after {
  background-color: var(--color-secondary);
  border-color: #bff4fb;
  box-shadow: 0 0 16px 4px rgba(51, 158, 173, 0.9), 0 0 30px 8px rgba(51, 158, 173, 0.4);
  transform: scale(1.25);
  opacity: 1;
}

.timeline-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible .timeline-badge {
  background-color: var(--color-secondary);
  color: #06222e;
  box-shadow: 0 0 20px 2px rgba(51, 158, 173, 0.6);
  opacity: 1;
  transform: translateY(0);
}

.timeline-card {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.6s ease, box-shadow 0.6s ease, background-color 0.6s ease;
}

.timeline-item.visible .timeline-card {
  opacity: 1;
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(51, 158, 173, 0.55);
  box-shadow: 0 8px 40px rgba(51, 158, 173, 0.25);
}

.timeline-card h3 {
  color: var(--color-bg-white);
}

.timeline-card p {
  color: rgba(255, 255, 255, 0.82);
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.value-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- BLOG PAGE --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-meta-item svg {
  width: 14px;
  height: 14px;
}

/* --- INNER HERO BANNER --- */
.inner-hero {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 4.5rem 0;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(21, 71, 110, 1) 0%, rgba(15, 50, 78, 1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inner-hero h1 {
  font-size: 2.5rem;
  color: var(--color-bg-white);
  margin-bottom: 0.75rem;
}

.inner-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.6);
}

/* Map frame */
.map-container {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Cookie consent styling */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  z-index: 1001;
  display: none;
  border-left: 5px solid var(--color-secondary);
}

.cookie-banner-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cookie-banner-content p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

/* --- CUSTOM 404 PAGE --- */
.error-page-layout {
  text-align: center;
  padding: 7rem 0;
}

.error-code {
  font-size: 8rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--color-primary-light);
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.error-desc {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual img {
    height: 350px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sustainability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item {
    border-right: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + var(--announcement-height));
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--announcement-height));
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: 998;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline::after {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 1.5rem;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 30px !important;
    right: auto !important;
  }

  .cards-grid,
  .sustainability-grid,
  .values-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* STP main section hero collapses to single column on mobile */
  .stp-hero {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Mobile: image first, then headline + paragraph + button below it */
  .stp-hero-img {
    order: 1;
    height: 220px !important;
  }

  .stp-hero-text {
    order: 2;
  }

  /* STP variation tech cards stack full-width on mobile */
  .tech-grid {
    gap: 1.5rem !important;
  }

  .tech-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .form-card,
  .contact-info {
    padding: 1.5rem;
  }

  .tech-card > div:first-child {
    height: 180px !important;
  }

  .stp-main-section {
    padding: 1.5rem !important;
  }

  /* About hero mobile: hide images, show text only */
  .about-hero {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .about-hero-img {
    display: none !important;
  }
}
