/* ==========================================================================
   GeneMaris Technologies — style.css
   ==========================================================================

   CONTENTS
   --------
   1.  Design tokens (dark theme is the default; light theme follows the
       device setting via the `prefers-color-scheme` media query)
   2.  Base & shared components
   3.  Navbar
   4.  Hero
   5.  Services (icon cards, "what we offer", accordion)
   6.  Testimonials
   7.  About / Why choose / Gallery strip
   8.  Contact
   9.  Footer
   10. Responsive — mobile  (max-width: 991px)
   11. Responsive — desktop (min-width: 992px)
   12. Responsive — large   (min-width: 1200px)

   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand */
  --primary-color: #177de9;

  /* Theme — dark (default) */
  --background-color: #000b1b;
  --background-secondary-color: #011023;
  --heading-color: #ffffff;
  --text-color: #ffffff;
  --section-line: #17283a3d;   /* thin borders between page sections   */
  --divider: #ffffff0d;        /* card dividers on stacked mobile view */
  --footer-bg: #000000;
  --footer-copy: #8a8d93;   /* footer copyright text */
  --hero-rgb: 0, 11, 27;       /* hero overlay tint (R, G, B)          */

  /* Constant across both themes (white "paper" cards) */
  --card-surface: #ffffff;
  --card-ink: #011023;
}

/* Theme — light (applied automatically from the device setting) */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --background-color: #f5f8fc;
    --background-secondary-color: #e9f1fb;
    --heading-color: #0e1b2c;
    --text-color: #3c4a5c;
    --section-line: #17283a29;
    --divider: #0e1b2c14;
    --footer-bg: #eef2f7;
    --footer-copy: #6b7a8d;
    --hero-rgb: 245, 248, 252;
  }
}


/* ==========================================================================
   2. BASE & SHARED COMPONENTS
   ========================================================================== */

#main-div {
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

#main-div h1,
#main-div h2,
#main-div h3 {
  color: var(--heading-color);
}

/* Accent underline used beneath headings */
.little-bar {
  height: 3px;
  max-width: 100px;
  background-color: var(--primary-color);
  margin: 20px 0;
  border-radius: 15px;
}

/* Section framing */
.le-section {
  border-top: 2px solid var(--section-line);
  border-bottom: 2px solid var(--section-line);
}

.le-bg-secondary {
  background-color: var(--background-secondary-color);
}

.le-bg-secondary .col {
  background-color: var(--background-secondary-color);
}

/* Small blue eyebrow label above headings */
.le-sub {
  color: var(--primary-color);
  letter-spacing: 1px;
  font-weight: bold;
}

/* Technology chips (used inside the services accordion) */
.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1.5px solid currentColor;
  padding: 5px 12px;
  white-space: nowrap;
}


/* ==========================================================================
   3. SITE HEADER  (shared by index.html and c-labs.html)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--section-line);
}

.site-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Brand (logo + stacked wordmark) — used in header and footer */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--heading-color);
  text-decoration: none;
}

.site-brand__mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: #fff;   /* white chip keeps the logo legible in dark mode */
  border-radius: 10px;
  padding: 3px;
  object-fit: contain;
}

.site-brand__words {
  line-height: 15px;
  text-align: left;
}

.site-brand__line1,
.site-brand__line2 {
  display: block;
  margin: 0;
  color: var(--heading-color);
}

.site-brand__line1 {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 3px;
}

.site-brand__line1 .accent {
  color: var(--primary-color);
}

.site-brand__line2 {
  font-weight: 100;
  font-size: 0.65rem;
  letter-spacing: 4px;
}

/* Links + CTA cluster */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  color: var(--heading-color);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.site-nav__links a:hover {
  color: var(--primary-color);
}

.site-nav__links a.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 2px;
}

/* Primary button (framework-independent, so it looks identical on both pages) */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s;
}

.site-btn:hover,
.site-btn:focus {
  background-color: #0f66c4;
  color: #fff;
}

/* Mobile menu toggle (hidden on desktop) */
.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 18px;
  line-height: 1;
  color: var(--heading-color);
  background: transparent;
  border: 1px solid var(--section-line);
  border-radius: 6px;
  cursor: pointer;
}


/* ==========================================================================
   4. HERO
   ========================================================================== */

