/* ===================================================================
// File: style.css (AdWays Group Frontend)
// Version: 50.0 (DEFINITIVE GROUND-ZERO REBUILD)
// ================================================================ */
:root {
  --font-primary: 'Poppins', sans-serif;
  --color-primary: #1236FF;
  --color-secondary: #FF110B;
  --color-accent: #ffc107;
  --color-text: #212529;
  --color-text-inverse: #fff;
  --color-background-alt: #f8f9fa;
  --color-dark-bg: #212529;
  --header-height: 90px;
  --border-radius: 8px;
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-primary), sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--color-primary)
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem)
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem)
}

section {
  padding: 4rem 1.5rem
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem
}

.section-heading h1,
.section-heading h2 {
  color: var(--color-secondary)
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  margin: 1rem auto 0
}

#main-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height)
}

#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem
}

#logo-img {
  height: calc(var(--header-height) - 15px)
}

.navigation-menu {
  list-style: none;
  display: flex;
  gap: 1rem
}

.navigation-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none !important;
  border: 2px solid transparent
}

.navigation-menu a:hover {
  background: rgba(18, 54, 255, 0.05)
}

.navigation-menu a.active {
  border-color: var(--color-primary)
}

#hero-banner {
  background: linear-gradient(rgba(18, 54, 255, 0.85), rgba(18, 54, 255, 0.9)), url(../images/hero-bg.jpg) no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem
}

#hero-banner h1 {
  color: #fff !important
}

#hero-banner .section-heading h1::after {
  display: none
}

.hero-subtext {
  font-size: 1.35rem;
  max-width: 700px;
  margin: 1rem auto 2.5rem
}

.btn-accent {
  margin-top: 1.5rem;
  background: var(--color-accent);
  color: #333;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important
}

.btn-accent:hover {
  background: #ffca28;
  transform: translateY(-3px)
}

#about p {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: auto
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem
}

.service-item-link {
  text-decoration: none;
  color: inherit;
  display: flex
}

.service-item {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid #eee;
  text-align: center;
  width: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column
}

.service-item:hover {
  transform: translateY(-10px);
  background: #fdfcff
}

.service-item:hover h3 {
  color: var(--color-secondary)
}

.service-item .service-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem
}

.service-item p {
  flex-grow: 1
}

form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 2rem auto 0
}

fieldset {
  border: 1px solid #ddd;
  padding: 2rem;
  margin-bottom: 2rem
}

legend {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary)
}

.form-group {
  margin-bottom: 1.5rem
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  height: 50px
}

textarea.form-control {
  height: auto
}

.phone-input-wrapper {
  display: flex;
  height: 50px
}

.country-select {
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-right: none
}

.phone-input {
  border: 1px solid #ccc;
  flex-grow: 1
}

.checkbox-group div {
  margin-bottom: 1rem
}

.checkbox-group label {
  margin-left: 0.8rem
}

.custom-budget-input-wrapper {
  display: none;
  margin-top: 1.5rem
}

.btn-submit {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.9rem 3rem;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none
}

.form-submit-group {
  text-align: center
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: auto
}

.contact-info-item {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid #eee
}

.contact-info-item .icon {
  font-size: 3.5rem;
  color: var(--color-primary)
}

.contact-info-item h4 {
  font-size: 1.5rem;
  margin: 1rem 0
}

.contact-info-item p.contact-subtext {
  color: var(--color-secondary);
  font-weight: 500
}

#main-footer {
  background: var(--color-dark-bg);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center
}

.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: var(--color-primary);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition)
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible
}

.mobile-nav-toggle {
  display: none
}

@media(max-width:992px) {
  .navigation-menu {
    display: none
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 10000;
    background: 0 0;
    border: none;
    width: 2rem;
    height: 2rem;
    cursor: pointer
  }

  .hamburger-icon,
  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform .35s ease-out;
    left: 0
  }

  .hamburger-icon {
    top: 50%;
    transform: translateY(-50%)
  }

  .hamburger-icon::before {
    transform: translateY(-8px)
  }

  .hamburger-icon::after {
    transform: translateY(8px)
  }

  .mobile-nav-toggle[aria-expanded=true] .hamburger-icon {
    background: 0 0
  }

  .mobile-nav-toggle[aria-expanded=true] .hamburger-icon::before {
    transform: rotate(45deg);
    background: #fff
  }

  .mobile-nav-toggle[aria-expanded=true] .hamburger-icon::after {
    transform: rotate(-45deg);
    background: #fff
  }

  #primary-navigation {
    display: flex;
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    padding: min(20vh, 10rem) 2rem;
    background: hsla(223, 80%, 25%, .98);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform .35s ease-out;
    z-index: 9999;
    list-style: none;
    gap: 2rem;
    align-items: flex-start
  }

  #primary-navigation[data-visible=true] {
    transform: translateX(0%)
  }

  #primary-navigation a {
    color: #fff
  }
}

@media(min-width:768px) {
  .form-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem
  }

  .contact-info-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:767px) {
  #main-header {
    height: 80px
  }

  #logo-img {
    height: calc(var(--header-height) - 30px)
  }

  .services-grid,
  .contact-info-grid {
    grid-template-columns: 1fr
  }

  form {
    padding: 1.5rem 1rem
  }

  fieldset {
    padding: 1.5rem
  }
}