/* ============================================
   BOMAC BUILDERS - Main Stylesheet
   Design: Minimalist, Bold Typography, Generous Spacing
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================ */
:root {
  /* Brand Colors - Sage Green + Charcoal Theme */
  --color-primary: #2c3e50;      /* Deep charcoal/slate */
  --color-accent: #7a9b76;       /* Sage green (matches Ansa Botanic) */
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;

  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Typography Scale */
  --font-size-base: 1rem;        /* 16px */
  --font-size-sm: 0.875rem;      /* 14px */
  --font-size-lg: 1.125rem;      /* 18px */
  --font-size-xl: 1.25rem;       /* 20px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Layout */
  --max-width-container: 1280px;
  --max-width-content: 800px;

  /* Transitions */
  --transition-base: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  position: relative;
}

/* Subtle vertical grid lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width-container);
  height: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / 12 - 1px),
      rgba(122, 155, 118, 0.08) calc(100% / 12 - 1px),
      rgba(122, 155, 118, 0.08) calc(100% / 12)
    );
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content is above grid lines */
body > * {
  position: relative;
  z-index: 1;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.text-muted {
  color: var(--color-text-muted);
}

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

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.content-wrapper {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section {
  padding: var(--space-3xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Scrolled state - solid background with shadow */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.logo {
  display: none; /* Hide logo in navbar */
}

.nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-white);
  position: relative;
  padding: var(--space-xs) 0;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark text when scrolled */
.header.scrolled .nav-link {
  color: var(--color-text);
  text-shadow: none;
}

.nav-link:hover {
  color: var(--color-accent);
}

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

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

/* Navbar CTA Button - Subtle style */
.nav-link.nav-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-lg);
  border-radius: 4px;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  text-shadow: none;
}

/* CTA button when scrolled */
.header.scrolled .nav-link.nav-cta {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background-color: transparent;
}

.nav-link.nav-cta::after {
  display: none; /* Remove underline effect */
}

.nav-link.nav-cta:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: none;
}

/* Ensure hover works properly when scrolled */
.header.scrolled .nav-link.nav-cta:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  transition: var(--transition-base);
}

/* Mobile toggle when scrolled */
.header.scrolled .mobile-menu-toggle span {
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  .header-container {
    padding: var(--space-md);
    justify-content: space-between;
  }

  .logo {
    display: block;
    max-height: 40px;
    width: auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid #eee;
    color: var(--color-text);
    text-shadow: none;
  }

  .nav-link.nav-cta {
    margin-top: var(--space-sm);
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0; /* No margin needed with transparent navbar */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle darkening gradient at bottom for mood and text contrast */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 50%;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--color-white);
  z-index: 2;
}

.hero-content {
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero {
    height: 100svh; /* Small viewport height for mobile browsers */
    min-height: 500px;
    max-height: 700px;
  }

  /* Stronger gradient on mobile for better contrast */
  .hero::before {
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  }

  .hero-overlay {
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-overlay {
    right: 40%;
    bottom: 15%;
  }
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  border-radius: 6px;
  transition: var(--transition-base);
  cursor: pointer;
  text-align: center;
  min-height: 44px; /* Accessibility: minimum tap target */
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Hero CTA Button - Glass/Transparent Effect */
.btn-hero {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
}

.btn-hero:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

/* ============================================
   ABOUT SECTION (Split Layout)
   ============================================ */
.about-section {
  padding: var(--space-3xl) 0;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-image-logo {
  width: 150px;
  height: auto;
  margin-bottom: var(--space-sm);
}

.about-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

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

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  min-height: 100%;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  line-height: 1.2;
}

/* Stats Row */
.about-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid rgba(16, 60, 125, 0.1);
}

.stat-item {
  flex: 1;
  text-align: left;
}

.stat-number {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--font-weight-semibold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    order: -1; /* Image on top on mobile */
    gap: var(--space-sm);
  }

  .about-image-logo {
    width: 120px;
  }

  .about-content {
    padding: 0;
  }

  .about-stats {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-split {
    gap: var(--space-2xl);
  }

  .about-stats {
    gap: var(--space-md);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background-color: #fafafa;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.services-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.services-header p {
  font-size: var(--font-size-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: var(--space-xl);
}

.service-card-content h3 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.service-card-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-card-content {
    padding: var(--space-lg);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-message h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.contact-message p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.contact-region {
  margin-top: var(--space-2xl);
}

.region-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-details {
  background-color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-item {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid #eee;
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.contact-link {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-link:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.badge-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.contact-cta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid #eee;
}

.contact-cta .btn {
  width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-message h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .contact-details {
    padding: var(--space-xl);
  }

  .contact-item {
    padding: var(--space-lg) 0;
  }

  .contact-link {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }
}

/* ============================================
   CARDS & CONTENT BLOCKS
   ============================================ */
.card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: 8px;
  transition: var(--transition-base);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .card {
    padding: var(--space-lg);
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================
   GALLERY (Portfolio)
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.85) 40%, rgba(122, 155, 118, 0.3) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item-overlay h4 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-xs);
}

.gallery-item-overlay p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 2rem;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #ffffff;
  color: var(--color-text);
  padding: var(--space-3xl) 0 0;
  border-top: 1px solid #e5e5e5;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid #e5e5e5;
}

/* Brand Column */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  width: 280px;
  height: auto;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* Navigation Column */
.footer-nav h4,
.footer-contact h4 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-semibold);
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  display: inline-block;
}

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

/* Contact Column */
.footer-contact a,
.footer-contact li {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Bottom Bar */
.footer-bottom {
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    width: 220px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}