#le-hero {
  height: 90dvh;
  margin: auto 75px;
  margin-right: 0px;
  background-image: url(./images/hero-az.png); /* dark-mode hero; light override below */
  background-repeat: no-repeat;
  background-position-x: -485px;
  background-position-y: bottom;
}

#le-hero .hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
  background-color: rgba(var(--hero-rgb), 0.44);
}

.hero-info {
  padding: 80px 20px 0;
}

.hero-overlay {
  position: absolute;
  width: stretch;
  height: 85vh;
  background: rgb(var(--hero-rgb));
  background: linear-gradient(
    90deg,
    rgba(var(--hero-rgb), 1) 25%,
    rgba(var(--hero-rgb), 0) 43%
  );
}

#le-hero img {
  display: none;
}

#le-hero p {
  width: 56%;
  font-weight: 400;
}

#le-hero .btn {
  padding: 10px 15px;
  padding-left: 25px;
  font-weight: 500;
  margin-right: 20px;
  letter-spacing: 1px;
}

#le-hero .btn svg {
  margin-left: 10px;
  margin-bottom: 2px;
  background-color: initial;
}

#le-hero .btn path {
  stroke-width: 1px;
  stroke: currentColor;
}


/* ==========================================================================
   5. SERVICES
   ========================================================================== */

/* --- Icon cards row ----------------------------------------------------- */

#services-section .le-bg-secondary .card {
  background-color: var(--background-secondary-color);
  margin: 45px auto;
  width: 22rem;
  border: none;
  color: var(--text-color);
  text-align: center;
}

#services-section .card svg {
  margin: auto;
  background-color: var(--background-secondary-color);
  width: 100px;
  margin-bottom: 15px;
  fill: var(--primary-color);
}

#services-section .card .card-title {
  margin-bottom: 15px;
}

#services-section .card .card-body {
  margin: auto;
  background-color: var(--background-secondary-color);
}

/* --- "What we offer" ---------------------------------------------------- */

#what-we-offer {
  padding: 50px 10px;
}

#what-we-offer h1 {
  margin: 0;
}

#what-we-offer .info-left {
  text-align: left;
  margin-top: 25px;
}

#what-we-offer .le-section {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.contact-btn {
  margin: 30px 0;
  width: 100%;
  padding: 12px 0;
  letter-spacing: 1px;
  font-weight: bold;
}

.contact-btn svg {
  margin-left: 10px;
  margin-bottom: 3px;
  background-color: initial;
}

.contact-btn path {
  stroke-width: 2px;
  stroke: #ffffff;
}

/* --- Services accordion ------------------------------------------------- */

#services-list {
  margin-top: 50px;
}

#services-accordion {
  width: 100%;
  margin: auto;
}

#services-list .accordion-item {
  color: var(--card-ink);
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 6px 0;
}

#services-list .accordion-button {
  font-weight: bold;
}

#services-list .accordion-button:focus {
  box-shadow: none;
}

#services-list .accordion-body ul li::marker {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--card-ink);
  background-color: inherit;
  box-shadow: none;
}

.see-more-btn {
  margin-top: 10px;
  padding: 8px 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

.see-more-btn svg {
  margin-left: 8px;
  margin-bottom: 2px;
}

/* --- Image group (hidden on current layout) ------------------------------ */

.img-group {
  display: none;
  margin-top: 50px;
}

.img-group img {
  max-height: 400px;
  max-width: -webkit-fill-available;
}


/* ==========================================================================
   6. TESTIMONIALS
   ========================================================================== */

#testimonials-section {
  padding: 50px 10px;
  margin: auto;
  width: 100%;
}

#testimonials-section .row {
  padding: 0;
  width: 100%;
  margin: auto;
}

.testimonials-card .card {
  padding: 20px 0;
  background-color: inherit;
  color: var(--text-color);
}

.testimonials-card .col-4 {
  color: var(--card-ink);
}

.testimonials-pitch {
  margin-bottom: 30px;
  padding: 0;
}

.testimonials-pitch h1 {
  margin-bottom: 0;
  font-weight: 500;
}

.testimonials-pitch p {
  margin-top: 10px;
}

/* White review card + carousel */
.testimonials {
  font-size: 1.1rem;
  height: 455px;
  padding: 0;
  font-weight: bolder;
  background-color: var(--card-surface);
  border-radius: 45px;
}

