/* ----------------------------------------------------------
   COLOR SYSTEM
---------------------------------------------------------- */
:root{
    --green-deep: #006F33;
    --green-medium: #5FBF85;
    --clay: #A97B50;
    --sand-light: #E9DCC4;

    --blue-soft: #D9E8F5;
    --blue-mid: #81B4E2;
    --blue-deep: #2A7CC7;


    --green-dark: #00863D; 
    --green-mild: #b2d8b2; 
    --green-light: #36B366; 
    --green-lighter: #e6ffe6; 
    --honey-brown: #C89A5B; 
    --text-dark: #1B1B1B; 
    --text-muted: #7C7A74; 
    --beige-bg: #F3EDE3; 
    --white: #ffffff;

    --radius: 12px;
    --max-width: 1000px;


}




/* ----------------------------------------------------------
   RESET / GLOBAL
---------------------------------------------------------- */
* { margin:0; padding:0; box-sizing:border-box; }
html,body {
    height:100%; 
    overflow-x: visible;   /* make sure horizontal overflow is visible */
}
body {
    background: var(--beige-bg);
    color: var(--text-dark);
    font-family:
        "Inter",
        Arial,
        sans-serif;
    line-height:1.5;
}




/* ----------------------------------------------------------
   Container for main content
---------------------------------------------------------- */
h1, h2 {
    letter-spacing: 0.07em;
    padding: 0.5em auto;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4 {
  font-size: 1.5rem;   /* ~24px */
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;  /* ~20px */
  line-height: 1.5;
}

h6 {
  font-size: 1rem;     /* ~16px (base size) */
  line-height: 1.6;
}

/* ----------------------------------------------------------
   HERO (index)
---------------------------------------------------------- */
.hero {
    height: 100vh;
    width: 100%;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url("../images/honeycomb-bg.jpg") center/cover no-repeat;
    color: var(--beige-bg);
    display:grid;
    place-items:center;
}

.hero-grid {
    display:grid;
    width:33vw;
    grid-template-columns:1fr;
    text-align:center;
}
.hero-text img {
    height:120px;
}
.hero-text h1 {
    font-weight:700;
    margin-bottom:1em;
    text-shadow:0 0 2rem black;
}
.hero-text p {
    font-size:1.1rem;
    opacity:.95;
    text-shadow:0 0 1.2rem black;
}

/* Buttons */
.button-row {
    display:grid;
    margin-top: 2em;
    grid-template-columns: repeat(auto-fit, minmax(160px, auto));
    gap:20px;
    justify-content:center;
}
.btn {
    letter-spacing: 0.07em;
    padding:14px 28px;
    border-radius:var(--radius);
    font-weight:600;
    text-decoration:none;
    display:inline-block;
}
.btn.primary {
    background:var(--green-dark);
    color:var(--white);
}
.btn.primary:hover {
    background:var(--green-light);
    color:var(--white);
}
.btn.secondary {
    background:var(--white);
    border:2px solid var(--green-dark);
    color:var(--green-dark);
}
.btn.secondary:hover {
    background:var(--green-light);
    color:var(--white);
}


/* ----------------------------------------------------------
   NAVIGATION (desktop + general)
   Layout: grid with 3 columns: [logo] [center menu] [hamburger]
---------------------------------------------------------- */
.nav-div {
    height: 100px; /* <--- This is often the problem! */
    overflow: auto; /* <--- This could also be the problem! */
}
.main-nav {
    width:100%;
    background: var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        padding .25s ease;
}

/* compact/sticky style is added/removed by JS */
.main-nav.sticky {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.06), rgba(0,0,0,0.06)),
        var(--green-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Grid layout to place logo left, menu center, hamburger right */
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 0px;
    position: relative;
}

/* NAV LOGO IMAGE */
.nav-logo-img {
    height: 48px;        /* recommended size */
    width: auto;         /* maintain aspect ratio */
    object-fit: contain; /* prevents distortion */
}

/* Compact Sticky Mode */
.main-nav.compact .nav-logo-img {
    height: 38px;        /* slightly smaller when sticky */
}

/* Center menu */
.nav-links {
    list-style:none;
    display:flex;
    justify-content:center;
    gap: 32px;
}

/* link style + underline animation */
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
}

/* underline effect: hidden by default, expanded on hover/active */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 100%;
    background: var(--white);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .28s cubic-bezier(.2,.9,.3,1);
}

/* show on hover */
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* active page underline */
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Hide the checkbox input visually but keep it available for the label to control */
.nav-toggle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hamburger (right) — hidden on desktop, visible on mobile via mobile CSS */
.hamburger {
    display: none;
}



/* ----------------------------------------------------------
   COMMON
---------------------------------------------------------- */

.header {
    width:100%;
    padding:3rem 1rem;
    text-align:center;
    color:var(--white);
}
.section2 {
    background: var(--honey-brown);
}
.section3 {
    background: var(--text-muted);
}
.beige{
    color: var(--beige-bg);
    text-shadow:0 0 2rem black;
}
section {
    width: 100vw;
    padding-top: 6em;
    padding-bottom: 6em;
}
.group {
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
}
.item:hover {
    transform: scale(150%);
    transition: transform 300ms ease;
    z-index: 100;
}
.group h2, .group h3{
    padding-bottom: 1em;
}

/* ----------------------------------------------------------
   ABOUT HEADER
---------------------------------------------------------- */

.about-header {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url("../images/weave.jpg") center/cover no-repeat;
}

.about-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    list-style:none;
    padding-top:2em;
}

.about-item {
    display:grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    text-align:center;
    padding: 3em;
}
.about-box {
    max-width: var(--max-width);
    margin:0 auto 12px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:8px;
    background: var(--white);
}

