/* ==========================================================================
   Taher Mobile Shop - Premium Design System & Responsive Styles
   Mobile-first, high performance, Google Ads compliant
   ========================================================================== */

/* Design Tokens & CSS Custom Properties */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-focus: #0284c7;

  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-primary: #0f172a;
  --color-primary-hover: #1e293b;
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;

  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20ba5a;
  --color-whatsapp-dark: #128C7E;

  --color-badge-a-bg: #ecfdf5;
  --color-badge-a-text: #065f46;
  --color-badge-b-bg: #eff6ff;
  --color-badge-b-text: #1e40af;
  --color-badge-c-bg: #fefce8;
  --color-badge-c-text: #854d0e;
  --color-badge-new-bg: #f5f3ff;
  --color-badge-new-text: #5b21b6;
  --color-badge-sold-bg: #f1f5f9;
  --color-badge-sold-text: #64748b;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --header-height: 68px;
  --mobile-bar-height: 64px;
}

/* Reset & Base Elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: var(--mobile-bar-height); /* Offset for bottom action bar on mobile */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  min-height: 44px; /* Accessible minimum touch target */
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background-color: var(--color-surface-hover);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
}

.btn-whatsapp-card {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  width: 100%;
}
.btn-whatsapp-card:hover {
  background-color: var(--color-whatsapp-hover);
}

.btn-card-sold {
  background-color: var(--color-surface-hover);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  width: 100%;
}
.btn-card-sold:hover {
  background-color: #e2e8f0;
}

/* Header & Sticky Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s ease;
  }

  .nav-link:hover {
    color: var(--color-text-main);
  }
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  /* On small screens, keep WhatsApp and hide Call in top bar (already in sticky bottom bar) */
  .header-ctas .btn-secondary {
    display: none;
  }

  .header-btn {
    padding: 0.42rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-height);
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-btn {
  flex: 1;
  font-size: 0.95rem;
  padding: 0.5rem;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2.5rem;
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 60%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-content {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .trust-strip {
    justify-content: flex-start;
  }
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: #0f172a;
}

.hero-photo-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-photo-tag strong {
  color: #38bdf8;
}

/* Real Shop Gallery */
.shop-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .shop-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem 1.15rem;
}

.gallery-caption h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.gallery-caption p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Trust Badges Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Sections Common */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Stock Controls & Metadata */
.stock-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .stock-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.stock-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.grade-guide-link {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.stock-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  color: var(--color-text-main);
  font-weight: 500;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phone-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-image-wrap {
  position: relative;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.25s ease;
}

.phone-card:hover .card-image-wrap img {
  transform: scale(1.03);
}

.status-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-grade-a {
  background-color: var(--color-badge-a-bg);
  color: var(--color-badge-a-text);
  border: 1px solid #a7f3d0;
}

.badge-grade-b {
  background-color: var(--color-badge-b-bg);
  color: var(--color-badge-b-text);
  border: 1px solid #bfdbfe;
}

.badge-grade-c {
  background-color: var(--color-badge-c-bg);
  color: var(--color-badge-c-text);
  border: 1px solid #fef08a;
}

.badge-brand-new {
  background-color: var(--color-badge-new-bg);
  color: var(--color-badge-new-text);
  border: 1px solid #ddd6fe;
}

.badge-sold {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.phone-card.is-sold {
  opacity: 0.85;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spec-chip {
  font-size: 0.78rem;
  background-color: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.spec-chip strong {
  color: var(--color-text-main);
}

.card-pricing {
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
}

.price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.price-discount-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.price-original {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.discount-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-sold-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.price-on-request {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
}

.empty-stock-notice {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}

/* Why Buy Feature List */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-box {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: #e0f2fe;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.client-confirm-tag {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

/* Sell Your iPhone Section */
.sell-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .sell-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Form Styles */
.form-card {
  background-color: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input, .form-select, .form-textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Honeypot hidden field */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Thank You Success State */
.form-thank-you {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.thank-you-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background-color: #ecfdf5;
  color: #059669;
  font-size: 1.75rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.form-thank-you h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ref-badge {
  display: inline-block;
  background-color: #e0f2fe;
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.thank-you-sub {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Contact Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-quick-box {
  background-color: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Visit Us & Map */
.visit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .visit-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.visit-info-card {
  background-color: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.visit-detail-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.visit-detail-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.visit-map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 320px;
}

.visit-map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* About Section */
.about-card {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 840px;
  margin: 0 auto;
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.about-repair-line {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-style: normal;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-link {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.apple-disclaimer {
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

.copyright-line {
  font-size: 0.8rem;
  color: #475569;
}

/* Dialog / Modal */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
}

.grade-definitions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grade-def-item {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.grade-def-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.grade-def-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Cookie Notice Banner */
.cookie-banner {
  position: fixed;
  bottom: calc(var(--mobile-bar-height) + 10px);
  left: 12px;
  right: 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .cookie-banner {
    bottom: 20px;
    left: auto;
    right: 20px;
    max-width: 440px;
    flex-direction: row;
    align-items: center;
  }
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