#myCarousel,
.carousel,
.carousel-inner,
.carousel-item,
.carousel-item.active {
  height: 100%;
  border-radius: 10px;
  -webkit-box-shadow: 2px 10px 14px -1px rgba(0, 0, 0, 0.2);
  box-shadow: 2px 10px 14px -1px rgba(0, 0, 0, 0.2);
}

.carousel-item {
  border-radius: 10px;
}

.carousel-caption {
  color: var(--card-ink);
  right: 10%;
  bottom: 2.25rem;
  left: 10%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
}

.review-description {
  margin-bottom: 50px;
}

.review-name {
  color: var(--primary-color);
  margin-bottom: 0;
}

.review-title {
  color: #051c355c;
  font-size: 1rem;
  margin-top: -5px;
}


/* ==========================================================================
   7. ABOUT / WHY CHOOSE / GALLERY STRIP
   ========================================================================== */

#vision {
  padding: 0 10px 75px;
}

#about-section .about-icons .col {
  border-bottom: var(--divider) solid 2px;
}

#about-section .about-icons .card {
  background-color: var(--background-color);
  margin: 45px auto;
  width: 22rem;
  border: none;
  color: var(--text-color);
  text-align: center;
}

#about-section .card svg {
  margin: auto;
  background-color: var(--background-color);
  width: 100px;
  margin-bottom: 15px;
  fill: var(--primary-color);
}

#about-section h1 {
  margin-bottom: 0;
}

#about-section .about-icons h1 {
  text-align: center;
  margin-top: 55px;
}

#about-section .info-left {
  margin: 50px 0;
  font-size: 1rem;
}

#about-section .info-left p {
  margin-top: 10px;
}

#about-section .info-right img {
  max-width: 100%;
  border-radius: 1%;
  -webkit-box-shadow: 6px 10px 20px -2px #000;
  box-shadow: 6px 10px 20px -2px #000;
}

#about-section .core-values-list {
  line-height: 22px;
}

#about-section .core-values-list li::marker {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* --- Scrolling photo gallery strip --------------------------------------- */

#gallery-strip {
  background: var(--background-color);
  padding: 0;
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  gap: 3px;
  animation: scrollGallery 30s linear infinite;
  width: max-content;
}

.gallery-scroll:hover {
  animation-play-state: paused;
}

@keyframes scrollGallery {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-img-wrap {
  width: 320px;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.8);
  transition: filter 0.4s;
}

.gallery-img-wrap:hover img {
  filter: brightness(1) saturate(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-scroll {
    animation: none;
  }
}


/* ==========================================================================
   8. CONTACT
   ========================================================================== */

#contact-section {
  padding: 75px 20px;
}

#contact-section .logo-card-bg {
  background-color: var(--card-surface);
  width: 100%;
  border-radius: 5%;
  padding: 20px;
}

#contact-section .logo-card-bg img {
  width: inherit;
}

#contact-section #contact-us-info {
  margin-top: 50px;
}

#contact-section #contact-us-info h1 {
  margin-bottom: 0px;
}

#contact-section .contact-phone-email {
  margin-top: 50px;
}

#contact-section .contact-phone-email .row {
  margin-bottom: 20px;
}

#contact-section .contact-phone-email .col-10 {
  line-height: 20px;
  margin: auto;
}

#contact-section .contact-phone-email .col-10 span {
  letter-spacing: 1px;
  color: var(--primary-color);
}

#contact-section .contact-phone-email .col-10 p {
  margin-bottom: 0;
}

.icon-col {
  margin: auto;
  padding: 0;
}

.icon-circle {
  background-color: #003267;
  padding: 12px;
  border-radius: 50%;
  width: 52px;
  margin: auto;
}

.icon-circle svg {
  fill: var(--primary-color);
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--footer-bg);
  padding: 20px 0;
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--footer-copy);
}

/* Social icons */
.site-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--footer-copy);
  border: 1px solid var(--section-line);
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

.site-social a:hover {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.site-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* ==========================================================================
   10. RESPONSIVE — MOBILE (max-width: 991px)
   ========================================================================== */

@media screen and (max-width: 991px) {
  /* Shared header collapses to a toggle menu */
  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--section-line);
    padding: 20px 48px;
  }

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

  #le-hero {
    margin: 0;
  }

  .hero-overlay {
    position: absolute;
    width: stretch;
    height: 85vh;
    background: rgb(var(--hero-rgb));
  }

  #le-hero .hero-overlay {
    position: absolute;
    width: stretch;
    height: 85vh;
    background: rgba(var(--hero-rgb), 0.65);
  }

  .hero-info {
    text-align: center;
  }

  .partial-bg {
    background: none;
  }

  .little-bar {
    margin: 20px auto;
  }

  #le-hero .little-bar {
    max-width: 150px;
    margin: 30px auto;
  }

  #le-hero p {
    width: 100%;
    margin: auto;
  }

  #le-hero .button-group a {
    margin: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  .le-bg-secondary .col {
    border-bottom: var(--divider) solid 2px;
  }
}


