/* =====================================================
   SHINE MASTERS LIMITED WEBSITE STYLESHEET
   File: style.css
   Purpose: Controls all visual styling of the homepage
   ===================================================== */


/* =====================================================
   1. GLOBAL / BASE WEBSITE STYLES
   These styles affect the ENTIRE website
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  background-color: #1f2937;
  color: #ffffff;
}

body {
  width: 100%;
  max-width: 100vw;
}

img,
video,
iframe {
  max-width: 100%;
}



/* =====================================================
   2. TOP CONTACT BAR (SOCIAL BAR)
   This controls the very top strip with:
   - Address
   - Email
   - Phone
   - Social icons
   ===================================================== */

.social-bar {
  width: 100%;
  background-color: #182D09;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* CONTACT TEXT AREA */

.contact-info {
  display: flex;
  gap: 25px;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* EACH CONTACT ITEM */

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}



/* =====================================================
   3. SOCIAL MEDIA ICONS (TOP BAR)
   Controls the icons for Facebook, Twitter etc
   ===================================================== */

.social-icons-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* SOCIAL ICON CIRCLES */

.social-icons-bar a {
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #EAAA00;
  transition: transform 0.2s, background-color 0.2s;
}

/* ICON HOVER EFFECT */

.social-icons-bar a:hover {
  transform: scale(1.2);
  background-color: #ffffff;
}

/* ICON SVG SIZE */

.social-icons-bar svg {
  width: 16px;
  height: 16px;
  fill: #182D09;
}

/* =====================================================
   4. MAIN NAVIGATION BAR
   This controls:
   - Logo
   - Menu links
   - Navigation placement
   ===================================================== */
/* Navbar layout */
.main-nav {
  width: 100%;
  max-width: 100vw;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between; /* logo left, everything else right */
  align-items: center;
  position: absolute;
  top: 1.2cm;
  left: 0;
  z-index: 999;
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(234, 170, 0, 0.45);
  border-radius: 8px;
  background: rgba(24, 45, 9, 0.72);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(234, 170, 0, 0.9);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.main-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Logo */
.navbar-logo {
  height: 100px;
  width: auto;
}

/* Right side: menu + search bar */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px; /* space between menu and search bar */
  min-width: 0;
}

/* Menu */
.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 15px; /* space between menu items */
}

/* Menu links */
.nav-item {
  position: relative;
}
.nav-menu > .nav-item > a {
  display: block;
  padding: 14px 10px;
  color: var(--gold, #EAAA00);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-item.has-dropdown > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78em;
  transition: transform 0.3s ease;
}

.nav-item.dropdown-open > a::after {
  transform: rotate(180deg);
}
.nav-menu > .nav-item > a:hover {
  color: var(--dark-green);
}

/* Dropdowns - translucent golden-yellow glass effect */
.dropdown {
  display: block;
  position: absolute;
  top: 100%;
  right: 0; /* aligned to the parent menu item */
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0,0,0,.15);

  background: rgba(234, 170, 0, 0.15); /* golden-yellow with low opacity */
  backdrop-filter: blur(10px); /* glassy blur */
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.nav-item.dropdown-open .dropdown { 
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 901px) {
  .main-nav .nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .nav-item:hover > a::after {
    transform: rotate(180deg);
  }
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  color: #fff; /* default text white for contrast */
  text-decoration: none;
  font-size: .95em;
  transition: background 0.3s, color 0.3s;
}

/* Dropdown item hover */
.dropdown a:hover { 
  color: #182D09; /* dark text on hover */
  background: rgba(234, 170, 0, 0.9); /* stronger golden-yellow on hover */
  border-radius: 5px;
}

/* =========================
   SEARCH BAR
   ========================= */
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(234, 170, 0, 0.15); /* golden-yellow translucent */
  backdrop-filter: blur(6px);
  min-width: 260px;
  position: relative;
  max-width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(234, 170, 0, 0.1); /* lighter golden translucent */
  border: 1px solid rgba(234, 170, 0, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  background: #1A7F3C;
  color: #fff;
}

.search-bar button:hover {
  background: var(--gold, #EAAA00);
  transform: scale(1.05);
}

/* =========================
   SEARCH DROPDOWN RESULTS
   ========================= */
#searchResults {
  position: absolute;
  top: 100%; /* right below the search bar */
  right: 0; /* align dropdown to right side */
  width: 100%;
  max-height: 200px; /* limit height */
  overflow-y: auto; /* scroll vertically if many results */
  overflow-x: hidden; /* prevent horizontal scroll */
  background: rgba(234, 170, 0, 0.2); /* translucent golden */
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none; /* hidden by default, show via JS */
}

/* =========================
   SEARCH DROPDOWN RESULTS COLORS
   ========================= */
#searchResults .result-item {
  display: block;
  padding: 10px 12px;
  color: #182D09;           /* brand dark green for readable results */
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#searchResults .result-item strong,
#searchResults .result-item small {
  display: block;
}

#searchResults .result-item strong {
  color: #182D09;
  margin-bottom: 3px;
}

#searchResults .result-item small {
  color: #ffffff;
  line-height: 1.35;
}

#searchResults .result-item:hover {
  background: rgba(234, 170, 0, 0.88); /* golden hover background */
  color: #182D09;
}

