/* ==============================
   HOME.CSS - HOME PAGE SECTIONS
================================ */

.home-section {
  padding: 60px 24px;
}

/* ==============================
   HERO
================================ */
.hero {
    height: 95vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 450px;
    width: 98%;
    margin: 8px auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* SAME behavior as video */
    object-position: center;
    z-index: 1;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background:linear-gradient(to top, rgba(0,0,0,0.55), rgba(0, 0, 0, 0.3), transparent); 
    color: #fff;
    z-index: 2;
    padding: 120px 0 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-overlay .hero-title, 
  .hero-overlay .hero-subtitle, 
  .hero-overlay .hero-body {
    text-align: left;
    color: #fff;
  }

  .hero-title {
    font-size: clamp(2.6rem, 5.5vw, 6.6rem);
    margin-bottom: 0;   /* remove gap below h1 */
    line-height: 1.05;
  }
  
  .hero-subtitle {
    font-size: clamp(1.25rem, 2.6vw, 3.1rem);
    color: #fff;
    margin-top: 15px;      /* remove gap above h2 */
    margin-bottom: 25px; /* keep spacing before body */
    line-height: 1.15;
  }  
  
  .hero-body {
    font-size: clamp(1.1rem, 1.5vw, 1.8rem);
    line-height: 1.5;
    max-width: 700px;
    color: #ffffff;
    margin-bottom: 3rem;
  }

  
  /* ==============================
     ABOUT US
  ================================ */
  .aboutus-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
  }
  
  .aboutus-text { max-width: 520px; }
  .aboutus-text h2 { margin-bottom: 22px; }
  .aboutus-text p { line-height:1.6; color:#444; }
  
  .aboutus-image {
   height: 420px;
   border-radius: 24px;
   overflow: hidden; /* ensures img respects border-radius */
   background:linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.2), transparent); 
 }
 
 .aboutus-image img {
   width: 100%;
   height: 100%;
   object-fit: cover; /* replaces background-size: cover */
   object-position: top center; /* 👈 keeps left side visible */
   display: block;
 }

 .aboutus-text p.eyebrow {
  color: var(--brand-primary);
}

  
  /* ==============================
     SOLUTIONS
  ================================ */
  .solutions-section { 
    max-width:1200px; 
    margin:0 auto; 
    padding: 60px 24px; 
  }

/* Container for the image */
.solution-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Image behaves like background-size: cover */
.solution-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

  .solutions-header p.eyebrow {
    color: var(--brand-primary);
    font-size: 16px;
  }

  .solutions-header { 
    max-width:600px; 
    margin-bottom:60px; 
  }

  .solutions-header h2 { 
    margin-bottom:16px; 
  }

  .solutions-header p { 
    font-size:16px; 
    line-height:1.6; 
    color:#444; 
  }
  
  .solutions-grid { 
    display:grid; 
    grid-template-columns:2fr 1fr; 
    grid-template-rows:1fr 1fr; 
    gap:24px; 
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .solution-card { 
    position:relative; 
    border-radius:28px; 
    background-size:cover; 
    background-position:center; 
    overflow:hidden; 
    text-decoration:none; 
    color:#fff; 
    cursor:pointer; 
    min-height:250px; 
  }

  .solution-card.feature { 
    grid-column:1; 
    grid-row:1 / span 2; 
    min-height:500px; 
  }

  .solution-card:hover { 
    box-shadow:0 20px 40px rgba(0,0,0,0.25); 
  }
  
  .solution-overlay { 
    position:absolute; 
    inset:0; 
    padding:28px; 
    display:flex; 
    flex-direction:column; 
    justify-content:flex-end; 
    gap:6px; 
    background:linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.4), transparent); 
  }

  .solution-overlay1{ 
    position:absolute; 
    inset:0; 
    padding:28px; 
    display:flex; 
    flex-direction:column; 
    justify-content:flex-end; 
    gap:6px; 
    background:rgba(0,0,0,0.55); 
  }

