/* 
 * AFB Trade & Services Inc.
 * Global Styles
 */

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

:root {
  /* Color Palette */
  --color-primary: #0a192f; /* Deep Navy Blue */
  --color-primary-light: #112240; 
  --color-accent: #d4af37; /* Metallic Gold */
  --color-accent-hover: #f1c40f; 
  --color-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.15);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

body.fade-out {
  opacity: 0;
  transform: translateY(-15px);
}

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

ul {
  list-style: none;
}

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

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

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

/* =========================================
   Buttons
========================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after, .afb-btn-login::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shineSweep 4s infinite 1s;
  z-index: 1;
  pointer-events: none;
}

@keyframes shineSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--color-accent);
}

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

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

/* =========================================
   Header & Navigation
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-accent);
}

.logo img {
  max-height: 50px;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  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-accent);
  transition: width var(--transition-normal);
}

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

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

/* =========================================
   Hero Section
========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  color: var(--color-white);
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #e0e0e0;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-top: -100px;
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 2rem;
    transform: scale(0.8);
  }
}

.hero-visual {
  flex-shrink: 0;
  perspective: 1000px;
  animation: floatUpDown 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-3d-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  transform-style: preserve-3d;
}

.logo-3d-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.logo-3d-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.layer {
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.hero-visual:hover .layer-base { transform: translateZ(10px); }
.hero-visual:hover .layer-grid { transform: translateZ(30px); }
.hero-visual:hover .layer-ring { transform: translateZ(50px); }
.hero-visual:hover .layer-leaf { transform: translateZ(80px) scale(1.1); filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5)); }

@keyframes floatUpDown {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* =========================================
   Sections (General)
========================================= */
.section {
  padding: 5rem 0;
}

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

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

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-white);
}

.section-dark .section-title::after {
  background-color: var(--color-accent);
}

/* =========================================
   Services Cards
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
  border-bottom: 3px solid transparent;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-accent);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* =========================================
   Guarantee Banner
========================================= */
.guarantee-banner {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
  border-top: 4px solid var(--color-accent);
  border-bottom: 4px solid var(--color-accent);
}

.guarantee-banner h2 {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.guarantee-banner p {
  color: #e0e0e0;
  font-size: 1.25rem;
  margin: 0;
}

/* =========================================
   Footer
========================================= */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aabf;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  color: #a0aabf;
}

.footer-contact i {
  color: var(--color-accent);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #a0aabf;
  font-size: 0.875rem;
}

/* =========================================
   Page Header (For inner pages)
========================================= */
.page-header {
  height: 400px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../images/page-header-bg.jpg') center/cover;
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: 3rem;
}

.breadcrumb {
  color: var(--color-accent);
  font-weight: 500;
}

/* =========================================
   Content Styles (Inner pages)
========================================= */
.content-block {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.content-block h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 0.5rem;
}

.content-block p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.8;
}

.content-block ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.content-block ul li {
  margin-bottom: 0.5rem;
}

/* =========================================
   Glassmorphism General Utilities
========================================= */
.glass-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a365d 100%);
    overflow: hidden;
    color: var(--color-white);
}

.glass-section h2, .glass-section p {
    color: var(--color-white) !important;
}

.glass-shape-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    z-index: 0;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.glass-shape-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    z-index: 0;
    animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.glass-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all var(--transition-normal);
    color: var(--color-white);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: var(--color-accent);
}

.glass-card h3, .glass-card h2 {
    color: var(--color-white) !important;
    margin-bottom: 1.5rem;
}

.glass-card p {
    color: #e2e8f0 !important;
}

.glass-card a.btn-outline {
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

.glass-card a.btn-outline:hover {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
}

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

/* =========================================
   Animations
========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Media Queries
========================================= */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
  
  .nav-list {
    display: none; /* Hide on mobile initially */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  /* Mobile Menu Active State */
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  
  .section { padding: 3rem 0; }
  .content-block { padding: 2rem 1.5rem; }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* ══════════════════════════════════════
   CUSTOM AFB HEADER STYLES
   ══════════════════════════════════════ */
.afb-header {
  background: #15243B;
  border-bottom: 1px solid rgba(201, 150, 42, 0.25);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.afb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.afb-logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.afb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.afb-logo-monogram {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.afb-logo-tagname {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #C9962A;
  text-transform: uppercase;
}

.afb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.afb-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 18px;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.afb-nav a:hover {
  color: #C9962A;
}

.afb-nav a.active {
  color: #ffffff;
  font-weight: 600;
}

.afb-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #C9962A;
  border-radius: 1px;
}

.afb-btn-login {
  background: #C9962A;
  color: #15243B;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.afb-btn-login:hover {
  background: #e8b84b;
}

.afb-header-rule {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #C9962A 25%,
    #e8b84b 50%,
    #C9962A 75%,
    transparent 100%
  );
  opacity: 0.6;
}

.afb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.afb-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: background 0.2s;
}

.afb-hamburger:hover span { background: #C9962A; }

.afb-mobile-nav {
  display: none;
  flex-direction: column;
  background: #15243B;
  border-top: 1px solid rgba(201,150,42,0.2);
  padding: 12px 0 16px;
}

.afb-mobile-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 11px 40px;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.afb-mobile-nav a:hover,
.afb-mobile-nav a.active {
  color: #C9962A;
  border-left-color: #C9962A;
}

.afb-mobile-nav .afb-mobile-login {
  margin: 12px 40px 0;
  background: #C9962A;
  color: #15243B;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  display: block;
  text-decoration: none;
}

@media (max-width: 768px) {
  .afb-nav,
  .afb-btn-login { display: none; }
  .afb-hamburger { display: flex; }
  .afb-mobile-nav.open { display: flex; }
}