#searchResults .result-item:hover small {
  color: #182D09;
}

#searchResults .no-results {
  padding: 10px 12px;
  color: #182D09;
  font-size: 14px;
}

/* Active / clicked item */
#searchResults .result-item:active {
  color: #006400;                     /* olive green on click */

}


/* =====================================================
   5. HERO SECTION (MAIN HOMEPAGE AREA)
   This controls:
   - Background images
   - Main headline
   - Button
   - Text positioning
   ===================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 0 50px;

  min-height: calc(130vh - 60px - 100px);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-image 1.5s ease-in-out;
  animation: kenBurnsZoom 15s ease-in-out infinite;
}

@keyframes kenBurnsZoom {
  0% {
    background-size: 100% 100%;
  }
  100% {
    background-size: 105% 105%;
  }
}



/* HERO PARAGRAPH TEXT */

.hero p {
  font-size: 1.2rem;
  margin: 15px 0;
  max-width: 600px;
}



/* HERO BUTTON */

.hero button {
  background-color: #EAAA00;
  color: #182D09;
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
}



/* =====================================================
   6. WORD CAROUSEL (HOMEPAGE TEXT ANIMATION)
   This controls the animated words that change
   on the homepage hero section
   ===================================================== */

.carousel-container {
  max-width: 100%;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 700;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.3em 0.4em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
}



/* EACH WORD */

.word {
  display: inline-block;
  margin-right: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(26px) scale(0.97);
  transform-origin: left bottom;
  transition:
    opacity 1.15s ease,
    filter 1.15s ease,
    transform 1.15s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, filter, transform;
  white-space: nowrap;
}



/* WORD APPEAR ANIMATION */

.word.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}



/* MAIN BRAND WORD (SHINE MASTERS) */

.word.highlight {
  color: #F28C00;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}



/* COMPLEMENT WORDS */

.word.complement {
  color: #006400;
  font-size: 0.90em;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(24, 45, 9, 0.42);
}

.word.complement:nth-child(3),
.word.complement:nth-child(4) {
  color: #006400;
}



/* =====================================================
   7. WEBSITE FOOTER
   This controls the entire footer section
   ===================================================== */

.footer {
  background-image: url("foot.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 15px 80px 5px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Footer Headings (keep golden yellow) */
.footer h3 {
  color: #EAAA00; /* Shine Masters official golden yellow */
  margin-bottom: 10px;
}

/* Footer Links & Text Under Headings */
.footer .footer-links,
.footer .footer-text {
  color: #ffffff; /* default white */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  line-height: 1.6;
}

/* Hover effect for links/text under headings */
.footer .footer-links:hover,
.footer .footer-text:hover {
  color: #EAAA00; /* shine masters golden yellow */
  text-decoration: underline;
}

/* =====================================================
 social meadia icons 
   ===================================================== */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Hover effect: grow slightly */
.social-icon:hover {
  transform: scale(1.2);
}

/* Official brand colors */
.social-icon.facebook { background-color: #1877F2; }
.social-icon.twitter { background-color: #1DA1F2; }
.social-icon.linkedin { background-color: #0A66C2; }
.social-icon.tiktok { background-color: #000000; }

/* =====================================================
   8. RESPONSIVE DESIGN
   These styles adjust the website for phones/tablets
   ===================================================== */

@media(max-width: 900px) {

  .social-bar {
    justify-content: center;
    padding: 8px 12px;
  }

  .contact-info {
    justify-content: center;
    gap: 10px 16px;
    font-size: 12px;
    text-align: center;
  }

  .main-nav {
    top: 42px;
    padding: 8px 16px;
    align-items: flex-start;
  }

  .navbar-logo {
    height: 72px;
  }

  .nav-toggle {
    display: flex;
    margin-top: 12px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .nav-right {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.32s ease, opacity 0.32s ease, transform 0.32s ease, padding 0.32s ease;
  }

  .main-nav.nav-open .nav-right {
    max-height: calc(100vh - 130px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 14px;
    overflow-y: auto;
  }

  .nav-right > * {
    min-height: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 4px;
    overflow: hidden;
  }

  .nav-menu > .nav-item > a {
    padding: 10px 8px;
  }

  .dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    overflow: hidden;
    box-shadow: none;
    border-radius: 8px;
    margin: 0 0 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: max-height 0.3s ease, background 0.3s ease;
  }

  .nav-item.dropdown-open .dropdown {
    max-height: 240px;
  }

  .dropdown a {
    padding: 9px 16px;
    font-size: 0.9rem;
  }

  .search-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .search-bar {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .search-bar input {
    min-width: 0;
  }

  #searchResults {
    left: 0;
    right: auto;
    width: 100%;
  }

  .hero {
    min-height: 100vh;
    padding-top: 140px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

}

@media(max-width: 768px) {

  .carousel-container {
    font-size: clamp(1.6rem, 8vw, 2.8rem);
    max-width: 100%;
    line-height: 1.15;
    flex-wrap: wrap;
    white-space: normal;
  }

}

@media(max-width: 500px) {

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 20px 18px 10px;
  }

  .hero {
    padding: 0 24px;
    padding-top: 130px;
    min-height: 100vh;
  }

  .word {
    transform: translateY(18px) scale(0.98);
  }

}
