/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --green-primary: #329024;
  --green-primary-rgb: 50, 144, 36;
  --text-dark: #329024;
  --text-light: #fff;
  --header-height: 90px;

  /* ===== FEATURE SPACING CONTROLS ===== */
  --space-feature-0-to-1: 0.5rem;
  --space-feature: 0.5rem;
  --space-feature-between: 0.5rem;
}

/* ================= BASE ================= */
body {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.55;
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-logo {
  position: absolute;
  left: 40px;
  top: 58%;
  transform: translateY(-50%);
}

.header-logo img {
  height: 150px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

.header-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1.8rem;
}

.header-nav a {
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--green-primary);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--green-primary);
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  background: url("images/hero_bg.png") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 6rem 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #329024;
}

/* ================= SECTION BREAK ================= */
.section-break {
  height: 120px;
  background: #fff;
}

/* ================= FEATURE 0 ================= */
.feature-0 {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: var(--space-feature-0-to-1);
}

.feature-0__image {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(-50%);
  will-change: transform;
}

.feature-0__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 55, 0.55);
  z-index: 1;
}

.feature-0__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  text-align: center;
}

.feature-0__content h2 {
  color: #329024;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 900px;
  letter-spacing: 0.04em;
}

/* ================= SPLIT FEATURES (SENSORi STYLE) ================= */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  padding: var(--space-feature) 40px;
  align-items: flex-start; /* 🔑 top aligned */
}

/* gap between feature_1 and feature_2 */
.split-feature + .split-feature {
  margin-top: var(--space-feature-between);
}

/* text column */
.split-feature__text {
  padding-top: 1.5rem;
}

.split-feature__text h3 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.4rem;
}

.split-feature__text p {
  max-width: 520px;
  margin-bottom: 2.4rem;
  color: #000000;
}

/* actions */
.split-feature__actions {
  display: flex;
  gap: 1rem;
}

/* buttons */
.feature-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #329024;
  transition: background 0.25s ease;
}

.feature-btn:hover {
  background: #071f33;
}

/* image column */
.feature-image {
  height: 100%;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

/* ================= FEATURE 2 MIRROR ================= */
.split-feature.reverse {
  grid-template-columns: 1fr 1fr;
}

.split-feature.reverse .feature-image {
  grid-column: 1;
}

.split-feature.reverse .split-feature__text {
  grid-column: 2;
}

/* ================= PROJECTS ================= */
.projects-stage {
  padding: 2rem 20px;
}

.project-block {
  margin-bottom: 6rem;
}

.project-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-images img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ================= PROJECTS GRID ================= */
.projects-grid {
  padding: 6rem 40px 8rem;
  background: #fff;
}

.projects-grid-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 3.5rem;
}

.projects-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Individual card */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Hover zoom */
.project-card:hover img {
  transform: scale(1.08);
}

/* Label */
.project-card span {
  display: block;
  text-align: center;
  padding: 0.9rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
  background: #fff;
}

/* ================= FADE UP ================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CONTACT ================= */
.contact-section {
  background: #329024;
  color: #fff;
  padding: 8rem 40px;
}

.contact-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.contact-brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.75rem;
  color: #fff;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 160px;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 2.2rem;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Contact email links */
.contact-email a {
  color: #ffffff;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}


/* ================= PROJECTS PAGE HERO ================= */
.projects-hero {
  height: 42vh;
  margin-top: var(--header-height);
  background: radial-gradient(
    circle at center,
    #329024 0%,
    #082435 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* ================= PROJECT HOVER OVERLAY ================= */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 144, 36, 0.603);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
}

.project-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: background 0.25s ease;
}

.project-cta:hover {
  background: rgba(255,255,255,0.15);
}
/* ===== PROJECT OVERLAY CURSOR FIX ===== */
.project-overlay,
.project-overlay a {
  cursor: pointer;
}
.project-overlay a {
  pointer-events: auto;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
  margin-top: calc(var(--header-height) + 1.5rem);
  padding: 0 40px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

.breadcrumb a {
  text-decoration: none;
  color: #666;
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* ================= PROJECT DETAIL HERO ================= */
.project-hero {
  position: relative;
  height: 60vh;
  margin-top: 1.5rem;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.55)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-overlay h1 {
  color: #fff;
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* ================= PROJECT CONTENT ================= */
.project-content {
  max-width: 900px;
  padding: 6rem 40px;
}

.project-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.project-content p {
  max-width: 640px;
  margin-bottom: 1.4rem;
  color: #444;
}

/* ===== REMOVE WHITE BOX BEHIND PROJECT TITLE (OVERLAY ONLY) ===== */
.project-overlay .project-title {
  background: none;
  padding: 0;
  color: #ffffff;
}

/* ===== CONTACT HEADING CONTROL ===== */
.contact-company {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 2.5rem;
}

.contact-form-title {
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Optional fine control */
.contact-email,
.contact-phone,
.contact-location {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* ===== CONTACT FORM TEXT VISIBILITY FIX ===== */

/* Input & textarea text */
.contact-form input,
.contact-form textarea,
.contact-form select {
  color: #ffffff;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* Select default option text */
.contact-form select {
  color: #ffffff;
}

/* Dropdown options (when opened) */
.contact-form option {
  color: #000000;
  background: #ffffff;
}

/* ================= ABOUT PAGE ================= */

.about-hero {
  height: 42vh;
  margin-top: var(--header-height);
  background: radial-gradient(
    circle at center,
    #329024 0%,
    #082435 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Content container */
.about-content {
  max-width: 1000px;
  padding: 6rem 40px;
  margin: auto;
}

/* Individual editable sections */
.about-block {
  margin-bottom: 4rem;
}

.about-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.about-block p {
  max-width: 720px;
  color: #444;
  line-height: 1.6;
}

/* ================= CLIENTS GRID ================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem;
  align-items: center;
}

.client-logo img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.client-logo img:hover {
  opacity: 1;
}

/* ================= FOOTER ================= */

.site-footer {
  background: #329024;
  color: #ffffff;
  margin-top: 6rem;
}

/* Main footer area */
.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Brand */
.footer-brand h2 {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Section titles */
.site-footer h4 {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Links */
.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
}

/* Contact */
.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
}

.footer-socials a:hover {
  opacity: 1;
}

/* Bottom bar */
.footer-bottom {
  background: #44c331;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --green-primary: #329024;
  --green-primary-rgb: 50, 144, 36;
  --text-dark: #329024;
  --text-light: #fff;
  --header-height: 90px;

  --space-feature-0-to-1: 0.5rem;
  --space-feature: 0.5rem;
  --space-feature-between: 0.5rem;
}

/* ================= BASE ================= */
body {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.55;
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-logo {
  position: absolute;
  left: 40px;
  top: 58%;
  transform: translateY(-50%);
}

.header-logo img {
  height: 150px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

.header-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1.8rem;
}

.header-nav a {
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--green-primary);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--green-primary);
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  background: url("images/hero_bg.png") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 6rem 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #329024;
}

/* ================= CONTACT ================= */
.contact-section {
  background: #329024;
  color: #fff;
  padding: 8rem 40px;
}

.contact-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ===== CONTACT LINK COLOR FIX (EMAILS) ===== */
.contact-section a {
  color: #ffffff;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #329024;
  color: #ffffff;
  margin-top: 6rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}
/* ===== FOOTER LINK HOVER FADE ===== */
.site-footer a {
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.site-footer a:hover {
  opacity: 0.75;
}
/* ===== FOOTER ANIMATED UNDERLINE ===== */
.site-footer a {
  position: relative;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,0.85);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.site-footer a:hover::after {
  width: 100%;
}