/* Optional: make it responsive with clamp */
.solution-overlay .priority-title {
  font-size: clamp(20px, 2.5vw, 28px); /* min 20px, scales with screen, max 28px */
  max-width: 550px;
}

  .solution-overlay1 h3 {
    font-size: 18px;
  }

  .solution-overlay p {
    max-width: 550px;
  }

  .solution-overlay span { 
    font-size:14px; 
    opacity:0.9; 
  }
  
  .solution-cta { 
    display:inline-flex; 
    align-items:center; 
    gap:8px; 
    font-size:14px; 
    opacity:0.9; 
  }

  .solution-arrow { 
    width:30px;
    height:30px;
    padding:7px;
    border-radius:50%;
    background:#fff;
    color:#111; 

    transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  }

  .solution-card:hover .solution-arrow { 
    transform: translate3d(6px, 0, 0); 
  }
  
  /* ==============================
     PRODUCTS
  ================================ */
  .products-section { 
    background:#f9f9f9; 
    padding: 60px 24px; 
  }

  .products-header.centered { 
    max-width:800px; 
    margin:0 auto 80px; 
    text-align:center; 
    margin-bottom: 35px;
  }

  .products-grid { 
    max-width:1200px; 
    margin:0 auto; 
    display:grid; 
    grid-template-columns:repeat(4,1fr); 
    gap:24px; 
  }

  .products-card { 
    background:#fff; 
    border-radius:16px; 
    padding:24px; 
    min-height:250px; 
    border:1px solid #0a2472; 
    display: flex;
    flex-direction: column;
    text-decoration: none;

    background-size: cover;     /* Equivalent to object-fit: cover */
    background-position: center;
    background-repeat: no-repeat;
  }

  .products-card:hover { 
    transform:translateY(-6px); 
    box-shadow:0 20px 40px rgba(0,0,0,0.08); 
    background: #fefefe;
    border-color: var(--brand-secondary);
  }

  .products-number { 
    display: block;              /* removes baseline spacing */
    font-size:14px; 
    color: var(--brand-primary);
    margin-bottom:0px; 
    line-height: 1;              /* CRITICAL */
  }

.products-card img {
  width: 100%;
  border-radius: 8px;
  max-height: 220px;
  object-fit: contain;
}

  .products-title {
    font-size: 20px;
    margin-top: 10px;             /* fine-tune instead of fighting defaults */
    margin-bottom: 20px;
    color: #000;
  }

  .products-card p { 
    color:#444; 
  }

.products-card .coming-soon {
    display: inline-block; /* keeps it only as wide as text + padding */
    align-self: flex-start; /* prevents stretching in flex column */
    padding: 2px 8px;
    border: 1px solid #0a2472;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0a2472;
    white-space: nowrap; /* optional: keeps text on one line */
    margin-top: 12px;
}

/* ==============================
     DEVICE
================================ */

.device-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;

  text-decoration: none;
  color: inherit;

  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.device-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.cards-wrapper {
  display: flex;
  flex-direction: column; /* stack cards vertically */
  gap: 2rem; /* space between cards */
  margin-bottom: 28px;
}

.device-image {
  flex: 0 0 280px;
}

.device-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.device-info {
  flex: 1;
  max-width: 400px;   /* 👈 adjust to taste */
  align-self: flex-start;
}

.device-info .eyebrow {
  margin-top: 2rem;
  margin-bottom: 0.35rem;    /* spacing between eyebrow and title */
  color: var(--brand-primary);
}

.device-info .eyebrow:hover {
  color: #54669c;
}

.device-info h3 {
  font-size: 3rem;
  margin-bottom: 0.4rem;
}

.device-info h3:hover {
  color: #555;
}

.device-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-top: 0;
}

.device-info p:hover {
  color: var(--brand-primary);
}

