/* ==========================================================================
   Gurock Equipments — Header & Footer Styles
   Premium industrial black-and-gold identity
   ========================================================================== */

:root {
  --color-black: #111111;
  --color-gold: #C9972B;
  --color-gold-light: #E4B856;
  --color-gold-dark: #A87A1E;
  --color-white: #FFFFFF;
  --color-text: #222222;
  --color-border: #ECECEC;
  --color-muted: #6B6B6B;

  --header-height-desktop: 86px;
  --header-height-mobile: 70px;

  --font-family: 'Poppins', 'Manrope', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 10px 30px -12px rgba(17, 17, 17, 0.18);
  --shadow-menu: 0 24px 48px -16px rgba(17, 17, 17, 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height-desktop);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-soft);
  border-bottom-color: var(--color-border);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.35s var(--ease);
  will-change: transform;
}

.logo-link:hover .logo-img,
.logo-link:focus-visible .logo-img {
  transform: scale(1.06);
}

/* Primary Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-black);
  padding: 10px 2px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gold-dark);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-gold-dark);
}

.chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease);
}

.nav-item-dropdown[data-open="true"] .chevron {
  transform: rotate(180deg);
}

/* CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-black);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  box-shadow: 0 8px 20px -6px rgba(201, 151, 43, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 26px -6px rgba(201, 151, 43, 0.7);
  filter: brightness(1.03);
}

.cta-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.cta-button:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   CHILD DROPDOWN MENU (Products)
   ========================================================================== */

.nav-item-dropdown {
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  color: var(--color-black);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 0;
  min-width: 300px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--shadow-menu);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  pointer-events: none;
  z-index: 1001;
}

.nav-item-dropdown[data-open="true"] .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--color-black);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.dropdown-link .icon-left {
  width: 19px;
  height: 19px;
  stroke: var(--color-gold);
  flex-shrink: 0;
}

.dropdown-link .label {
  flex: 1;
  text-align: left;
}

.dropdown-link .chevron-right {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--color-muted);
  transition: transform 0.25s var(--ease), stroke 0.25s var(--ease);
}

.dropdown-link:hover,
.dropdown-link:focus-visible,
.dropdown-item[data-submenu-open="true"] > .dropdown-link {
  background: #FAF6EC;
  color: var(--color-gold-dark);
}

.dropdown-item[data-submenu-open="true"] > .dropdown-link .chevron-right {
  transform: rotate(90deg);
  stroke: var(--color-gold-dark);
}

/* Flyout submenu (child of child) */
.submenu {
  position: absolute;
  top: -10px;
  left: calc(100% + 10px);
  min-width: 280px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--shadow-menu);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  pointer-events: none;
  z-index: 1002;
}

.dropdown-item[data-submenu-open="true"] > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.submenu a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: var(--color-gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.submenu a:hover,
.submenu a:focus-visible {
  color: var(--color-gold-dark);
  background: #FAF6EC;
  padding-left: 17px;
}

.submenu a:hover svg,
.submenu a:focus-visible svg {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile: nested accordion (category inside Products) */
.mobile-subaccordion > .mobile-subaccordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

.mobile-subaccordion .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease);
}

.mobile-subaccordion[data-open="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-subaccordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.mobile-subaccordion-panel.is-open {
  max-height: 500px;
}

.mobile-subaccordion-panel a {
  display: block;
  padding: 9px 6px 9px 16px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: 6px;
}

.mobile-subaccordion-panel a:hover,
.mobile-subaccordion-panel a:focus-visible {
  color: var(--color-gold-dark);
  background: #FAF6EC;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 1100;
}

.mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--color-white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  padding: 24px 24px 40px;
  box-shadow: -18px 0 40px -20px rgba(17, 17, 17, 0.3);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F5F5F5;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
}

.mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.mobile-accordion-panel.is-open {
  max-height: 900px;
}

.mobile-accordion-group {
  padding: 6px 4px 18px 4px;
}

.mobile-accordion-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-gold);
  margin: 14px 0 8px;
}

.mobile-accordion-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-accordion-group a {
  display: block;
  padding: 9px 6px;
  font-size: 14.5px;
  color: var(--color-text);
  border-radius: 6px;
}

.mobile-accordion-group a:hover,
.mobile-accordion-group a:focus-visible {
  color: var(--color-gold-dark);
  background: #FAF6EC;
}

.mobile-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-black);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .main-nav,
  .cta-button {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-container {
    padding: 0 20px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    height: var(--header-height-mobile);
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }
}

/* Focus visibility (accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-black);
  color: #D9D9D9;
  padding: 72px 32px 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-img {
  height: 44px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #B5B5B5;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
}

.footer-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-gold);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: #C9C9C9;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-gold-light);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #C9C9C9;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  stroke: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-map-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-gold);
}

.footer-map-btn:hover,
.footer-map-btn:focus-visible {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

.footer-map-btn:hover svg,
.footer-map-btn:focus-visible svg {
  stroke: var(--color-black);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 13px;
  color: #8C8C8C;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #8C8C8C;
  transition: color 0.25s var(--ease);
}

.footer-bottom-links a:hover {
  color: var(--color-gold-light);
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   SHARED UTILITIES — used across inner pages (about, product, gallery,
   contact) as well as the homepage. Kept here so any page can link just
   style.css + its own page.css without pulling in homepage-only CSS.
   ========================================================================== */

:root {
  --bg-light: #F8F8F8;
  --section-pad: 100px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-gold-dark);
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.section-heading {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  margin: 0 0 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 620px;
}

.section-head-center {
  text-align: center;
  margin: 0 auto 56px;
}

.section-head-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons shared across all pages */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-gold {
  color: var(--color-black);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  box-shadow: 0 10px 24px -8px rgba(201, 151, 43, 0.55);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(201, 151, 43, 0.7);
}

.btn-outline {
  color: var(--color-white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

.btn-outline-dark {
  color: var(--color-black);
  background: transparent;
  border: 1.5px solid rgba(17, 17, 17, 0.25);
}

.btn-outline-dark:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  transform: translateY(-3px);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Scroll-reveal animation utility classes */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}

[data-reveal="up"] { transform: translateY(36px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(0.92); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PAGE HERO — small banner used at the top of inner pages (About, Products,
   Gallery, Contact) with breadcrumb + title.
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--color-black);
  padding: 180px 0 90px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(201, 151, 43, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201, 151, 43, 0.1), transparent 40%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s var(--ease);
}

.page-breadcrumb a:hover {
  color: var(--color-gold);
}

.page-breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, 0.4);
}

.page-breadcrumb .current {
  color: var(--color-gold);
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.15;
}

.page-hero-sub {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
  margin: 16px 0 0;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .page-hero {
    padding: 150px 0 64px;
  }
}
