/* ==============================
   1. RESET AND GLOBAL STYLES
============================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green: #123d32;
  --green-dark: #0b2b24;
  --lime: #c9f36b;
  --white: #ffffff;
  --black: #17211d;
  --gray: #6d7771;
  --light: #f5f6f2;
  --border: #e1e5df;
  --dot: #ff0000;
  --header-height: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

body,
button,
input {
  font-family: 'DM Sans', sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

svg {
  display: block;
}

::selection {
  color: var(--green-dark);
  background: var(--lime);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 1000;

  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;

  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.header-inner {
  width: min(1320px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.brandlogo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand span {
  color: var(--lime);
}

/* Navigation layout */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;

  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;

  transition: opacity 0.25s ease;
}

.nav-link::after {
  position: absolute;
  content: '';
  left: 13px;
  right: 13px;
  bottom: 7px;

  height: 2px;
  background: var(--lime);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Search icon button */
.search-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;

  transition: background-color 0.25s ease;
}

.search-toggle:hover {
  background: rgb(255 255 255 / 12%);
}

.search-toggle svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Login capsule */

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  min-height: 44px;
  padding: 0 21px;

  border: 1px solid var(--lime);
  border-radius: 50px;

  background: var(--lime);
  color: var(--green-dark);

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.login-button:hover {
  background: transparent;
  color: var(--lime);
  transform: translateY(-2px);
}

/* Header after scrolling */

.site-header.scrolled {
  color: var(--black);
  background: rgb(255 255 255 / 97%);
  border-bottom-color: var(--border);
  box-shadow: 0 5px 25px rgb(0 0 0 / 5%);
}

.site-header.scrolled .brand-dot {
  color: var(--green);
}

.site-header.scrolled .nav-link::after {
  background: var(--green);
}

.site-header.scrolled .search-toggle:hover {
  background: #edf0eb;
}

.site-header.scrolled .login-button {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.site-header.scrolled .login-button:hover {
  background: transparent;
  color: var(--green);
}

/* Search panel */

.search-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;

  width: min(360px, calc(100vw - 40px));
  padding: 18px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgb(0 0 0 / 14%);
}

.search-panel[hidden] {
  display: none;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;

  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  font-size: 13px;
}

.search-panel input:focus {
  border-color: var(--green);
}

.search-panel button {
  padding: 0 16px;
  border: 0;
  border-radius: 6px;

  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.search-message {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--gray);
}

/* Hamburger button */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;
  padding: 11px;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.menu-toggle span {
  width: 22px;
  height: 2px;

  background: currentColor;
  border-radius: 3px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}


/* ==============================
   3. HERO SECTION
============================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 100svh;
  padding: calc(var(--header-height) + 80px) 0 150px;

  display: flex;
  align-items: center;

  color: var(--white);
  background:
    radial-gradient(ellipse at 82% 38%,
      rgb(70 121 87 / 32%),
      transparent 40%),
    linear-gradient(125deg, var(--green-dark), var(--green));
}

.hero::before {
  position: absolute;
  content: '';
  inset: 0;
  z-index: -1;

  background-image: radial-gradient(rgb(255 255 255 / 12%) 0.7px,
      transparent 0.7px);

  background-size: 23px 23px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 100px;
}

.hero-left {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 28px;

  color: #d6e3db;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px rgb(201 243 107 / 50%);
}

.hero h1 {
  max-width: 750px;

  font-family: 'Manrope', sans-serif;
  font-size: clamp(46px, 6.3vw, 88px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -5px;
}

.hero h1 span {
  display: block;
  color: var(--lime);
}

.hero-description {
  max-width: 500px;
  margin-top: 27px;

  color: #d1ddd6;
  font-size: 16px;
  line-height: 1.9;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  min-height: 54px;
  margin-top: 35px;
  padding: 0 24px;

  border: 1px solid var(--lime);
  border-radius: 50px;

  background: var(--lime);
  color: var(--green-dark);

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.primary-button span {
  font-size: 18px;
}

.primary-button:hover {
  background: transparent;
  color: var(--lime);
  transform: translateY(-3px);
}

/* Right-hand hero content */

.hero-right {
  position: relative;
  min-height: 310px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-left: 36px;
  border-left: 1px solid rgb(255 255 255 / 25%);
}

.hero-side-text {
  max-width: 330px;

  color: #e0e8e2;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.65;
}

.hero-decoration {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 35px;
}

