/* Arizona Computer Guru - Static Site v1.0 */
/* Clean, optimized CSS */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --color-dark: #333d49;
  --color-orange: #fe7400;
  --color-navy: #113559;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #4d4d4d;
  --color-light-gray: #f5f5f5;

  --font-main: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-height: 4.5rem;
  --header-height-scrolled: 2.25rem;
  --above-header-height: 1.5rem;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: var(--font-main);
  background: url('../images/guru-site-bg.png') top center fixed;
  background-size: cover;
  padding-top: calc(var(--above-header-height) + var(--header-height));
  color: var(--color-dark);
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

/* ============================================
   Layout
   ============================================ */
.wrapper {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   Above Header (Top Bar)
   ============================================ */
.above-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--above-header-height);
  background: linear-gradient(0deg, #dbdbdb 0%, #fff 100%);
  z-index: 1000;
  font-size: 0.75rem;
  font-weight: 300;
}

.above-header .wrapper {
  height: 100%;
}

.above-header__left {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.above-header__left a {
  color: var(--color-orange);
  font-weight: 500;
}

.above-header__right {
  font-style: italic;
  color: #585858;
}

/* Version Tag (temporary - remove before launch) */
.above-header::before {
  content: 'v1.2';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-orange);
  background: rgba(254, 116, 0, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  top: var(--above-header-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 2px solid var(--color-orange);
  z-index: 999;
  transition: height var(--transition-normal);
}

header.scrolled {
  height: var(--header-height-scrolled);
}

header .wrapper {
  height: 100%;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  height: 70%;
  width: auto;
  transition: height var(--transition-normal);
}

header.scrolled .logo {
  height: 80%;
}

/* ============================================
   Navigation
   ============================================ */
.primary-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.nav-menu > li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition-fast), color var(--transition-fast), font-size var(--transition-normal), padding var(--transition-normal);
}

header.scrolled .nav-menu > li > a {
  padding: 0 0.625rem;
  font-size: 0.75rem;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--color-orange);
  color: var(--color-white);
}

/* CTA Button (last menu item) */
.nav-menu > li:last-child > a {
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 4px;
  margin-left: 0.5rem;
  padding: 0 1rem;
}

header.scrolled .nav-menu > li:last-child > a {
  padding: 0 0.75rem;
}

.nav-menu > li:last-child > a:hover {
  background: var(--color-navy);
}

/* ============================================
   Mega Menu Dropdown
   ============================================ */
.nav-menu > li.has-dropdown {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: calc(var(--above-header-height) + var(--header-height));
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 3px solid var(--color-orange);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 2.5rem 10%;

  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

header.scrolled .mega-menu {
  top: calc(var(--above-header-height) + var(--header-height-scrolled));
}

.nav-menu > li.has-dropdown.menu-open .mega-menu,
.nav-menu > li.has-dropdown:hover .mega-menu {
  display: flex;
  justify-content: center;
  gap: 4rem;
  opacity: 1;
  visibility: visible;
}

/* Mega Menu Columns */
.mega-menu__column {
  min-width: 280px;
  max-width: 320px;
}

.mega-menu__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid var(--color-orange);
}

.mega-menu__items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.mega-menu__item:hover {
  background: var(--color-light-gray);
}

.mega-menu__item i {
  color: var(--color-orange);
  font-size: 1.25rem;
  width: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mega-menu__item-content {
  display: flex;
  flex-direction: column;
}

.mega-menu__item-title {
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.9375rem;
}

.mega-menu__item-desc {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

/* ============================================
   Menu Overlay
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  pointer-events: none;
}

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

/* ============================================
   Hero / Feature Section
   ============================================ */
.hero {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-orange);
}

.hero .wrapper {
  display: flex;
  min-height: 500px;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 4rem 5%;
}

.hero__tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-navy);
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.hero__cta:hover {
  background: var(--color-navy);
}

.hero__image {
  flex: 1.5;
  background: url('../images/fp-gurucube.png') center center no-repeat;
  background-size: cover;
}

/* ============================================
   Service Cards
   ============================================ */
.service-cards {
  padding: 4rem 0;
}

.service-cards .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 2rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-card__text {
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.service-card__link {
  font-weight: 500;
  font-size: 1.125rem;
  align-self: flex-start;
  transition: color var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-navy);
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
  background: rgba(255,255,255,0.95);
  padding: 5rem 0;
}

.content-section--dark {
  background: rgba(21, 25, 28, 0.92);
  color: var(--color-white);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section h4 {
  color: var(--color-orange);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__section a {
  display: block;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer__section a:hover {
  color: var(--color-orange);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: #888;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.back-to-top img {
  width: 60px;
  height: auto;
  transition: transform var(--transition-fast);
}

.back-to-top:hover img {
  transform: scale(1.1);
}

/* Social Float */
.social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.social-float ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.25rem;
}

.social-float img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.social-float a:hover img {
  transform: scale(1.2);
}

/* ============================================
   Mobile Menu Icon
   ============================================ */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-icon .line {
  width: 25px;
  height: 3px;
  background: var(--color-dark);
  margin: 3px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
    --header-height-scrolled: 4rem;
  }

  body {
    padding-bottom: 60px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
  }

  .hero .wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .hero__content {
    padding: 3rem 0;
    text-align: center;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__image {
    min-height: 300px;
  }

  .social-float {
    display: none;
  }
}