.about-box img {
    max-width:100%;
    max-height:100%;
    object-fit: contain;
}




/* ----------------------------------------------------------
   PRODUCTS HEADER
---------------------------------------------------------- */

.products-header {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url("../images/productHeader.jpg") center/cover no-repeat;
}

/* ----------------------------------------------------------
   PRODUCT GRID
---------------------------------------------------------- */
.product-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style:none;
    padding-top:2em;
}

/* Product card */
.product-item {
    display:grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    /* padding: 15px; */
    text-align:center;
    padding: 1em;
}

/* fixed image box */
.image-box {
    width:300px;
    height:300px;
    margin:0 auto 12px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:8px;
    background: var(--white);
}

.image-box img {
    max-width:100%;
    max-height:100%;
    object-fit: contain;
}


/* Business Partness Card */
.partner-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    list-style:none;
    padding-top:2em;
}

/* Product card */
.partner-item {
    display:grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 0;
    /* background: var(--white); */
    /* border: 1px solid #ddd; */
    /* border-radius: var(--radius); */
    /* padding: 15px; */
    text-align:center;
}

/* fixed image box */
.partner-box {
    width:150px;
    height:150px;
    margin:0 auto 12px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:8px;
    /* background: var(--white); */
}

.partner-box img {
    max-width:100%;
    max-height:100%;
    object-fit: contain;
}

/* small helpers */
ul { list-style: none; }
a { cursor: pointer; }


/* ----------------------------------------------------------
   CONTACT HEADER
---------------------------------------------------------- */

.contact-header {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url("../images/productHeader.jpg") center/cover no-repeat;
}

/* ----------------------------------------------------------
   CONTACT GRID
---------------------------------------------------------- */


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.error {
    color: red;
    font-size: 14px;
}
.thank-you {
    padding:20px;
    background: var(--green-lighter);
    border:1px solid  var(--green-mild);
    border-radius:8px;
}

.contact-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    list-style:none;
    padding-top:2em;
}

.contact-item {
    display:grid;
    grid-row: span 2;
    gap: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    text-align:left;
    padding: 3em;
}


/* .map-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    list-style:none;
    padding-top:2em;
}

.map-item {
    display:grid;
    grid-row: span 2;
    gap: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    text-align:left;
    padding: 3em;
	color: var(--text-dark);
}

.map-image {
    display:grid;
    grid-row: span 2;
    gap: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    text-align:left;
    padding: 3em;
	color: var(--text-dark);
}

.map-h2 {
	color: var(--text-dark);
}

.map-box {
    max-width: var(--max-width);
    margin:0 auto 12px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:8px;
    background: var(--white);
}

.map-box img {
    max-width:100%;
    max-height:100%;
    object-fit: contain;
} */


.map-item {
     padding: 3em;   
    text-align: left;
}.map-item2 {
    text-align: right;
}
.map-item p {
    padding-bottom: 2em;
}



/* ----------------------------------------------------------
   ORGANIZATIONAL CHART
---------------------------------------------------------- */

/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-1: #1A2A40;
  --level-2: #2E86AB;
  --level-3: #406F86;
  --level-4: #5A9943;
  --level-5: #B17343;;
  --level-6: #E9DCC4 ;
  --black: black;

  --dark-charcoal: #1A1A1A;
}

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

ol {
  list-style: none;
}

.rectangle {
  position: relative;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 1em;
}

.rectangle:hover {
  transform: scale(1.5);
  transition: transform 300ms ease;
  z-index: 100;
}

.rectangle > h3 {
  padding: 0;
}


/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-1);
  color: var(--white);
}

.level-1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-1:hover::before {
  width: 0px;
}

/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-2);
  color: var(--white);
}

.level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2:hover::before {
  width: 0px;
}

.level-2-wrapper li {
  position: relative;
}

.level-2-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3 {
  width: 100%;
  margin: 0 auto 40px;
  background: var(--level-3);
  color: var(--white);
}

.level-3::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-3:hover::before {
  width: 0px;
}

.level-3-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-column-gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.level-3-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(75%/2 - 8px);
  width: calc(50% + 10px);
  height: 2px;
  background: var(--black);
}

.level-3-wrapper li {
  position: relative;
}

.level-3-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

/* LEVEL-4 STYLES LEFT
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.level-4-wrapper-left {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.level-4 {
  width: 100%;
  margin: 0 auto 40px;
  background: var(--level-4);
  color: var(--dark-charcoal);
}

.level-4::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-4:hover::before {
  width: 0px;
}

.level-4-wrapper-left::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(100% / 6 - 8px);
  width: calc(100% / 6 * 4 + 16px);
  height: 2px;
  background: var(--black);
}

.level-4-wrapper li {
  position: relative;
}

.level-4-wrapper-left > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}


/* LEVEL-4 STYLES RIGHT
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

/* LEVEL-5 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-5 {
  width: 100%;
  margin: 0 auto 40px;
  background: var(--level-5);
  color: var(--white);
}

.level-5::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-5:hover::before {
  width: 0px;
}

.level-5-wrapper li {
  position: relative;
}

.level-5-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: var(--black);
}


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 700px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-1,
 .level-2,
  .level-3 {
    width: 100%;
  }

  .level-1 {
    margin-bottom: 20px;
  }

  .level-1::before,
 .level-2::before,
  .level-3-wrapper > li::before {
    display: none;
  }
  
  .level-3-wrapper,
  .level-3-wrapper::after,
  .level-3::after {
    display: block;
  }

  .level-3-wrapper {
    width: 90%;
    margin-left: 10%;
  }

  .level-3-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
        top: -40px;
  }

  .level-3-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }


.level-3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}
}