.hero-caption {
  margin-top: 25px;

  color: #b8c9bf;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

/* ==============================
   4. SCROLL TO EXPLORE
============================== */

.scroll-explore {
  position: absolute;
  left: 50%;
  bottom: 27px;
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;

  color: var(--white);
  text-decoration: none;

  transform: translateX(-50%);
}

.scroll-text {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 210px;
  height: 46px;
  padding: 0 15px;

  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 0;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  white-space: nowrap;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.scroll-explore:hover .scroll-text {
  background: var(--white);
  color: var(--green-dark);
}

.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  animation: arrowBounce 1.4s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 22px;
  height: 22px;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}


/* ==============================
   5. GENERAL CONTENT SECTIONS
============================== */

.content-section {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 115px 0;
}

.section-heading {
  max-width: 750px;
}

.section-heading h2{
  font-family: 'Manrope', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -2.5px;
}

.section-heading h2 span{
  color: var(--green);
}

/* Services */

.services-section {
  width: 100%;
  padding: 110px max(40px, calc((100% - 1200px) / 2));
  background: var(--light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 55px;
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 30px;

  background: var(--white);
  border: 1px solid var(--border);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 6%);
}

.card-number {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.service-card h3 {
  margin-top: 35px;

  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.service-card p {
  max-width: 290px;
  margin-top: 12px;

  color: var(--gray);
  font-size: 13px;
  line-height: 1.9;
}

.card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;

  color: var(--green);
  font-size: 20px;
}


/* Login placeholder */

.login-section {
  padding: 75px 25px;
  text-align: center;
  background: var(--light);
}

.login-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
}

.login-section p {
  max-width: 500px;
  margin: 12px auto 0;
  color: var(--gray);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 32px max(40px, calc((100% - 1200px) / 2));
  background: var(--green-dark);
  color: var(--white);
}

.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  color: #c2d0c7;
  font-size: 11px;
}


/* ==============================
   7. TABLET RESPONSIVENESS
============================== */

@media (max-width: 1050px) {

  .header-inner,
  .hero-content,
  .content-section {
    width: calc(100% - 48px);
  }

  .navbar {
    gap: 12px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  .login-button {
    padding: 0 16px;
  }

  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
  }

  .hero h1 {
    letter-spacing: -3px;
  }

  .about-section {
    gap: 45px;
  }

  .services-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }
}


/* ==============================
   8. MOBILE RESPONSIVENESS
============================== */

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    width: calc(100% - 36px);
    gap: 12px;
  }

  /* Mobile navigation panel */

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .navbar {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;

    max-height: calc(100svh - var(--header-height));
    padding: 0 22px 22px;

    overflow-y: auto;

    color: var(--black);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 25px rgb(0 0 0 / 8%);

    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .navbar.menu-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    width: 100%;
    min-height: 50px;
    padding: 0 5px;
    justify-content: flex-start;

    font-size: 14px;
  }

  .nav-link::after {
    left: 5px;
    right: auto;
    bottom: 7px;
    width: 35px;
  }

  .nav-actions {
    justify-content: space-between;
    gap: 15px;
  }

  .search-toggle {
    background: var(--light);
  }

  .login-button {
    flex: 1;
  }

  .search-panel {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .site-header:not(.scrolled) .navbar {
    color: var(--black);
  }

  .site-header:not(.scrolled) .nav-link::after {
    background: var(--green);
  }

  .site-header:not(.scrolled) .login-button {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
  }

  .site-header:not(.scrolled) .login-button:hover {
    background: transparent;
    color: var(--green);
  }

  /* Mobile hero */

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 65px) 0 170px;
  }

  .hero-content {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 70px);
    letter-spacing: -2.5px;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
  }

  .primary-button {
    min-height: 49px;
    margin-top: 25px;
  }

  .hero-right {
    min-height: auto;
    padding: 0 0 0 20px;
    border-left: 1px solid rgb(255 255 255 / 25%);
  }

  .hero-side-text {
    max-width: 400px;
    font-size: 19px;
  }

  .hero-decoration {
    margin-top: 18px;
  }

  .hero-caption {
    margin-top: 14px;
  }

  .scroll-explore {
    bottom: 20px;
    gap: 9px;
  }

  .scroll-text {
    width: 190px;
    height: 40px;
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  /* Mobile content sections */

  .content-section {
    width: calc(100% - 40px);
    padding: 75px 0;
  }

  .section-heading h2{
    font-size: clamp(34px, 8vw, 48px);
    letter-spacing: -1.5px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-body p {
    font-size: 14px;
  }

  .services-section {
    width: 100%;
    padding: 75px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 35px;
  }

  .service-card {
    min-height: 230px;
    padding: 25px;
  }

  .service-card h3 {
    margin-top: 25px;
  }

  .login-section {
    padding: 60px 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 30px 20px;
    text-align: center;
  }
}


/* ==============================
   9. SMALL MOBILE SCREENS
============================== */

@media (max-width: 380px) {
  .brand-name {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 41px;
  }

  .scroll-text {
    width: 180px;
    font-size: 8px;
    letter-spacing: 2px;
  }

  .search-panel {
    padding: 12px;
  }
}


/* ==============================
   10. ACCESSIBILITY
============================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}