/*
Theme Name: Wireless Trendz
Theme URI: https://example.com/
Author: Wireless Trendz
Description: Lightweight custom WordPress theme for Wireless Trendz phone repair.
Version: 1.0
*/

/* ==========================================
   1. CSS VARIABLES & BASE RESETS
   ========================================== */
:root {
  --navy: #071b33;
  --navy2: #0b2949;
  --blue: #1477ff;
  --cyan: #10d9e8;
  --ink: #10243e;
  --muted: #5f7187;
  --bg: #f4f9fc;
  --white: #fff;
  --line: #dbe8f2;
  --shadow: 0 18px 45px rgba(7, 27, 51, .10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ==========================================
   2. BUTTONS & UTILITIES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--blue);
  box-shadow: 0 8px 20px rgba(20, 119, 255, .22);
  transition: .2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  box-shadow: none;
}

.btn-phone {
  background: var(--navy) !important;
  border-color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(7, 27, 51, 0.15) !important;
}

.eyebrow {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.field-hidden {
  display: none !important;
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 27, 51, .97);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: .3px;
}

.brand-mark {
  width: 30px;
  height: 38px;
  border: 3px solid var(--cyan);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 12px;
}

.brand small {
  display: block;
  font-size: 11px;
  color: #b8c9dc;
  font-weight: 600;
  margin-top: -4px;
}

.menu {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.menu a:hover {
  color: var(--cyan);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Call Dropdown */
.header-call-dropdown-wrap {
  position: relative;
}

.header-call-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 8px;
  z-index: 300;
}

.header-call-menu.is-open {
  display: block;
}

.header-call-menu .call-option {
  display: block;
  padding: 10px 14px;
  color: var(--white);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.header-call-menu .call-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-call-menu .call-option strong {
  display: block;
  font-size: 13px;
  color: var(--cyan);
}

.header-call-menu .call-option span {
  font-size: 14px;
  font-weight: 700;
}

/* Nav Dropdown Menu */
.menu-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.dropdown-toggle .arrow {
  font-size: 11px;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 8px;
  z-index: 250;
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 14px !important;
  color: var(--white) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left !important;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--cyan) !important;
}

@media(min-width: 901px) {
  .menu-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease forwards;
  }

  .menu-item-dropdown:hover .arrow {
    transform: rotate(180deg);
  }
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0 !important;
  z-index: 200;
  margin-left: 10px;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white) !important;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   4. HERO SECTIONS
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: #06172d;
  background-image: url('images/phone-repair-hero.webp');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #06172d 0%, #06172d 42%, rgba(6, 23, 45, 0.75) 65%, rgba(6, 23, 45, 0.1) 100%);
  z-index: 1;
}

.hero-inner {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 1.02;
  margin: 12px 0 22px;
  letter-spacing: -2.5px;
}

.hero h1 span {
  color: var(--cyan);
}

