/* ═══════════════════════════════════════════════════════
   HI-TECH COMMUNICATION — styles.css
   Palette: Red #D72638 · Black #111 · White #FAFAFA
   Accent:  Gold #F5A623
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --red:    #D72638;
  --red-dk: #a81c2a;
  --black:  #111111;
  --dark:   #1a1a1a;
  --mid:    #2e2e2e;
  --gray:   #6b6b6b;
  --light:  #f4f4f4;
  --white:  #ffffff;
  --gold:   #F5A623;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(215,38,56,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Navbar ──────────────────────────────────────────── */
.ht-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.ht-nav .brand-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.ht-nav .brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ht-nav .brand span { color: var(--red); }

.ht-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.ht-nav ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.ht-nav ul li a:hover,
.ht-nav ul li a.active {
  color: var(--white);
  background: rgba(215,38,56,0.15);
}

.ht-nav ul li a

.ht-nav ul li a.nav-cta:hover {
  background: var(--red-dk);
}

/* Hamburger (mobile) */
.ht-nav .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ht-nav .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero / Masthead ─────────────────────────────────── */
.masthead {
  padding-top: 64px; /* navbar height */
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(215,38,56,0.12) 0%, transparent 70%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}

.masthead .masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.masthead .kicker {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.masthead h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.masthead h1 .accent { color: var(--red); }

.masthead p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-phone {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  opacity: .9;
  pointer-events: none;
}

.masthead-sub {
  padding-top: 64px;
  padding-bottom: 5rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
}

.masthead-sub h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.masthead-sub p {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-ht {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s;
}

.btn-ht-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-ht-primary:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-ht-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ht-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

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

/* ── Sections ────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-header p { color: var(--gray); font-size: 1.05rem; margin-top: 0.5rem; max-width: 520px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0.5rem auto 0; }

/* ── Services ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--light);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.2s;
}

.service-card:hover { background: #fdf1f2; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(215,38,56,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.service-icon svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 2; }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-card p { color: var(--gray); font-size: 0.92rem; }

/* ── Phone Cards ─────────────────────────────────────── */
.phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.phone-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}

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

.phone-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 0.75rem;
}

.phone-card-body {
  padding: 1.25rem;
}

.phone-card-body h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.phone-card-meta { color: var(--gray); font-size: 0.83rem; margin-bottom: 0.75rem; }

.condition-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  background: var(--light);
  color: var(--gray);
}

.phone-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
}

.phone-pickup {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* ── Testimonials ────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-size: 0.97rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

/* ── Forms ───────────────────────────────────────────── */
.ht-form { max-width: 680px; margin: 0 auto; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.full { grid-template-columns: 1fr; }

.ht-input, .ht-select, .ht-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.ht-input:focus, .ht-select:focus, .ht-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215,38,56,0.1);
}

.ht-textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 1rem;
  text-align: center;
}

/* ── Divider ─────────────────────────────────────────── */
.red-bar {
  height: 4px;
  background: var(--red);
  width: 48px;
  border-radius: 2px;
  margin-top: 1rem;
}

.red-bar.center { margin: 1rem auto 0; }

/* ── Trust strip ─────────────────────────────────────── */
.trust-strip {
  background: var(--red);
  padding: 1.1rem 0;
  overflow: hidden;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-item svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 2.5; }

/* ── Alert / success ─────────────────────────────────── */
.ht-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: none;
}
.ht-alert.success { background: #edfbf0; border: 1px solid #7dcd8f; color: #1d6630; }
.ht-alert.error   { background: #fdedef; border: 1px solid #e9a0a7; color: #8b1c29; }
.ht-alert.show    { display: block; }

/* ── Loading spinner ─────────────────────────────────── */
.spinner {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}
.spinner::after {
  content: '';
  width: 36px; height: 36px;
  border: 3px solid var(--light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}
.empty-state h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ── Filter bar ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid #ddd;
  border-radius: 99px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s;
  color: var(--gray);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ── Footer ──────────────────────────────────────────── */
.ht-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--red); }

.footer-desc { font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Hero buttons ────────────────────────────────────── */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Find Us grid ────────────────────────────────────── */
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Mobile nav ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .ht-nav { padding: 0 1.25rem; }
  .ht-nav .hamburger { display: flex; }
  .ht-nav ul {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--mid);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .ht-nav ul.open { display: flex; }
  .ht-nav ul li { width: 100%; }
  .ht-nav ul li a {
    display: block;
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .ht-nav ul li a.nav-cta {
    margin: 0.75rem 1.5rem 0;
    border-radius: var(--radius);
    text-align: center;
    border-bottom: none;
  }

  /* Hero */
  .hero-phone { display: none; }
  .masthead { min-height: 100svh; text-align: center; }
  .masthead-inner { padding: 0 1.25rem; }
  .masthead h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .masthead p { margin: 0 auto 2rem; }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn-ht { width: 100%; max-width: 320px; text-align: center; }
  .kicker { margin: 0 auto 1.5rem; }

  /* Sections */
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-items { gap: 1.25rem; justify-content: flex-start; padding: 0 1rem; }
  .trust-item { font-size: 0.82rem; }

  /* Find Us */
  .find-us-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Phones grid */
  .phones-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .phones-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}