@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;500;600&display=swap');

:root {
  /* Colors */
  --color-background: #FDF9F1;
  --color-surface: #ffffff;
  --color-text: #202020;
  --color-text-light: #404849;
  --color-primary: #3E6B71;
  --color-primary-dark: #245359;
  --color-secondary: #8A9A80;
  --color-secondary-dark: #54634c;
  --color-tertiary: #D8D6C0;

  /* Typography */
  --font-heading: 'Newsreader', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-unit: 8px;
  --container-max: 1140px;
  --gutter: 24px;
  --margin-desktop: 48px;
  --margin-mobile: 24px;
  --section-gap: 56px;
  --section-gap-mobile: 36px;

  /* Spacing Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-8: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-ambient: 0 12px 32px rgba(62, 107, 113, 0.08);
  --shadow-hover: 0 16px 40px rgba(62, 107, 113, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
}

h3 {
  font-size: 28px;
  line-height: 1.3;
}

h4 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-gap) 0;
}

.section-compact {
  padding: var(--space-6) 0;
}

.section-surface {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-tertiary);
  border-bottom: 1px solid var(--color-tertiary);
}

.banner-header {
  position: relative;
  padding-top: 200px;
  padding-bottom: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-dark);
  margin-bottom: 40px;
}

.banner-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(36, 83, 89, 0.8), rgba(84, 99, 76, 0.6), rgba(36, 83, 89, 0.8));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

.banner-header .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-header h1 {
  color: #ffffff;
  margin: 0;
  font-size: 56px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portrait-card {
  padding: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-tertiary);
  border-radius: 24px;
  box-shadow: var(--shadow-ambient);
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
}

.portrait-card img {
  border-radius: 16px;
  width: 100%;
  display: block;
  object-fit: cover;
}

.image-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 249, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 214, 192, 0.5);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.nav-brand img,
footer .footer-grid img,
.logos-grid img {
  border-radius: 0;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  font-size: 16px;
  position: relative;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-secondary-dark), var(--color-primary));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(62, 107, 113, 0.2);
}

.btn-primary:hover,
a.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(62, 107, 113, 0.25);
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  padding: 120px 0 60px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 83, 89, 0.85), rgba(84, 99, 76, 0.65), rgba(36, 83, 89, 0.85));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  z-index: 2;
}

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

.hero-content {
  width: 100%;
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(253, 249, 241, 0.9);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-btn-secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary-dark);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -40px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.glow-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(138, 154, 128, 0.15) 0%, rgba(253, 249, 241, 0) 70%);
  filter: blur(60px);
  z-index: -1;
  animation: floatGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(216, 214, 192, 0.4);
}

.card-sage {
  background: rgba(138, 154, 128, 0.05);
}

/* Testimonial Grid (Wall of Love) */
.testimonials {
  background-color: var(--color-surface);
  position: relative;
}

.testimonial-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 2rem 4rem 2rem;
  /* Generous padding to prevent shadow and edge clipping */
  margin: -2rem -2rem -2rem -2rem;
  /* Offset padding so the layout doesn't break */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.testimonial-carousel>* {
  flex: 0 0 420px;
  max-width: 85vw;
  scroll-snap-align: center;
}

.testimonial-controls {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-icon {
  padding: 0.5rem 1rem;
}

.testimonial-card {
  background-color: var(--color-background);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(62, 107, 113, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.testimonial-quote-icon {
  font-family: var(--font-heading);
  font-size: 100px;
  line-height: 1;
  color: var(--color-primary-dark);
  opacity: 0.05;
  position: absolute;
  top: -10px;
  left: 20px;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(62, 107, 113, 0.1);
  padding-top: 1.5rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 15px;
  margin-bottom: 2px;
}

.testimonial-title {
  font-size: 10.5px;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Footer */
footer {
  background-color: var(--color-primary-dark);
  color: var(--color-background);
  padding: 80px 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

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

footer h3 {
  font-size: 24px;
  color: var(--color-background);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.footer-heading {
  color: rgba(253, 249, 241, 0.6);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-link {
  color: var(--color-background) !important;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 249, 241, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero {
    text-align: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .banner-header {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .banner-header h1 {
    font-size: 40px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  section {
    padding: var(--section-gap-mobile) 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    /* Keep flex, just hide visually */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    padding: 3rem;
    gap: 3rem;
    box-shadow: var(--shadow-ambient);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-top: 1px solid rgba(216, 214, 192, 0.5);
  }

  .nav-links a {
    font-size: 20px;
  }


  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .card {
    padding: 2rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Spacing Utilities */
.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.ml-1 {
  margin-left: var(--space-1);
}

.ml-2 {
  margin-left: var(--space-2);
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

/* Accordion */
.accordion {
  border-bottom: 1px solid var(--color-tertiary);
}

.accordion-item {
  border-top: 1px solid var(--color-tertiary);
}

.accordion-header {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-bottom: 0;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding-bottom: 1.5rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}

.logos-grid img {
  max-height: 100px;
  max-width: 250px;
  object-fit: contain;
}

/* Scroll Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}