.hero p {
  font-size: 18px;
  color: #d6e4f2;
  max-width: 650px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Location Heroes
.location-hero-knoxville {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: #06172d;
  background-image: url('images/phone-repair-hero.png');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.location-hero-chattanooga {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: #06172d;
  background-image: url('images/chattanooga-banner.png');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
} */

.location-hero-knoxville,
.location-hero-chattanooga {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: #06172d;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.location-hero-knoxville::before,
.location-hero-chattanooga::before,
.location-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #06172d 0%, #06172d 42%, rgba(6, 23, 45, 0.75) 65%, rgba(6, 23, 45, 0.2) 100%);
  z-index: 1;
}

.location-hero {
  min-height: 470px;
  display: flex;
  align-items: end;
  background: linear-gradient(90deg, rgba(4, 24, 44, .92), rgba(4, 24, 44, .35)), linear-gradient(135deg, #0b4f79, #12b6ce);
  color: var(--white);
  position: relative;
}

.location-hero-inner {
  padding: 75px 0;
  position: relative;
  z-index: 2;
}

.location-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.02;
  max-width: 800px;
  margin: 12px 0;
}

/* ==========================================
   5. SECTIONS, CARDS & GRIDS
   ========================================== */
.trustbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}

.section {
  padding: 78px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.location-card-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.location-body {
  padding: 25px;
}

.location-body h3 {
  margin: 0 0 7px;
  font-size: 25px;
}

.location-body p {
  color: var(--muted);
  margin: 0;
}

.location-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: .2s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-header .icon {
  margin-bottom: 0 !important;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-size: 22px;
  background: linear-gradient(135deg, #eaf4ff 0%, #d8eaff 100%);
  box-shadow: 0 4px 12px rgba(20, 119, 255, 0.12);
}

.service:hover .icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(20, 119, 255, 0.3);
}

.service-header h3 {
  margin: 0 !important;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
}

.service p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Dark Section & Benefits */
.dark-section {
  background: var(--navy);
  color: var(--white);
}

.dark-section .section-head p {
  color: #b8c9dc;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}

.benefit h3 {
  font-size: 17px;
  margin: 12px 0 5px;
}

.benefit p {
  color: #b8c9dc;
  font-size: 14px;
  margin: 0;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Location Top Info & Media Grids */
.location-top-info {
  width: 100%;
  margin-bottom: 25px;
}

.info-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.info-box {
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

.location-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
}

.map-container {
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 270px;
}

.store-photo-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 270px;
}

.store-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   6. QUOTE CALCULATOR & WIZARD STYLES
   ========================================== */
.native-calc-card {
  background: var(--white);
  color: var(--ink);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.native-calc-card select,
.native-calc-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
}

.native-calc-card select:focus,
.native-calc-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 119, 255, 0.15);
}

.brand-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.brand-icon-box {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.brand-icon-box:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  background: var(--white);
}

.brand-icon-box.active-brand {
  border-color: var(--blue);
  background: #eaf4ff;
  box-shadow: 0 8px 20px rgba(20, 119, 255, 0.1);
}

.brand-logo-fallback {
  font-size: 28px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.brand-icon-box.active-brand .brand-logo-fallback {
  color: var(--blue);
}

.brand-icon-box p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.calc-step {
  margin-bottom: 25px;
}

.input-row label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ==========================================
   7. CTA & FOOTER
   ========================================== */
.cta {
  padding: 70px 0;
  background: linear-gradient(110deg, #0a335a, #0b7da8);
  color: var(--white);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.cta p {
  margin: 0;
  color: #d5e8f5;
}

.footer {
  background: #06172d;
  color: var(--white);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  margin-top: 0;
}

.footer p,
.footer a {
  color: #aebfd1;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 35px;
  padding-top: 18px;
  font-size: 13px;
  color: #8fa4ba;
}

/* ==========================================
   8. RESPONSIVE MEDIA BREAKPOINTS
   ========================================== */
@media(max-width: 900px) {

  .nav {
      gap: 8px;
      min-height: 70px;
      padding: 0 12px;
    }
  
  .header-cta-group {
      gap: 6px;
    }
  
  .header-cta-group .btn,
  .header-cta-group .btn-phone {
      padding: 8px 10px !important;
      font-size: 11px !important;
      border-radius: 8px !important;
    }

  .menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    order: 2;
  }

  .menu,
  .nav-menu-wrapper .menu {
    display: flex !important;
    position: fixed !important;
    top: 76px;
    left: 100%;
    width: 100% !important;
    height: calc(100vh - 76px) !important;
    background: rgba(7, 27, 51, 0.98) !important;
    backdrop-filter: blur(10px);
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 30px 20px 60px !important;
    gap: 12px !important;
    font-size: 18px !important;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0) !important;
    z-index: 150;
    margin: 0 !important;
    overflow-y: auto !important;
  }

  .menu.is-open {
    left: 0 !important;
  }

  .menu>a,
  .menu-item-dropdown {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--white) !important;
  }

  .menu-item-dropdown {
    height: auto !important;
    display: block !important;
    width: 100% !important;
    position: relative;
  }

  .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-top: 10px;
    display: none;
  }

  .menu-item-dropdown.is-open .dropdown-menu {
    display: block !important;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 70px 0;
  }

  .trust-grid,
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations {
    grid-template-columns: 1fr;
  }

  .location-info {
    grid-template-columns: 1fr !important;
    margin-top: -30px !important;
    padding: 0 15px;
  }

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

  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
    gap: 25px !important;
  }

  .location-media-grid {
    grid-template-columns: 1fr;
  }

  .btn-phone {
    display: inline-flex !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

@media(max-width: 700px) {
  .brand-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .info-card {
    padding: 20px !important;
  }

  .map-container {
    min-height: 320px !important;
    width: 100% !important;
  }

  .trust-grid,
  .benefits,
  .services,
  .locations,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 55px 0;
  }

  .cta-box {
    display: block;
  }

  .cta .btn {
    margin-top: 20px;
  }

  .native-calc-card {
    padding: 20px;
  }
}

@media(max-width: 480px) {
  .brand-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.device-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.device-type-box {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.device-type-box .icon {
  margin-bottom: 8px;
  width: 40px;
  height: 40px;
  background: #eaf4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.device-type-box:hover,
.device-type-box.active {
  border-color: var(--blue);
  background: #eaf4ff;
}

.device-type-box.active .icon {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 600px) {
  .device-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}