/* UrbanGrey professional system overrides (shared across core pages) */

:root {
  --bg-main: #f5f7fa;
  --bg-gradient: linear-gradient(135deg, #f8fbff 0%, #eaf1f8 100%);
  --text-main: #1f2a37;
  --text-secondary: #5f6b7a;
  --accent1: #2f80ed;
  --accent2: #1f5fbf;
  --footer-bg: linear-gradient(90deg, #eaf0f6 0%, #dfe7ef 100%);
  --footer-text: #4f5b6a;
  --header-bg: rgba(255, 255, 255, 0.96);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(47, 128, 237, 0.22);
  --ug-container-max: 1120px;
  --ug-space-xs: 0.5rem;
  --ug-space-sm: 0.9rem;
  --ug-space-md: 1.25rem;
  --ug-space-lg: 2rem;
  --ug-space-xl: 3rem;
  --ug-radius: 12px;
  --ug-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  --ug-shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.1);
}

body.light-theme {
  --bg-main: #ffffff;
  --bg-gradient: linear-gradient(135deg, #ffffff 0%, #edf3f9 100%);
  --text-main: #1f2a37;
  --text-secondary: #5f6b7a;
  --accent1: #2f80ed;
  --accent2: #1f5fbf;
  --footer-bg: linear-gradient(90deg, #edf3f9 0%, #e1e9f2 100%);
  --footer-text: #4f5b6a;
  --header-bg: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: rgba(47, 128, 237, 0.22);
}

html,
body {
  overflow-x: hidden;
}

body {
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 1200px) {
  .glassy-header,
  .sticky-header,
  header.glassy-header,
  header.sticky-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

h1,
h2,
h3 {
  letter-spacing: 0 !important;
}

.header-flex,
.footer-flex {
  max-width: var(--ug-container-max) !important;
}

.about-hero,
.hero-section {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.about-hero-title,
.hero-title,
.stylish-hero-title {
  font-weight: 800 !important;
}

.about-hero-sub,
.hero-subtitle,
.rotating-tagline {
  opacity: 0.95;
}

.about-stat,
.about-mvv-card,
.service-tile,
.project-card,
.core-value-card,
.counter-block,
.team-founder-card {
  border-radius: var(--ug-radius) !important;
  box-shadow: var(--ug-shadow-soft) !important;
  transform: none !important;
}

.about-mvv-card:hover,
.service-tile:hover,
.project-card:hover,
.core-value-card:hover,
.counter-block:hover,
.team-founder-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--ug-shadow) !important;
}

.project-overlay {
  border-radius: var(--ug-radius) !important;
}

.login-btn,
.hero-cta-btn,
.cta-btn-main,
.apply-btn,
.open-app-form button,
.project-filter {
  border-radius: 10px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.about-stats-row,
.about-mvv-row,
.core-values-row,
.service-tiles,
.projects-row {
  width: 100%;
  max-width: var(--ug-container-max);
  margin-left: auto !important;
  margin-right: auto !important;
}

.project-card {
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.project-card img {
  width: 100% !important;
  height: 220px !important;
  left: 0 !important;
}

/* Keep floating buttons from blocking content */
.back-to-top-btn {
  right: 20px !important;
}

.faq-button {
  right: 20px !important;
}

.whatsapp-fab {
  right: 20px !important;
}

/* Mobile-first refinement */
@media (max-width: 900px) {
  .glassy-header,
  .sticky-header {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
  }

  .header-flex {
    padding: 0.7rem 1rem !important;
    gap: 0.6rem !important;
  }

  .logo img {
    height: 32px !important;
    margin: 0 !important;
  }

  .main-nav {
    width: 100% !important;
  }

  .main-nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.25rem !important;
    margin-top: 0.35rem !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .main-nav .nav-link {
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .theme-toggle {
    margin-left: auto !important;
  }

  .login-btn {
    width: 100% !important;
    justify-content: center !important;
    margin: 0.35rem 0 0 0 !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.88rem !important;
  }

  .about-hero,
  .hero-section {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 2rem !important;
  }

  .about-hero-title,
  .hero-title,
  .stylish-hero-title {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }

  .about-hero-sub,
  .hero-subtitle,
  .rotating-tagline {
    font-size: 1rem !important;
  }

  .about-stats-section,
  .about-mvv-section,
  .core-values-section,
  .featured-projects-section,
  .client-slider-section {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
  }

  .about-stats-row,
  .about-mvv-row,
  .core-values-row,
  .service-tiles,
  .projects-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    padding: 0 1rem !important;
  }

  .about-stat,
  .about-mvv-card,
  .service-tile,
  .project-card,
  .core-value-card,
  .counter-block,
  .team-founder-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .project-card img {
    height: 200px !important;
  }

  .footer-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 0 1rem !important;
  }

  .footer-links {
    justify-content: center !important;
    gap: 0.9rem !important;
  }

  .footer-social-icons {
    position: static !important;
    padding: 0 !important;
  }
}

@media (max-width: 520px) {
  .about-hero-title,
  .hero-title,
  .stylish-hero-title {
    font-size: 1.55rem !important;
  }

  .project-card img {
    height: 180px !important;
  }

  .faq-button {
    bottom: 76px !important;
  }

  .back-to-top-btn {
    bottom: 126px !important;
  }
}
