/* ===========================
   MLCA Global - Main Stylesheet
   =========================== */

/* Font Faces */
@font-face {
  font-family: 'SVN-Poppins';
  src: url('../fonts/SVN-Poppins Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Poppins';
  src: url('../fonts/SVN-Poppins Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Poppins';
  src: url('../fonts/SVN-Poppins SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Poppins';
  src: url('../fonts/SVN-Poppins Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Book Antiqua';
  src: url('../fonts/SVN-Book Antiqua.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #8B4513;
  --primary-dark: #6B3410;
  --secondary-color: #D4AF37;
  --accent-color: #C19A6B;
  --green-color: #3C783C;
  /* Forest Green - Found in main.dart.js (Title/Active color) */
  --text-dark: #2C1810;
  --text-light: #5A4A42;
  --bg-light: #FFF8F0;
  --bg-white: #FFFFFF;
  --border-color: #E5D5C5;

  /* Typography */
  --font-primary: 'SVN-Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'SVN-Book Antiqua', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

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

p {
  margin-bottom: var(--spacing-sm);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.header__logo-img {
  width: 40px;
  height: auto;
}

.header__nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.header__link {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.header__link:hover {
  color: var(--primary-color);
}

.header__cta {
  background: var(--green-color);
  color: var(--bg-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 4px;
  /* Matches user snippet border-radius: 4px */
  font-weight: 600;
  transition: var(--transition-fast);
}

.header__cta:hover {
  background: #2b572b;
  /* Darker shade of #3C783C */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(107, 52, 16, 0.8)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23D4AF37" width="1200" height="800"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-white);
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.2), transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.hero__cta {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.hero__cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* Content Section */
.section {
  padding: var(--spacing-xxl) var(--spacing-md);
}

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

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section__title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.section__description {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.card__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.card__text {
  color: var(--text-light);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--bg-light);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.footer__contact {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.footer__contact a {
  color: var(--secondary-color);
  font-weight: 600;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__copyright {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header__nav {
    gap: var(--spacing-sm);
  }

  .header__link {
    font-size: 0.875rem;
  }

  .hero {
    min-height: 80vh;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header__container {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .header__logo {
    font-size: 1rem;
  }

  .header__logo-img {
    width: 32px;
  }

  .header__cta {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
  }
}