/* =========================================================
   RESET & ROOT
   ========================================================= */
:root {
  --deals-height: 40px;
  --header-height: 100px;
  --header-offset: calc(var(--deals-height) + var(--header-height));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   DEALS BAR
   ========================================================= */
.deals-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--deals-height);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #93A8AC;
  color: #000;
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  z-index: 101;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.deals-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: fixed;
  top: var(--deals-height); /* below deals bar */
  left: 0;
  width: 100%;
  z-index: 100;
  isolation: isolate;
  background-color: transparent;
  border-bottom: .5px solid #fff; /* white bottom border */
  transition:
    top 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

/* Header slides up ONLY on scroll */
header.scrolled {
  top: 0;
}

/* Gradient overlay (default hero state only) */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0)
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

/* Scroll OR hover = flat dark header */
header.scrolled,
header:hover {
  background-color: #333;
  border-bottom-color: #333;
}

header.scrolled::before,
header:hover::before {
  opacity: 0;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.nav-logo img {
  height: 25px;
  display: block;
}

.site-nav {
  display: flex;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 0 15px;
  display: flex;
  align-items: center;
  height: 80px;
  transition: transform 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease, left 0.3s ease;
}

.site-nav a:hover {
  transform: scale(1.2);
}

.site-nav a:hover::after {
  width: 60%;
  left: 20%;
}

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: calc(100vh + var(--header-offset));
  margin-top: calc(-1 * var(--header-offset));
  padding-top: calc(var(--header-offset) + 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ✅ vertical center */
  align-items: center;       /* ✅ horizontal center */

  overflow: hidden;
  z-index: 0;
  gap: 3rem;
}


.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.hero-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 12vw, 7rem); /* font scales between 4.5rem and 9.5rem depending on viewport width */
  font-weight: 500;                       /* makes it bold/heavy */
  letter-spacing: 0.09em;                 /* spacing between letters */
  color: #fff;                            /* text color */
}

.hero-card {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 12vw, 4rem); /* font scales between 4.5rem and 9.5rem depending on viewport width */
  font-weight: 500;                       /* makes it bold/heavy */
  letter-spacing: 0.09em;                 /* spacing between letters */
  color: #000;                            /* text color */
}


.hero-sub {
  font-family: 'Bebas Neue', sans-serif;
  max-width: 560px;
  font-size: 2rem;
  margin: 2rem auto 3.5rem;
  color: #fff;
  opacity: 0.95;
  font-weight: 400;
  text-align: center;
}

.hero-cta-card {
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;

  width: 100%;
  max-width: 780px;
  margin: 0 auto;

  /* remove the box look */
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}





.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.2in; 
  background-color: #A59E8C; 
  z-index: 2; /* above hero background but below text */
}

/* =========================================================
   BUTTON
   ========================================================= */
.btn-primary {
  background-color: #D7CEB2;
  color: #000;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;   /* 👈 remove underline */
  display: inline-block;   /* 👈 makes padding behave like a button */

}

.btn-primary:hover {
  background-color: #66635B;
  color: #fff;
  transform: translateY(-3px);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  
  padding: 5rem 5%;
  max-width: none;
  margin: 0 auto;
  background-color: #fff;
  width: 100%;
}

.section.alt {
  max-width: none;
  padding-left: 5%;
  padding-right: 5%;
  background-color: #D7CEB2;
}


.section h2 {
  text-align: center;
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 4.5rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111;
}


.section-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: 350;
  line-height: 1.7;
  color: #333;
  text-align: center;
}



/* =========================================================
   GRID / CARDS
   ========================================================= */
/* .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
*/

/* =========================================================
   USE CASES – FULL-WIDTH IMAGE CARDS
   ========================================================= */
.usecases {
  position: relative;
  max-width: none;
  padding: .5rem 1% .5rem; /* 🔥 tighter top & bottom */
  background-color: #fff;
}


.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .5rem;
  width: 100%;
  margin: 0 auto;
}

/* image-backed card */
.usecase-tile {
  position: relative;
  min-height: 420px;
  padding: 2.5rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  color: #fff;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  overflow: hidden;
}

/* readability overlay */
.usecase-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2)
  );
  z-index: 0;
}

.usecase-tile > * {
  position: relative;
  z-index: 1;
}

.usecase-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.usecase-tile p {
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
  opacity: 0.95;
}

/* hover polish */
.usecase-tile {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.usecase-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}


/* =========================================================
   HOW IT WORKS (3-step flow + arrows)
   ========================================================= */
.how-it-works {
  position: relative;
  
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.how-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
  text-align: center;
  height: 100%;
}


.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.how-card h3 {
  margin: 1rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.how-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* number badge */
.how-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 800;
}

/* arrows between cards */
.arrow {
  width: 40px;
  height: 2px;
  background: #000;
  position: relative;
  align-self: center; /* ✅ centers arrow vertically */

}

.arrow::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* responsive: stack cards, rotate arrows vertical */
@media (max-width: 768px) {
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .arrow {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }

  .arrow::after {
    right: auto;
    left: -4px;
    top: auto;
    bottom: -6px;
    border-left: none;
    border-top: 8px solid #999;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
  }
}

/* =========================================================
   PRODUCTS – HORIZONTAL SCROLL + FOCUS
   ========================================================= */
