/* ===== Base ===== */
html { scroll-behavior: smooth; }

/* Anchor scroll offset for fixed header */
section[id] { scroll-margin-top: 50px; }

/* ===== Page Load Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-page {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-page-delay-1 { animation-delay: 0.1s; }
.animate-page-delay-2 { animation-delay: 0.2s; }
.animate-page-delay-3 { animation-delay: 0.3s; }
.animate-page-delay-4 { animation-delay: 0.4s; }
.animate-page-delay-5 { animation-delay: 0.5s; }

/* ===== Header: solid white on all pages ===== */
#siteHeader {
  background: #FFFFFF;
  box-shadow: 0 1px 12px rgba(16,40,32,0.08);
  color: #183A2E;
}
#siteHeader .text-forest { color: #183A2E; }
#siteHeader .text-muted { color: #6E6A5C; }
#siteHeader nav a { color: rgba(30,42,34,0.8); }
#siteHeader nav a[href="#home"]::after { background-color: #183A2E; }
#siteHeader #menuBtn { color: #183A2E; }

/* ===== Navbar Hover Animation ===== */
#siteHeader nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
#siteHeader nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #183A2E;
  transition: width 0.3s ease, left 0.3s ease;
}
#siteHeader nav a:hover::after {
  width: 100%;
  left: 0;
}
#siteHeader nav a:hover {
  color: #183A2E;
}

/* "Get in Touch" forest green button */
#siteHeader .get-in-touch {
  background: #183A2E;
  border: none;
  color: #FFFFFF;
}
#siteHeader .get-in-touch:hover {
  background: #102820;
  color: #FFFFFF;
}

/* ===== Hero CTA: white background matching nav button ===== */
.hero-cta {
  background: #FFFFFF;
  color: #183A2E;
}
.hero-cta:hover {
  background: #F0F0F0;
  color: #102820;
}

/* ===== Hero Carousel ===== */
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-left { left: 24px; }
.hero-arrow-right { right: 24px; }

/* Dots */
.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.hero-dots .dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Hide arrows/dots on small screens */
@media (max-width: 640px) {
  .hero-arrow { display: none; }
  .hero-dots { display: none; }
}

/* ===== Brand cards ===== */
.brand-card {
  border-radius: 1.75rem;
  padding: 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
  text-decoration: none;
  color: inherit;
}
.brand-card:hover { transform: translateY(-4px); }

/* ===== Timeline (Our History) ===== */
.timeline-item {
  position: relative;
  padding-left: 0.75rem;
  border-left: 1.5px solid #18332a33;
  padding-bottom: 2px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4783F;
}
.timeline-item:last-child { border-left-color: transparent; }

/* ===== Open Roles rows ===== */
.role-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #FAFAFA;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.role-row:hover {
  box-shadow: 0 6px 18px rgba(24,58,46,0.08);
  transform: translateY(-2px);
}
.role-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Social cards ===== */
.social-card {
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}
.social-card:hover { transform: translateY(-4px); }
.social-follow-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-card:hover .social-follow-center {
  opacity: 1;
  transform: scale(1);
}
.social-follow-center span {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 2rem;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
}
.social-card-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: rgba(255,255,255,0.8);
}
.social-username {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.social-tag {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.ig-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== FAQ accordion ===== */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  text-align: left;
  font-weight: 500;
  color: #1E2A22;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.faq-chevron { transition: transform .25s ease; color: #6E6A5C; }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: #183A2E; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 0.9rem;
  color: #6E6A5C;
  line-height: 1.6;
}
.faq-a.open {
  max-height: 200px;
  padding-bottom: 1.1rem;
}

/* ===== Contact form ===== */
.contact-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #fff;
}
.contact-input::placeholder { color: rgba(255,255,255,0.55); }
.contact-input:focus {
  outline: none;
  border-color: #D9A15B;
  background: rgba(255,255,255,0.1);
}

/* ===== Page form inputs (contact/product pages) ===== */
.page-input {
  width: 100%;
  background: #FAFAFA;
  border: 1px solid rgba(24,58,46,0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #1E2A22;
}
.page-input:focus {
  outline: none;
  border-color: #C4783F;
  box-shadow: 0 0 0 3px rgba(196,120,63,0.12);
}
.page-input::placeholder { color: rgba(110,106,92,0.6); }

/* ===== Social icons (footer contact) ===== */
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #fff;
  transition: background .25s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.12); }

/* ===== Decorative ring on contact panel ===== */
.ring-decor {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(217,161,91,0.35);
  pointer-events: none;
}

/* ===== Blog Carousel ===== */
.blog-track-wrapper {
  overflow: hidden;
  padding: 0 1.5rem;
}
.blog-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}
.blog-card {
  min-width: 340px;
  max-width: 340px;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.blog-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.blog-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}
.blog-brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6E6A5C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E2A22;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.blog-desc {
  font-size: 0.85rem;
  color: #6E6A5C;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #C4783F;
  transition: gap 0.3s ease;
}
.blog-card:hover .blog-link {
  gap: 0.6rem;
}
.blog-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #183A2E;
  background: #fff;
  color: #183A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.blog-arrow:hover {
  background: #183A2E;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-card {
    min-width: 280px;
    max-width: 280px;
  }
  .blog-card-img {
    height: 160px;
  }
}

/* ===== Footer social icons ===== */
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.footer-social:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ===== Mobile menu toggle ===== */
#mobileMenu.open { display: flex; }
