/* ============================================
   BayLink — B2B Trading Company
   Style Sheet
   ============================================ */

/* --- Variables --- */
:root {
  --color-navy: #1e3a5f;
  --color-navy-light: #2c5282;
  --color-steel: #3b6ca0;
  --color-blue-tint: #eef3f8;
  --color-silver: #e5e7eb;
  --color-grey: #6b7280;
  --color-grey-light: #9ca3af;
  --color-ink: #1a1a1a;
  --color-offwhite: #f8f8f6;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --nav-height: 68px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-ink);
  background: var(--color-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-grey-light);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-grey);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--color-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

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

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

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-silver);
  height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}

.nav-logo span {
  font-weight: 400;
  color: var(--color-grey-light);
  font-size: 0.8rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-navy);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.lang-toggle {
  font-size: 0.75rem;
  padding: 6px 12px;
  border: 1px solid var(--color-silver);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: var(--color-grey);
  font-weight: 500;
  transition: var(--transition);
  font-family: inherit;
}

.lang-toggle:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-ink);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-silver);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--color-navy) 0%, #2a4c7a 50%, var(--color-navy-light) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-brand {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 32px;
}

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

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

.hero-actions .btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-brand { font-size: 2.25rem; }
  .hero-tagline { font-size: 1rem; }
}

/* --- Sections Generic --- */
section {
  padding: 72px 0;
}

/* --- About / Intro --- */
.intro {
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.intro-content p {
  color: var(--color-grey);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--color-blue-tint);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-grey);
  font-weight: 500;
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { font-size: 1.5rem; }
}

/* --- GBA Section --- */
.gba {
  background: var(--color-offwhite);
}

.gba-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.gba-content p {
  color: var(--color-grey);
  font-size: 1rem;
  line-height: 1.8;
}

.gba-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.gba-item {
  background: var(--color-white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--color-silver);
}

.gba-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.gba-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.gba-item p {
  font-size: 0.85rem;
  color: var(--color-grey);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gba-highlights { grid-template-columns: 1fr; }
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--color-silver);
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--color-steel);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
  transform: translateY(-2px);
}

.product-card .icon {
  width: 48px;
  height: 48px;
  background: var(--color-blue-tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--color-grey);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--color-blue-tint);
  color: var(--color-navy);
  border-radius: 20px;
  font-weight: 500;
}

/* --- Process --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-silver);
  position: relative;
}

.process-step .step-num {
  width: 32px;
  height: 32px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--color-grey);
}

/* --- CTA Section --- */
.cta {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-whatsapp {
  background: var(--color-whatsapp);
}

/* --- Footer --- */
footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  color: var(--color-white);
}

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

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* --- Products Page --- */
.page-header {
  padding: 120px 0 48px;
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .label {
  font-size: 0.8rem;
  color: var(--color-grey-light);
  margin-bottom: 2px;
}

.contact-detail .value {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- No Gutter --- */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
