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

:root{
  --header-h: 90px;
}

body {
  font-family: "Helsinki", Arial, Helvetica, sans-serif;
    background-color: var(--background-beige);
}

.accent-bars--row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.accent-bars--row .bar{
  height: 6px;            /* thinner */
  opacity: 0.85;
  border-radius: 1px;
  filter:blur(2px);

  /* slanted rectangle (same angle both ends) */
  clip-path: polygon(
    10% 0,
    100% 0,
    90% 100%,
    0 100%
  );
}

/* lengths */
.bar-orange{
  width: 80px;
  background-color: var(--orange-opaqueTwo);
}

.bar-yellow{
  width: 80px;
  background-color: var(--yellow-opaqueTwo);
}

.bar-green{
  width: 80px;
  background-color: var(--green-opaqueTwo);
}

/* mobile */
@media (max-width: 650px){
  .bar-orange{ width: 140px; }
  .bar-yellow{ width: 100px; }
  .bar-green{ width: 70px; }
}

/* fixed header that appears after section 1 */
.scroll-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2vw 0 6px;

  background-color: rgba(255, 249, 229, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;

  /* start hidden above the viewport */
  transform: translateY(-110%);
  transition: transform 220ms ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* when allowed (past hero), slide into view */
.scroll-header.is-visible{
  transform: translateY(0);
}

/* when scrolling down (and past hero), slide out */
.scroll-header.is-hidden{
  transform: translateY(-110%);
}

/* match shop logo sizing (smaller than home hero logo) */
.scroll-header .topbar__logo{
  height: 80px;
  width: auto;
  display: block;
}

.topbar__logo-link{
  justify-self: start;
}

.topbar__right-spacer{
  justify-self: end;
  width: 65px; /* just holds space so center nav stays centered */
}

.topbar__nav{
  justify-self: center;
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link{
  position: relative;
  text-decoration: none;
  font-size: 22px;
  padding: 10px 18px;          /* gives room for bubble */
  border-radius: 999px;        /* bubble shape on hover */
  transition: background-color 200ms ease, color 200ms ease;
}

.nav-link--home{ color: var(--orange-main); }
.nav-link--shop{ color: var(--yellow-main); }
.nav-link--contact{ color: var(--green-main); }

/* Hover bubble: background becomes same as text color, text turns beige */
.nav-link--home:hover{
  background-color: var(--orange-main);
  color: var(--background-beige);
}

.nav-link--shop:hover{
  background-color: var(--yellow-main);
  color: var(--background-beige);
}

.nav-link--contact:hover{
  background-color: var(--green-main);
  color: var(--background-beige);
}

/* Section 1 */
.section-hero{
  position:relative;
  overflow:hidden;
  height: 100vh;
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--background-beige)50%,
    var(--background-beigeThree)100%
  );
  overflow: hidden;
}

.section-hero::after{
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/assets/Images/leafBg3.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size:cover;

  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Logo styling */
.hero-logo {
  display: block;
  width: 500px; /* make it much bigger */
  max-width: 80%;
  margin-left:1.5vw;
  padding-top:2vh;
}

.subheading{
    padding-left: 20vw;
    margin-top:-2vh;
    font-size: 40px;
    position: absolute;
    transform: rotate(-11deg);
}

/* Keep logo/subheading above the hover areas */
.hero-content{
  position: relative;
  z-index: 2;
}

.bottom-nav{
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
}

/* Each item is exactly 1/3 width and full height */
.bottom-item{
  flex: 1;
  width: 33.3333%;
  height: 100%;

  position: relative;
  display: flex;
  align-items: center;   /* fixes text sitting at the bottom */
  justify-content: center;

  text-decoration: none;
  overflow: hidden;
  background: transparent;
}

/* Text: coloured only, no extra background */
.bottom-item .label{
  position: relative;
  z-index: 3;
  font-size: 48px;
  color: var(--base-color);
  transition: color 250ms ease;
  white-space: nowrap;
}

/* Set hover images per tab */
.bottom-item--home {
  --hover-bg: url('/assets/Images/N.png');
}

.bottom-item--shop {
  --hover-bg: url('/assets/Products/BridgeAssembledNoBg.png');
}

.bottom-item--contact {
  --hover-bg: url('/assets/Images/us.webp');
}

/* Background image appears on hover */
/* Background image layer (only on hover) */
.bottom-item::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hover-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 0;
}

.bottom-item--shop::before{
  background-size: 120%;
  background-position: center;
}

/* Colored overlay layer that expands from the center (full 1/3 width) */
.bottom-item::after{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 100%;         /* fills the full 1/3 column width */
  height: 0%;          /* collapsed initially */
  background-color: var(--color-opaque);
  opacity:0.7;
  transition: height 350ms ease;
  z-index: 1;
}