#products {
  scroll-margin-top: calc(var(--header-offset) - 20px);
}

.products{
  padding: 5rem 5%;
  background: #fff;
  position: relative;
  margin-bottom: 80px; /* room for angle */
}

/* angled divider (this is what changed size/color) */
.products::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -80px;

  height: 80px;              /* keep this consistent */
  background: #93A8AC;       /* pick your divider color */
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  z-index: 2;
  pointer-events: none;
}

/* wrapper for arrows */
.product-carousel{
  position: relative;
}

/* the scroller */
.product-scroll{
  margin-top: 2.5rem;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 1rem;

  overflow-x: auto;

  padding: 1rem 10vw 1.5rem;  /* center “window” */
  scroll-padding: 10vw;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar{ display:none; }

/* subtle edge vignette */
.product-scroll{
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* cards */
.product-card{
  position: relative;
  min-height: 380px;
  padding: 2.25rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;

  color: #fff;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  overflow: hidden;

  scroll-snap-align: center; /* IMPORTANT for “middle 3” */
  transition: transform 300ms ease, filter 300ms ease, opacity 300ms ease, box-shadow 300ms ease;
  will-change: transform, filter, opacity;
}

.product-card { scroll-snap-align: center; 
}


/* overlay */
.product-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.2));
  z-index: 0;
}

.product-card > *{
  position: relative;
  z-index: 1;
}

.product-card h3{
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}

.product-card p{
  margin: 0;
  line-height: 1.5;
  opacity: 0.95;
  }

/* hover polish */
.product-card:hover{
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-6px) scale(1) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

/* arrows */
.product-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;

  display: grid;
  place-items: center;

  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.product-arrow:hover{
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.06);
}

.product-arrow.left{ left: 8px; }
.product-arrow.right{ right: 8px; }





/* =========================================================
   CONTACT SECTION
   ========================================================= */
#contact {
  scroll-margin-top: calc(var(--header-offset) - 20px); /* adjusts the redirect height */
}


   .contact {
  background-color: #fff;
  margin-bottom: 4rem;
  
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* contact info */
.contact-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: 350;
  line-height: 1.7;
  color: #333;
  text-align: center;
  margin-bottom: 3rem;

}
 
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
   text-align: center; 
}

.contact-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
   
} 

.contact-info a {
  font-size: 1.2rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* form */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status.success {
  color: #1b7f3b;
}

.form-status.error {
  color: #b00020;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #66635B;
}

/* button spacing */
.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

/* base icon */
.contact-line::before {
  content: "";
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* email icon */
.contact-line.email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

/* phone icon */
.contact-line.phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M22 16.92V21a2 2 0 0 1-2.18 2A19.86 19.86 0 0 1 3 5.18 2 2 0 0 1 5 3h4.09a2 2 0 0 1 2 1.72c.12.9.37 1.77.73 2.6a2 2 0 0 1-.45 2.11L9.91 11.09a16 16 0 0 0 6 6l1.66-1.46a2 2 0 0 1 2.11-.45c.83.36 1.7.61 2.6.73a2 2 0 0 1 1.72 2z'/%3E%3C/svg%3E");
}

/* location / globe icon */
.contact-line.location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 0 20a15.3 15.3 0 0 1 0-20z'/%3E%3C/svg%3E");
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: .75rem 1rem;
  text-align: center;
  color: #fff;
  background-color: #333;
}

/* =========================================================
   MOBILE
   ========================================================= */
/* prevent background scroll when nav is open */
html.nav-open,
html.nav-open body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .section-title {
    font-size: clamp(2.6rem, 8vw, 3.6rem);
  }
  .section-text,
  .contact-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --deals-height: 36px;
    --header-height: 72px;
  }

  .deals-bar {
    font-size: 0.7rem;
  }

  .nav {
    padding: 0 14px;
  }

  .nav-logo img {
    height: 22px;
  }

  /* show hamburger */
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  /* dropdown menu */
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.75rem 0.9rem;
    background: #333;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    height: auto;
    padding: 14px 10px;
    justify-content: center;
  }

  .site-nav a::after {
    bottom: 8px;
  }

  /* reduce hover scale on touch screens */
  .site-nav a:hover {
    transform: none;
  }

  .hero {
    gap: 1.6rem;
    padding-top: calc(var(--header-offset) + 2rem);
  }

  .hero-logo {
    letter-spacing: 0.08em;
    font-size: clamp(2.6rem, 10.5vw, 4.6rem);
  }

  .hero-sub {
    font-size: 1.45rem;
    margin: 1.25rem auto 2rem;
    padding: 0 0.5rem;
  }

  .btn-primary {
    padding: 0.9rem 1.6rem;
  }

  .section {
    padding: 3.75rem 6%;
  }

  .usecases {
    padding: 0.75rem 3% 0.75rem;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .usecase-tile {
    min-height: 320px;
    padding: 1.75rem;
  }

  /* products: one card at a time and no arrows */
  .product-scroll {
    grid-auto-columns: minmax(240px, 82vw);
    padding: 1rem 6vw 1.25rem;
    scroll-padding: 6vw;
  }

  .product-card {
    min-height: 320px;
    padding: 1.75rem;
  }

  .product-arrow {
    display: none;
  }

  /* contact stacks */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-form .btn-primary {
    align-self: stretch;
    text-align: center;
  }
}
