/* ==========================================================================
   ALBASORA - Core Stylesheet (Pure CSS, No Framework Bloat)
   Clean, Responsive, Fast & Modular
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary-green: #137A3E;
  --color-primary-green-dark: #0e5b2e;
  --color-primary-green-light: #18984d;
  --color-primary-red: #B51717;
  --color-primary-red-dark: #760000;
  --color-dark: #222334;
  --color-darker: #0A0B14;
  --color-slate: #616379;
  --color-light-gray: #F5F4F5;
  --color-border: #E2E8F0;
  --color-text: #334155;
  --color-text-light: #64748B;
  --color-white: #FFFFFF;
  --container-max-width: 1280px;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-menu: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0,0,0,0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary-green);
  color: var(--color-white);
  font-family: var(--font-menu);
  font-size: 14px;
  padding: 8px 0;
  position: relative;
  z-index: 101;
}

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

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 400;
}

.top-bar-item svg, .top-bar-item i {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-item a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ==========================================================================
   MAIN NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

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

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

.site-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-menu);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 10px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary-green);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-green);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary-green);
}

.mobile-toggle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-bottom: 4px solid var(--color-primary-green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 15px 20px 25px;
}

.mobile-nav.open {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.mobile-nav .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
}

/* ==========================================================================
   HERO SECTION / SLIDER (HOMEPAGE)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background-color: #0b111e;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 6s ease-in-out;
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 11, 20, 0.4) 0%, rgba(10, 11, 20, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-content {
  color: var(--color-white);
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-menu);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  opacity: 0.95;
  text-transform: uppercase;
}

.slider-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* ==========================================================================
   PAGE BANNER (INNER PAGES)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #0A0B14 0%, #172554 100%);
  padding: 60px 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, rgba(19, 122, 62, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-bg-light {
  background-color: var(--color-light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  color: var(--color-primary-green);
  font-family: var(--font-menu);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-primary-green);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   HOMEPAGE ABOUT / INTRO
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.about-text p b {
  color: var(--color-dark);
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-primary-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(181, 23, 23, 0.35);
}

.btn-green {
  background-color: var(--color-primary-green);
  color: var(--color-white);
}

.btn-green:hover {
  background-color: var(--color-primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 122, 62, 0.35);
}

/* ==========================================================================
   STATS COUNTERS & COUNTRIES
   ========================================================================== */
.stats-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--color-white);
  padding: 60px 0;
  position: relative;
}

.stats-intro {
  text-align: center;
  margin-bottom: 40px;
}

.stats-intro h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.stats-intro p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--color-primary-green);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-title {
  font-family: var(--font-menu);
  font-size: 18px;
  font-weight: 600;
  color: #cbd5e1;
}

/* ==========================================================================
   SECTOR / ACTIVITY CARDS (GRID)
   ========================================================================== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.activity-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-green);
}

.activity-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

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

.activity-card:hover .activity-card-img img {
  transform: scale(1.06);
}

.activity-card-body {
  padding: 18px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-dark);
  transition: var(--transition);
}

.activity-card:hover .activity-card-title {
  color: var(--color-primary-green);
}

/* ==========================================================================
   BRAND LOGOS
   ========================================================================== */
.brand-logos {
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
}

.brand-logos-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.brand-logo-item img {
  max-height: 55px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(30%);
  transition: var(--transition);
}

.brand-logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ==========================================================================
   CONTENT BLOCKS (INNER PAGES)
   ========================================================================== */
.content-box {
  background: var(--color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  line-height: 1.8;
  color: #334155;
  font-size: 16px;
}

.content-box h2, .content-box h3, .content-box h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-top: 25px;
  margin-bottom: 12px;
}

.content-box h2:first-child, .content-box h3:first-child {
  margin-top: 0;
}

.content-box p {
  margin-bottom: 18px;
}

.content-box hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 30px 0;
}

/* Alternating Feature Rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) .feature-text {
  direction: ltr;
}

.feature-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.feature-text p {
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

/* Product Detail Cards */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: start;
}

.product-gallery {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 15px;
}

.product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.product-info p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.product-info strong {
  color: var(--color-dark);
  font-size: 18px;
  display: block;
  margin-top: 15px;
}

/* Grid for catalogs / PDF / Chemarin products */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.catalog-card {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-green);
}

.catalog-card img {
  margin: 0 auto 15px;
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.catalog-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

/* ==========================================================================
   CONTACT PAGE & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--color-primary-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-info-content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.contact-info-content p, .contact-info-content a {
  color: #475569;
  font-size: 15px;
}

.contact-info-content a:hover {
  color: var(--color-primary-green);
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-menu);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--color-text);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 122, 62, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-help-bar {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 35px 0;
}

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

.footer-help-title {
  font-family: var(--font-menu);
  font-size: 26px;
  font-weight: 700;
}

.footer-help-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-help-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.footer-help-email {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-help-sub {
  font-size: 14px;
  color: #94a3b8;
}

.site-footer {
  background-color: var(--color-darker);
  color: #94a3b8;
  padding: 60px 0 25px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 22px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-primary-green);
}

.footer-about p {
  line-height: 1.7;
  margin: 15px 0 20px;
  color: #cbd5e1;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer-links a::before {
  content: '›';
  font-size: 16px;
  color: var(--color-primary-green);
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon:hover {
  background-color: var(--color-primary-green);
  border-color: var(--color-primary-green);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.footer-bottom p {
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .about-grid,
  .feature-row,
  .product-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-row:nth-child(even) {
    direction: ltr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 420px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .top-bar-item:first-child {
    display: none;
  }
  .top-bar .container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .site-header .container {
    height: 70px;
  }
  .site-logo img {
    height: 48px;
  }
}