/* Text stays above everything */
.bottom-item .label{
  position: relative;
  z-index: 3;
  font-size: 48px;
  color: var(--base-color);
  transition: color 250ms ease;
  white-space: nowrap;
}

/* Hover: show image, expand overlay bar, text goes dark */
.bottom-item:hover::before{
  opacity: 1;
}

.bottom-item:hover::after{
  height: 100%;        /* expands to fill full height */
}

.bottom-item:hover .label{
  color: var(--text-dark);
}






/*New Section 2*/
.featured{
  position:relative;
  overflow:hidden;
  height: 100vh;                 /* keep exactly 100vh */
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--background-beigeThree)0%,
    var(--background-beigeTwo)50%,
    var(--background-beigeThree)100%
  );

  display: flex;
  justify-content: center;       /* horizontal centering */
  align-items: center;           /* vertical centering */
}

.featured::after{
  content: "";
  position: absolute;
  inset: 0 160px;

  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.featured-stack{
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;           /* centers image + text */
}

.frame-bars{
  position: absolute;
  top: 110px;
  bottom: 80px;
  width: 180px;              /* how far the fade can extend inward */
  pointer-events: none;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Left / right placement */
.frame-bars--left{ left: 18px; }
.frame-bars--right{ right: 18px; }

/* Fade out toward the centre (strong at edge, gone inward) */
.frame-bars--left{
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 35%, transparent 100%);
}

.frame-bars--right{
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
}

/* Individual bars */
.frame-bar{
  width: 16px;               /* thickness */
  opacity: 0.55;             /* subtle by default */
  border-radius: 2px;

   filter: blur(2px);

  /* Diagonal/angled ends */
  clip-path: polygon(
    0 0,
    100% 10%,
    100% 100%,
    0 90%
  );
}

/* Heights */
.frame-bar--tall{ height: 62vh; }
.frame-bar--mid{ height: 42vh; }
.frame-bar--short{ height: 28vh; }

/* Colors */
.frame-bar--orange{ background-color: var(--orange-main); }
.frame-bar--yellow{ background-color: var(--yellow-main); }
.frame-bar--green{ background-color: var(--green-main); }

.featured-image-frame{
  width: min(90vw, 780px);
  height: 45vh;          /* controls crop amount */
  overflow: hidden;
}

/* Image fills frame and crops */
.featured-image-single{
  width: 100%;
  height: 100%;
  object-fit: cover;           /* crops in */
  object-position: center 20%; /* move the visible area up/down */
  display: block;
}

.featured-text{
  width: min(90vw, 780px);
  margin-top: 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align:center;   /* text aligned left */
}

.featured-title{
  font-size: 56px;
  color: var(--green-main);
}

.featured-desc{
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.55;
  color: var(--text-dark);
  white-space: pre-line;
  max-width: 60ch;
}

.featured-btn{
  margin-top: 40px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: var(--green-main);
  color: var(--background-beige);
  text-decoration: none;
  font-size: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-btn:hover{
  transform: scale(1.06);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}


@media (max-width: 900px){
  .featured-inner{
    grid-template-columns: 1fr;
  }
}


/* mobile stack */
@media (max-width: 900px){
  .product-layer{
    grid-template-columns: 1fr;
    align-content: center;
  }

  .product-photo{
    max-width: 520px;
    margin: 0 auto;
  }

  .product-text{
    margin-top: 18px;
    text-align: left;
  }
}














/* Our Approach – redesigned (no background bars) */

.about{
  width: 100%;
  height: 100vh;
  height: 100dvh;

  display: grid;
  grid-template-rows: 1fr auto;

  background: linear-gradient(
    to bottom,
    var(--background-beigeThree) 0%,
    var(--background-beigeTwo) 90%,
    var(--background-beigeThree) 100%
  );
}

.about-inner{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5vw;
}

.approach-card{
  max-width: 70ch;
  text-align: center;
}

.approach-title{
  margin-bottom: 34px;
  font-size: 22px;
  color: var(--orange-main);
  letter-spacing: 0.04em;
}

.approach-line{
  font-size: 24px;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0.9;
}


.approach-line--top{
  font-size: 36px;
  opacity: 1;
  color: var(--green-opaque);
}

.approach-line-top-two{
  font-size: 42px;
  opacity: 1;
  color: var(--green-main);
}

.approach-line-middle{
  margin-top:30px;
  color: var(--text-dark);
  font-size:24px;
  width:80%;
  margin-left:10%;
}

.approach-line--bottom{
  margin-top: 30px;
  font-size: 16px;
  opacity: 0.75;
}

.story-link{
  display: inline-block; /* so transform behaves nicely */
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--text-dark-opaque);
  text-underline-offset: 0.2em;
  transition: transform 160ms ease, text-decoration-color 160ms ease;
}

.story-link:hover{
  transform: scale(1.08);
  text-decoration-color: var(--text-dark);
}

.leaf-wrap{
  position: relative;
}

.leaf-wrap::after{
  content: "";
  position: absolute;
  inset: 0 100px;

  background-image: url("/assets/Images/leafBg.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100%;

  opacity: 0.12;
  pointer-events: none;

  z-index: 2; /* ABOVE beige */
}



.site-footer{
  width: 100%;
  padding: 32px 0;
  z-index: 2;          /* above background overlays */
}

.footer-inner{
  width: 100%;
  margin: 0 auto;
  padding: 0 5vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.75;
}

/* Left / center / right alignment */
.footer-left{
  justify-self: start;
}

.footer-nav{
  display: flex;
  gap: 24px;
}

.footer-nav a{
  text-decoration: none;
  color: inherit;
}

.footer-nav a:hover{
  text-decoration: underline;
}

.footer-right{
  justify-self: end;
}

@media (max-width: 768px){
  :root{
    --header-h: 58px;
  }

  html, body{
    overflow-x: hidden;
  }

  /* Header — logo left, nav right, single row always */
  .scroll-header{
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 0 4vw;
    height: var(--header-h);
  }

  .scroll-header .topbar__logo{
    height: 40px;
    max-width: 110px;
    object-fit: contain;
  }

  .topbar__logo-link{
    display: inline-flex;
    align-items: center;
  }

  .topbar__right-spacer{
    display: none;
  }

  .topbar__nav{
    justify-self: end;
    gap: 4px;
  }

  .nav-link{
    font-size: 13px;
    padding: 5px 8px;
  }

  /* Hero — flex column so logo and nav bars stack without overlapping */
  .section-hero{
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  /* Logo section: compact header, centred, faint orange blush at base */
  .hero-content{
    flex-shrink: 0;
    height: 14vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 6vw;
    position: relative;
    z-index: 2;
    background: linear-gradient(
      to bottom,
      var(--background-beige) 50%,
      rgba(244, 112, 27, 0.10) 100%
    );
  }

  .hero-logo{
    width: 45%;
    max-width: 180px;
    min-width: 120px;
    padding-top: 0;
    margin-left: 0;
    display: block;
  }

  .subheading{
    position: relative;
    font-size: 13px;
    padding-left: 0;
    margin-top: 4px;
    transform: rotate(-6deg);
    transform-origin: center center;
  }

  /* Bottom nav: out of absolute, fills remaining 70vh, stacked as rows */
  .bottom-nav{
    position: relative;
    inset: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
  }

  .bottom-item{
    width: 100%;
    height: auto;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
  }

  /* Full-width colour fill */
  .bottom-item::after{
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: var(--base-color);
  }

  /* Faint image sits above the colour overlay */
  .bottom-item::before,
  .bottom-item:hover::before{
    display: block;
    opacity: 0.3;
    z-index: 3;
  }

  /* Shift contact image up to show heads not torsos */
  .bottom-item--contact::before{
    background-position: center top;
  }

  /* Prevent tap-hover expanding the colour bar (already full height) */
  .bottom-item:hover::after{
    height: 100%;
  }

  .bottom-item .label{
    font-size: 28px;
    padding-left: 6vw;
    color: var(--text-dark);
  }


  /* Featured section */
  .featured{
    height: auto;
    min-height: 100dvh;
    padding: 50px 5vw 40px;
  }

  .frame-bars{
    display: none;
  }

  .featured-image-frame{
    width: 100%;
    max-width: 100%;
    height: 34vh;
  }

  .featured-image-single{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .featured-text{
    width: 100%;
    margin-top: 22px;
  }

  .featured-title{
    font-size: 32px;
  }

  .featured-desc{
    font-size: 17px;
    max-width: 100%;
  }

  .featured-btn{
    margin-top: 24px;
    font-size: 16px;
  }

  /* About section */
  .about{
    height: auto;
    min-height: 100dvh;
    padding: 60px 0 40px;
  }

  .approach-card{
    max-width: 90%;
  }

  .approach-title{
    font-size: 17px;
  }

  .approach-line{
    font-size: 16px;
  }

  .approach-line--top{
    font-size: 24px;
  }

  .approach-line-top-two{
    font-size: 32px;
  }

  .approach-line-middle{
    font-size: 17px;
    width: 88%;
    margin-left: 6%;
    margin-top: 22px;
  }

  .approach-line--bottom{
    font-size: 14px;
    margin-top: 22px;
  }

  /* Footer */
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .footer-left,
  .footer-right{
    justify-self: center;
  }

  .footer-nav{
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .bar-orange{ width: 120px; }
  .bar-yellow{ width: 90px; }
  .bar-green{ width: 60px; }

  /* Leaf background — remove side insets so it fills the full mobile width */
  .leaf-wrap::after{
    inset: 0;
    background-size: 240%;
    background-position: left bottom;
  }
}