.device-icons {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centers everything horizontally */
  text-align: center;    /* 👈 centers the title text */
  gap: 0.75rem;
  min-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

.icons-title {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 1rem;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontally center everything */
  justify-content: center; /* vertically center multi-line labels */
  text-align: center;    /* centers multi-line text */
  gap: 0.35rem;
  min-width: 60px;       /* optional: ensures grid items align nicely */
}

.icon-label {
  font-size: 0.9rem;
  line-height: 1.2;
  display: block;
  white-space: normal;   /* allows text to wrap naturally */
  color: #666;
}

.icon-item:hover span {
  color: var(--brand-primary); /* darken the label when hovered */
}

.icon-item img {
  width: 50px;   /* change this */
  height: auto;  /* keeps aspect ratio */
  height: auto;
  margin-bottom: 2px;
}

.icon-item:hover img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
  
  /* ==============================
     INSIGHTS
  ================================ */
  .insight-section { 
    background:#f9f9f9;
    padding: 60px 24px; 
  }

  .insight-header { 
    max-width:1200px; 
    margin:0 auto 64px; 
  }

  .insight-grid { 
    max-width:1200px; 
    margin:0 auto; 
    display:grid; 
    grid-template-columns:repeat(2,1fr); 
    gap:24px; 
  }

  .insight-card { 
    background:#fff; 
    border-radius:28px; 
    overflow:hidden; 
    border:1px solid #eee; 
    cursor:pointer; 
    text-decoration: none;
  }

  .insight-card:hover { 
    transform:translateY(-6px); 
    box-shadow:0 20px 40px rgba(0,0,0,0.08); 
  }

  .insight-card img { 
    width:100%; 
    height:240px; 
    object-fit:cover; 
  }

  .insight-content { 
    padding:28px; 
  }

  .insight-meta { 
    font-size:12px; 
    text-transform:uppercase; 
    letter-spacing:0.08em; 
    color:#777; 
  }

  .insight-content h3 {
    color: #000;
  }

  .insight-content p { 
    font-size:15px; 
    line-height:1.6; 
    color:#444; 
  }

  /* CTA SECTION */
  .homecta-section {
    display: flex;
    justify-content: center;
    padding: 30px 24px;
    margin-bottom: 50px;
  }
  
  
  /* ==============================
     MEDIA QUERIES
  ================================ */
  
@media(max-width:768px){
  .aboutus-split, 
  .solutions-grid, 
  .products-grid, 
  .insight-grid { 
    grid-template-columns:1fr; 
  }

  .home-section {
    padding: 30px 10px;
  }

  .hero {
    height: 570px; /* or whatever height fits your design */
    position: relative; /* keep overlay positioned correctly */
  }
  
  .hero-video,
  .hero-image {
    height: 100%; /* keeps them filling the new hero height */
    width: 100%;
    object-fit: cover; /* ensures it still looks good */
    object-position: top; 
  }

  .hero-overlay {
    padding: 40px 15px; /* smaller padding for mobile */
    text-align: left;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* now only covers the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-overlay .hero-title,
  .hero-overlay .hero-subtitle,
  .hero-overlay .hero-body {
    text-align: left;
  }

  .hero-overlay .blue-btn,
  .hero-overlay .white-btn {
    align-self: flex-start;
  }

  .hero-title { 
    font-size: clamp(2rem, 6vw, 2.4rem);
    margin-top: 100px;
  }

  .hero-subtitle { 
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }
  
  .hero-body { 
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

  .solution-card.feature { 
    min-height:380px; 
  }

  .solution-overlay .priority-title {
    max-width: 300px;
  }

  .solution-overlay p {
    font-size: 14px;
  }

  .aboutus-text h2 { 
    font-size: 28px;
  }
    
  .aboutus-text p { 
    font-size: 14px;
  }

  .aboutus-image {
    height: 300px;
  } 
  
  .solutions-header h2,
  .products-header h2, 
  .insight-header h2 { 
    font-size: 34px; 
  }
    
  .cta {
    flex-direction: column;   /* stack vertically */
    align-items: flex-start;  /* left-align text & button */
    gap: 16px;                /* space between text and button */
    align-items: center;
    text-align: center;
  }

  .cta-button {
    width: 100%;              /* optional: full-width button */
    text-align: center;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-subtitle {
    font-size: 16px;
    max-width: 375px;
  }

  .section {
    padding: 30px 24px;
  }

    /* Stack card sections vertically */
    .device-card {
      flex-direction: column;
      align-items: center;       /* centers all sections */
      text-align: center;        /* centers text */
      padding: 1.5rem 1rem;
      gap: 1.5rem;
    }
  
    /* Image section */
    .device-image {
      flex: none;                /* remove fixed width */
      width: 60%;                /* adjust image size on mobile */
      max-width: 240px;
    }
  
    .device-image img {
      width: 100%;
      height: auto;
    }
  
    /* Product info section */
    .device-info {
      flex: none;                /* remove middle column flex growth */
      max-width: 90%;            /* keep text readable */
      align-self: center;
    }
  
    .device-info h3 {
      font-size: 32px;
    }
  
    /* Icon section */
    .device-icons {
      margin-left: 0;              /* remove auto margin from desktop */
      margin-right: 0;
      align-self: center;          /* center the section horizontally */
      width: auto;                 /* shrink-wrap content */
    }
  
    .icons-grid {
      grid-template-columns: repeat(2, auto); 
      justify-content: center;     /* center the whole grid */
      justify-items: center;       /* center each icon in its cell */
    }
  
    .icon-item {
      align-items: center;      /* centers icon + label vertically */
      text-align: center;
    }
  
    .icon-item img {
      width: clamp(40px, 10vw, 48px); /* slightly larger on mobile */
      height: auto;
    }
  
    .icon-label {
      font-size: 0.65rem;
      line-height: 1.2;
    }
  
    /* Optional: eyebrow text smaller */
    .eyebrow {
      font-size: 0.6rem;
      margin-bottom: 20px;
    }

}
  
/* ==============================
   HERO - Portrait Mode (Tablet / Phone)
================================ */
@media (orientation: portrait) and (min-width: 769px) {
  .hero {
    height: 80vh; /* slightly smaller height in portrait */
    margin: 5px auto;
  }

  .hero-overlay {
    padding: 60px 20px 40px 20px; /* reduce padding on sides */
    align-items: center;           /* center text horizontally */
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem); /* scale down for narrow screens */
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 2rem);
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .hero-body {
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    max-width: 90%; /* use more flexible width */
    margin-bottom: 2rem;
  }

  .hero-image,
  .hero-video {
    object-fit: cover; /* ensure image/video fills space nicely */
    object-position: center top; /* prioritize top content */
  }
}








