/* ============================================================
   HOME PAGE STYLES — PhoneDoc ATL
   ============================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1a1a 0%, #111111 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.18) 0%, transparent 70%);
  animation: hero-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.35); opacity: 0.4; }
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: calc(var(--nav-height) + 16px);
  padding-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 68px);
  color: #fff;
  line-height: 1.05;
  max-width: 860px;
  margin: 0 auto 10px;
  letter-spacing: 1px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.hero__device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 16px;
}

.device-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-card);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.device-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 22px rgba(229,57,53,0.28);
  transform: translateY(-3px);
}

.device-card__icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.device-card__icon-img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.device-card__name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.device-card__name--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.hero__cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Value Props ---- */
.value-props {
  background: var(--color-light-gray);
  padding: var(--space-10) 0;
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}

.value-prop__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.value-prop__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.value-prop__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ---- Quick Links ---- */
.quick-links {
  padding: var(--space-6) 0;
  text-align: center;
}

.quick-links .section-heading {
  margin-bottom: 48px;
}

.quick-links__row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---- Quick Link Card (image + label) ---- */
.quick-link-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.2s, color 0.2s;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  color: var(--color-primary);
}

.quick-link-card__img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-link-card:hover .quick-link-card__img {
  border-color: var(--color-primary);
  box-shadow: 0 0 18px rgba(229, 57, 53, 0.25);
}

/* ---- Gallery ---- */
.gallery-section {
  padding: var(--space-10) 0;
  background: #fff;
}

.gallery-section .section-heading {
  margin-bottom: 28px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-light-gray);
}

.gallery-track::-webkit-scrollbar { height: 4px; }
.gallery-track::-webkit-scrollbar-track { background: var(--color-light-gray); }
.gallery-track::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 2px; }

.gallery-track img {
  width: 300px;
  height: 210px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.gallery-track img:hover { transform: scale(1.03); }

.gallery-track .skeleton--image {
  width: 300px;
  height: 210px;
  flex-shrink: 0;
  border-radius: 8px;
}

.video-embed {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
}

.video-placeholder .play-icon { font-size: 52px; opacity: 0.6; }

/* ---- Reviews ---- */
.reviews-section {
  background: var(--color-dark-bg);
  padding: var(--space-10) 0;
}

.reviews-section__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.reviews-section__sub {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  margin-bottom: 48px;
}

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

.review-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-card);
  padding: 24px;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.review-card__stars {
  color: var(--color-star);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.review-card__text {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-card__text::before { content: '"'; }
.review-card__text::after  { content: '"'; }

.review-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-label);
  letter-spacing: 0.5px;
}

.review-card__date {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-label);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.review-card--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 1.5px dashed rgba(255,255,255,0.15);
  background: transparent;
  gap: 10px;
  min-height: 160px;
}

.review-card--more:hover {
  border-color: var(--color-primary);
  background: rgba(229,57,53,0.05);
}

.review-card__more-icon {
  font-size: 28px;
  color: var(--color-star);
  letter-spacing: 4px;
}

.review-card__more-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-style: normal;
  margin: 0;
  max-width: none;
}

.review-card__more-text::before,
.review-card__more-text::after { content: ''; }

.review-card__more-cta {
  font-size: 12px;
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---- FAQ ---- */
.faq-section {
  padding: var(--space-10) 0;
  background: #fff;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.faq-section .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--color-text-secondary);
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-item.is-open .faq-question { color: var(--color-primary); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  padding: 0;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---- Blog Preview ---- */
.blog-preview-section {
  padding: var(--space-8) 0;
  background: var(--color-light-gray);
  text-align: center;
}

/* ---- Contact ---- */
.contact-section {
  background: linear-gradient(135deg, #6B1414 0%, #8B2020 100%);
  padding: var(--space-10) 0;
}

.contact-section__top {
  text-align: center;
  margin-bottom: 48px;
}

.contact-section__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: #fff;
  margin-bottom: 10px;
}

.contact-section__sub {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* Three-column layout: location | form | map */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 32px;
  align-items: stretch;
}

.contact-col-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: #fff;
  margin-bottom: 20px;
}

/* Each column is a flex column so they stretch to equal height */
.contact-info-col,
.contact-form-col,
.contact-map-col {
  display: flex;
  flex-direction: column;
}

/* ── Info blocks ── */
.contact-info-col .contact-col-heading { flex-shrink: 0; }

.contact-info-blocks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
}

.contact-info-block__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 2px;
}

.contact-info-block__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-info-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.contact-info-block__value {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

a.contact-info-block__link {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s ease;
}

a.contact-info-block__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hours table ── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.hours-table td {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 3px 0;
}

.hours-table td:last-child { text-align: right; }

.hours-closed { color: rgba(255,255,255,0.4) !important; }

/* ── Contact form ── */
.contact-form-col .contact-col-heading { flex-shrink: 0; }

.contact-form-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form-card .form-group:last-of-type textarea {
  flex: 1;
  min-height: 80px;
  resize: none;
}

.contact-form-card .form-input,
.contact-form-card .form-textarea {
  background: var(--color-light-gray);
  border-color: transparent;
}

.contact-form-card .form-input:focus,
.contact-form-card .form-textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* ── Map ── */
.contact-map-col {
  gap: 14px;
}

.contact-map-wrap {
  flex: 1;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.12);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #8B2020;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.contact-directions-btn:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__device-grid { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .contact-map-col { grid-column: 1 / -1; }
  .contact-map-wrap { flex: none; aspect-ratio: 16 / 7; min-height: unset; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    min-height: 100vh; /* fallback */
    overflow: hidden;
  }
  .hero__video {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    min-width: unset;
    min-height: unset;
    object-fit: cover;
  }
  .hero__device-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    gap: 10px;
  }
  .device-card {
    min-height: 90px;
    padding: 10px 8px 8px;
  }
  .device-card__icon-img {
    width: 58px;
    height: 58px;
  }
  .value-props__grid { grid-template-columns: 1fr; gap: 28px; }
  .quick-links__row { gap: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; align-items: start; }
  .contact-map-col { grid-column: auto; }
  .contact-map-wrap { flex: none; aspect-ratio: 16 / 9; min-height: unset; }
  .contact-directions-btn { width: 100%; }
  .contact-form-card { flex: none; padding: 20px; }
}
