:root {
  --color-background-light: #FCF9E2;
  --color-background-medium: #DBDDDC;
  --color-background-dark: #0F181F;
  --color-background-accent: #BBC0A8;
  --color-text-dark: #0F181F;
  --color-text-light: #FCF9E2;
  --color-primary: #3D9BE9;
  --font-heading: 'Fahkwang', sans-serif;
  --font-body: 'Fahkwang', sans-serif;
  --container-width: 1200px;
  --section-padding: 80px 0;
  /* Hero overlay control (RGB + alpha) */
  --hero-overlay-rgb: 15, 24, 31;
  /* matches --color-text-dark */
  --hero-overlay: 0.50;
  /* 0 (no darkening) → 1 (fully dark) */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1100;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 1rem 0;
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 1rem 0;
}

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

/* Header & Navigation */
header {
  background-color: var(--color-background-light);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--color-primary);
  text-decoration: none;
}

.menu-toggle {
  font-size: 24px;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--color-background-dark);
  display: flex;
  flex-direction: column;
  padding: 60px 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1002;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav a {
  display: block;
  color: var(--color-text-light);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section {
  scroll-margin-top: 100px;
}

.section-title {
  font-size: clamp(28px, 5vw, 64px);
  text-align: center;
  margin-bottom: 10px;
}

.section-divider {
  width: 30px;
  height: 3px;
  background-color: var(--color-text-dark);
  margin: 0 auto 50px auto;
}

.button {
  background-color: var(--color-text-dark);
  color: var(--color-text-light);
  padding: 12px 24px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--color-text-dark);
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: transparent;
  color: var(--color-text-dark);
}

/* Hero Section */
.hero {
  /* Background image now set via config-driven inline style; keep fallback */
  background-color: #333;
  color: var(--color-text-light);
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--hero-overlay-rgb), var(--hero-overlay));
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 90px);
  margin: 0;
}

.hero p {
  font-family: var(--font-heading);
  font-size: 20px;
  max-width: 600px;
}

/* About */
.about .container {
  max-width: 800px;
}

.about h2 {
  text-align: left;
}

.about h3 {
  font-size: 18px;
  margin-bottom: 30px;
}

.about .about-content {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.about .about-content div {
  flex: 1;
  font-size: 16px;
}

.about .button-container {
  text-align: center;
}

/* Team */
.team .team-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.team .team-member {
  width: 360px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.team .team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team .team-member img {
  width: 100%;
  height: auto;
  display: block;
}

.team .team-member img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-member-content {
  padding: 20px;
  background-color: var(--color-background-light);
}

.team .team-member .role {
  font-size: 16px;
  margin-bottom: 5px;
}

.team .team-member .name {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

.team .team-member .bio {
  font-size: 16px;
  margin-bottom: 20px;
}

.team .team-member .social-icon {
  width: 25px;
  height: 25px;
}

/* Products */
.products {
  background-color: var(--color-background-medium);
}

.products h2 {
  text-align: left;
}

/* Offerings intro — stacked for readability */
.products .offerings {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 24, 31, 0.25);
}

.products .offerings h3 {
  font-size: 22px;
  margin: 0 0 6px 0;
}

.products .offerings p {
  margin: 0;
  font-size: 16px;
}

/* Top-to-bottom features */
.products .features {
  display: block;
}

.products .feature h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 6px 0;
}

.products .feature p {
  font-size: 16px;
  margin: 8px 0 0 0;
}

.products .feature+.feature {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 24, 31, 0.18);
}

/* Events */
.events {
  background-color: var(--color-background-accent);
}

.events .event-card {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--color-background-accent);
  border: 1px solid var(--color-text-dark);
}

.events .event-info {
  padding: 40px;
  flex: 1;
}

.events .event-info h3 {
  font-size: 36px;
  margin-top: 0;
}

.events .event-info p {
  font-size: 16px;
}

.events .event-image {
  flex: 1;
}

.events .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Newsletter section removed */

/* Contact */
.contact {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}

.contact .container {
  display: flex;
  gap: 40px;
}

.contact .contact-info,
.contact .contact-form {
  flex: 1;
  padding: 40px 0;
}

.contact h2 {
  font-size: 30px;
}

.contact .contact-info p {
  font-size: 16px;
  line-height: 1.8;
}

.contact .social-links {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.contact .social-links img {
  width: 25px;
  filter: invert(1);
}

.contact .contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .form-row {
  display: flex;
  gap: 20px;
}

.contact .form-row input {
  flex: 1;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: var(--color-background-light);
  border: 1px solid var(--color-background-light);
  box-sizing: border-box;
}

.contact input,
.contact textarea {
  border-color: #9aa3ab;
}

.contact ::placeholder {
  color: #667078;
  opacity: 1;
}

/* placeholder styles for removed newsletter cleaned */
.contact textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--color-background-accent);
  padding: 60px 0;
}

footer .container {
  border-top: 1px solid var(--color-text-dark);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo {
  font-size: 30px;
  color: var(--color-text-dark);
}

footer .footer-contact {
  text-align: right;
  font-size: 16px;
  line-height: 1.6;
}

/* Button variant on dark contact background */
.contact .button {
  background-color: var(--color-text-light);
  color: var(--color-text-dark);
  border-color: var(--color-text-light);
}

.contact .button:hover {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

/* Decorative image strip */
.image-strip {
  height: clamp(380px, 70vh, 760px);
  background-image: url('../../media/WhatsApp%20Image%202025-03-11%20at%2019.42.15.jpeg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  /* Fade edges into page background for smoother blend */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 36px 0;
  }

  .logo {
    font-size: 28px;
  }

  .menu-toggle {
    font-size: 20px;
  }

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

  .section-title {
    font-size: clamp(22px, 6vw, 40px);
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 54px);
  }

  .hero p {
    font-size: 16px;
  }

  .button {
    padding: 10px 14px;
    font-size: 15px;
  }

  .about .about-content,
  .products .offerings,
  .events .event-card,
  .contact .container,
  footer .container {
    flex-direction: column;
  }

  .about h3 {
    font-size: 16px;
  }

  .about .about-content {
    gap: 16px;
  }

  .products .offerings h3,
  .products .offerings p {
    flex-basis: auto;
    text-align: left;
  }

  /* Products stack naturally on mobile; no grid overrides needed */
  .products .feature h3 {
    font-size: 20px;
  }

  .products .feature p {
    font-size: 15px;
  }

  .team .team-member {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .team .team-member .role {
    font-size: 14px;
  }

  .team .team-member .name {
    font-size: 18px;
  }

  .team .team-member .bio {
    font-size: 15px;
  }

  .events .event-info {
    padding: 20px;
  }

  .events .event-info h3 {
    font-size: 24px;
  }

  .events .event-info p {
    font-size: 15px;
  }

  .contact h2 {
    font-size: 24px;
  }

  .contact .contact-info p {
    font-size: 15px;
  }

  /* newsletter removed: no mobile overrides */
  .contact .form-row {
    flex-direction: column;
  }

  footer .container {
    text-align: center;
  }

  footer {
    padding: 32px 0;
  }

  footer .logo {
    font-size: 24px;
  }

  footer .footer-contact {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
  }

  .image-strip {
    height: 360px;
  }

  .events .event-image img {
    height: auto;
  }
}

/* No desktop grid for products; keep vertical flow */

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    transform: none;
  }
}

/* Focus Visibility */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.button:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.35);
}

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

/* Minimum touch target sizing */
.menu-toggle,
.main-nav a,
.button {
  min-height: 44px;
}

/* Readable line length utility */
.prose {
  max-width: 65ch;
}
