/**
 * BEVYTEC Website Stylesheet
 * Version: 1.1.0
*/

:root {
  --default-font:
    "Raleway", system-ui, -apple-system, "Segoe UI", Raleway, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font:
    "Raleway", system-ui, -apple-system, "Segoe UI", Raleway, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --nav-font:
    "Raleway", system-ui, -apple-system, "Segoe UI", Raleway, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Global Colors */
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #052c3f;
  --accent-color: #85b0be;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Smooth scrolling - respects user motion preferences */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.light-background {
  --background-color: #f7f9fb;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #04253d;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #07426d;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Skip Navigation Link (Accessibility)
--------------------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/*--------------------------------------------------------------
# Navigation Bar Customization
--------------------------------------------------------------*/
.navbar-custom {
  background-color: lightgray;
  text-transform: uppercase;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
  color: black;
}

.navbar-custom .navbar-nav .nav-link {
  color: black;
  font-size: 1.2em;
}

.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:hover .nav-link {
  color: white;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-custom .navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

.navbar-custom .logo-text {
  font-size: calc(20px + 0.7vw);
  font-weight: 500;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-text h1 {
  font-size: calc(15px + 1.8vw);
}

.hero-text p {
  font-size: calc(15px + 0.6vw);
  font-weight: 500;
}

.hero-line {
  padding-top: 5vh;
}

.hero-line h2 {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  border-bottom: 1px solid #000;
  line-height: 0.1em;
  margin: 10px 0 20px;
}

.hero-line h2 span {
  background: #fff;
  padding: 0 20px;
}

.right-column-title {
  text-align: left;
  align-items: left;
}

@media (max-width: 992px) {
  .right-column-title {
    text-align: center;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero-img {
    margin-bottom: 50px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  font-size: calc(15px + 0.1vw);
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer:after {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}
.footer .sitename {
  font-weight: bold;
  color: var(--accent-color);
}
.privacypolicy {
  text-align: center;
  margin-top: 10px;
  color: inherit;
  font-weight: 600;
  font-size: calc(16px + 0.1vw);
}
.footer .privacypolicy:hover {
  text-decoration: none;
}

/* Responsive padding for footer */
@media (max-width: 575px) {
  .footer {
    padding: 20px 0;
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}
@media (max-width: 768px) {
  section,
  .section {
    padding: 0;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: calc(20px + 1.2vw);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-align: center;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  overflow: hidden;
  height: 100%;
}

.team .team-member .member-img {
  position: relative;
  overflow: hidden;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 50%;
}

.team .team-member .social {
  position: absolute;
  left: 0;
  bottom: 30px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
}

.team .team-member .social a {
  background: color-mix(in srgb, var(--contrast-color), transparent 25%);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 3px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  transition: ease-in-out 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.team .team-member .social a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.team .team-member .social i {
  font-size: 18px;
  line-height: 0;
}

.team .section-title p {
  font-size: calc(15px + 1vw);
}

.team .team-member .member-info {
  padding: 25px 15px;
  text-align: center;
}

.member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: calc(15px + 1vw);
}

.member-info span {
  display: block;
  font-size: calc(15px + 0.1vw);
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.team .team-member:hover .social {
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  margin-right: 15px;
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact ::placeholder {
  font-style: italic;
}

.contact .info-item:hover i {
  color: var(--contrast-color);
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-item {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Navbar & Utilities
--------------------------------------------------------------*/
.navbar {
  font-family: var(--nav-font);
}

.nav-link.active {
  color: white;
  font-weight: bold;
}

.custom-hr {
  color: #000;
  width: 75%;
  border: 1px groove #000;
  height: 3px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Scroll To Top Button (Consolidated - Fixed Duplicate)
--------------------------------------------------------------*/
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: none; /* Hidden by default, shown via JavaScript */
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.6rem;
  transition:
    opacity 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  opacity: 0.8;
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
}

.scroll-to-top:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Hide scroll button by default */
.scroll-to-top:not(.show) {
  display: none;
}

.scroll-to-top.show {
  display: flex;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/

.thumbnail {
  overflow: visible;
}

/* change unordered list icons to bird */
.custom-bullets {
  list-style-image: url("/assets/img/green-bird-sm.png");
}

.services .product-img {
  border: 1px solid black;
  border-radius: 15px;
}

.thumbnail img {
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

/* ===============================
   Desktop hover zoom ONLY
   =============================== */
@media (hover: hover) and (pointer: fine) {
  .thumbnail img {
    transition: transform 0.3s ease-in-out;
  }

  .thumbnail img:hover {
    transform: scale(1.3);
    z-index: 10;
    position: relative;
  }
}

.services .service-title {
  font-size: calc(15px + 1.2vw);
  font-weight: 700;
}

.services p,
.services .service-detail {
  font-size: calc(15px + 0.8vw);
}

.service-item {
  background-color: rgb(242, 242, 243);
  border-radius: 4%;
  padding-left: calc(15px + 4vw);
  padding-right: calc(15px + 2vw);
}

@media (max-width: 768px) {
  .service-item {
    padding-left: calc(15px + 1vw);
  }
}

.service-row {
  margin-bottom: 20px;
}

/* Product Image Responsive Fix */
@media (max-width: 992px) {
  .thumbnail img:hover {
    transform: none !important;
  }
}

/* ===============================
   Inline-style replacements
   =============================== */

/* Hidden utility (replaces inline display:none) */
.is-hidden {
  display: none;
}

/* Constrained product image sizing (replaces inline styles) */
.product-img--constrained {
  max-height: 450px;
  width: auto;
}

/* ==================================================
   Mobile Product Image Zoom Fix
   ================================================== */

/* Allow zoomed product images to escape section clipping */
#product {
  overflow: visible !important;
}