/* ==========================================================================
   11. RESPONSIVE — DESKTOP (min-width: 992px)
   ========================================================================== */

@media screen and (min-width: 992px) {
  /* Hero */
  #le-hero {
    background-size: auto 100%;
    background-position: right;
  }

  #le-hero .hero-inner {
    background: linear-gradient(
      90deg,
      rgba(var(--hero-rgb), 1) 25%,
      rgba(23, 125, 233, 0) 74%
    );
  }

  #le-hero .size-control {
    display: none !important;
  }

  /* Vertical divider between icon cards */
  .div-line {
    width: 0px;
    padding: 0;
    margin: 0;
    border-right: #177de94a 2px solid;
    max-height: 190px;
    position: relative;
    top: 65px;
  }

  /* Services */
  #services-section #icon-cards .col-lg-3 {
    padding: 0;
  }

  #services-section .le-bg-secondary .card {
    background-color: var(--background-secondary-color);
    margin: 45px auto;
    width: auto;
    border: none;
    color: var(--text-color);
    border-right: #177de94a 3px solid;
    border-radius: 0;
  }

  #services-section .le-bg-secondary .col-lg-3:last-of-type .card {
    border: none;
  }

  #services-section .card svg {
    margin: auto;
    background-color: var(--background-secondary-color);
    width: 85px;
    margin-bottom: 15px;
    fill: var(--primary-color);
  }

  #services-section .card .card-title {
    font-size: 1.25rem;
  }

  #what-we-offer {
    padding: 75px 100px;
    margin: 0;
  }

  #services-accordion {
    max-width: 500px;
    margin: auto;
  }

  #services-list {
    margin-top: 0px;
  }

  /* Testimonials */
  #testimonials-section {
    padding: 50px 100px;
  }

  .testimonials {
    height: 425px;
    margin: auto;
  }

  .testimonials-pitch p {
    margin-top: 25px;
  }

  .testimonials-card .card {
    border: none;
  }

  /* About */
  #about-section .le-bg-secondary {
    padding: 0 100px;
    margin: 0;
  }

  #about-section .about-icons h1 {
    font-size: 2rem;
  }

  #about-section .info-right {
    margin: auto;
  }

  #about-section .card .card-title {
    font-size: 1.25rem;
  }

  /* Layout */
  .le-section {
    margin: 0;
    padding: 0 !important;
  }

  #icon-cards,
  .about-icons {
    margin: 0;
  }

  /* Contact */
  #contact-section {
    padding: 90px !important;
  }

  #contact-section .logo-card-bg {
    max-width: 400px;
    margin: auto;
  }

  #contact-section #contact-us-info {
    margin-top: 0px;
  }
}


/* ==========================================================================
   12. RESPONSIVE — LARGE (min-width: 1200px)
   ========================================================================== */

@media screen and (min-width: 1200px) {
  .testimonials {
    height: 350px;
    margin: auto;
  }
}


/* ==========================================================================
   LIGHT-THEME COMPONENT OVERRIDES
   (small adjustments so dark-theme-specific styling reads well on light)
   ========================================================================== */

@media (prefers-color-scheme: light) {
  /* "OUR SERVICES" hero button — white outline is invisible on light */
  .btn-outline-light {
    color: var(--heading-color);
    border-color: var(--heading-color);
  }

  .btn-outline-light:hover,
  .btn-outline-light:focus {
    background-color: var(--heading-color);
    border-color: var(--heading-color);
    color: #ffffff;
  }

  /* Soften the heavy black photo shadow */
  #about-section .info-right img {
    -webkit-box-shadow: 6px 10px 20px -2px rgba(14, 27, 44, 0.25);
    box-shadow: 6px 10px 20px -2px rgba(14, 27, 44, 0.25);
  }

  /* Light-mode hero image (dark mode uses hero-az.png, set above) */
  #le-hero {
    background-image: url(./images/hero-az-light.png);
  }
}
