/**
 * Google-Style Minimalist Landingpage CSS
 * Clean White Aesthetic, WCAG 2.1 AA Accessibility, Zero CLS, Responsive Design
 */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-main: #202124;
  --text-muted: #595d62; /* 5.1:1 contrast on white (WCAG AA compliant) */
  --text-light: #444746; /* 8.2:1 contrast on white */
  --border-color: #dfe1e5;
  --border-hover: #dadce0;
  --accent-gold: #c5a059;
  --accent-gold-dark: #8c6819; /* High-contrast gold for accessible text */
  --shadow-normal: 0 1px 3px rgba(32, 33, 36, 0.08);
  --shadow-hover: 0 1px 6px rgba(32, 33, 36, 0.22);
  --shadow-focus: 0 2px 10px rgba(32, 33, 36, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

html, body {
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--text-main);
  color: #ffffff;
  padding: 10px 18px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-gold);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 24px;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-main);
  text-decoration: underline;
  outline: 2px solid var(--accent-gold);
  border-radius: 4px;
}

/* Main Search Container */
.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 20px 28px 20px;
  text-align: center;
}

.hero-visual-wrapper {
  margin-bottom: 10px;
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 164px;
  height: 164px;
  aspect-ratio: 1 / 1;
  max-width: 75vw;
  max-height: 75vw;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 4px 14px rgba(197, 160, 89, 0.15));
}

.question-pretitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 700;
  margin-bottom: 2px;
}

.question-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.question-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 520px;
  line-height: 1.45;
}

/* Google-Style Search Form */
.search-form-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

#search-form {
  width: 100%;
  max-width: 584px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(32, 33, 36, 0.05);
  border-radius: 28px;
  height: 52px;
  padding: 0 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.search-bar:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.12), 0 2px 6px rgba(32, 33, 36, 0.06);
  transform: translateY(-1px);
}

.search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.22), 0 0 0 2px rgba(197, 160, 89, 0.2);
  transform: translateY(-1px);
}

.search-icon {
  color: #70757a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-bar:focus-within .search-icon {
  color: var(--accent-gold-dark);
  transform: scale(1.08);
}

.search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-main);
  background: transparent;
  letter-spacing: 0.02em;
}

.search-input::placeholder {
  color: #70757a;
  font-weight: 400;
}

.clear-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.clear-btn:hover,
.clear-btn:focus-visible {
  color: var(--text-main);
  background: #f1f3f4;
  outline: none;
  transform: scale(1.05);
}

/* Location Badge Chip */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 18px;
  background-color: #fdfcf9;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2328;
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.1);
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.location-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold-dark);
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.6);
}

/* Action Buttons (Google Style with Tactile Physics) */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.google-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-secondary);
  color: #3c4043;
  font-family: inherit;
  font-size: 14px;
  padding: 0 18px;
  height: 42px;
  min-width: 44px;
  line-height: 40px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-btn:hover,
.google-btn:focus-visible {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background-color: #f8f9fa;
  border-color: var(--border-hover);
  color: #202124;
  outline: 2px solid var(--accent-gold);
  transform: translateY(-1px);
}

.google-btn:active {
  transform: scale(0.97);
}

.google-btn.primary {
  font-weight: 600;
}

/* Quick Region Pills with Tactile Physics */
.quick-regions {
  margin-top: 36px;
  max-width: 680px;
}

.quick-regions-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}

.pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.quick-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 13px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.quick-pill:hover,
.quick-pill:focus-visible {
  background-color: #fefbf4;
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.18);
}

.quick-pill:active {
  transform: scale(0.96);
}

/* Regional Location Indicator (Top-Left, Clean & Subtle on White Background) */
.site-location-badge {
  position: absolute;
  top: 18px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #70757a;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  user-select: none;
  z-index: 10;
}

@media (max-width: 600px) {
  .site-location-badge {
    top: 14px;
    left: 16px;
    font-size: 11px;
  }
}

/* Footer (Clean & Minimal) */
.google-footer {
  background-color: #f8f9fa;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid #ebebeb;
}

.footer-bottom {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-coop {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-coop a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-coop a:hover,
.footer-coop a:focus-visible {
  color: var(--text-main);
  outline: 2px solid var(--accent-gold);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-links button:hover,
.footer-links button:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-main);
  text-decoration: underline;
  outline: 2px solid var(--accent-gold);
  border-radius: 4px;
}

.footer-links a.login-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.footer-links a.login-link::before {
  content: "🔒";
  font-size: 11px;
  line-height: 1;
}

.footer-links a.login-link:hover,
.footer-links a.login-link:focus-visible {
  opacity: 1;
}

/* Redirect Overlay */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--accent-gold-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.redirect-message {
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.6;
}

.region-highlight {
  color: var(--accent-gold-dark);
  font-weight: 700;
}

/* Modals */
dialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 28px;
  max-width: 620px;
  width: 90vw;
  margin: auto;
  font-family: inherit;
  color: var(--text-main);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.dialog-header h3 {
  font-size: 19px;
  font-weight: 600;
}

.dialog-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dialog-close-btn:hover,
.dialog-close-btn:focus-visible {
  color: var(--text-main);
  background: #f1f3f4;
  outline: 2px solid var(--accent-gold);
}

.dialog-content {
  font-size: 14px;
  line-height: 1.7;
  color: #3c4043;
}

/* Utilities */
.hidden {
  display: none !important;
}

.shake-error {
  animation: shake 0.4s ease;
  border-color: #d93025 !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (max-width: 600px) {
  .hero-visual {
    width: 170px;
    height: 170px;
  }
  .hero-visual-wrapper {
    min-height: 170px;
  }
  .question-title {
    font-size: 2.5rem;
  }
  .search-bar {
    height: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-snippets-grid {
    grid-template-columns: 1fr;
  }
}

/* 2x2 Compact Bento Grid Layout (Regions, Locations, Reviews, FAQ) */
.landing-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 22px auto 0;
  align-items: stretch;
}

.landing-bento-grid > .bento-card {
  margin-top: 0 !important;
  max-width: none !important;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-bento-grid > .bento-card:hover {
  border-color: #dadce0;
  box-shadow: 0 4px 12px rgba(32, 33, 36, 0.08);
}

.landing-bento-grid .quick-regions-title {
  margin-bottom: 12px;
  font-size: 12px;
}

.landing-bento-grid .pills-container {
  gap: 7px;
}

.landing-bento-grid .quick-pill {
  padding: 6px 13px;
  min-height: 34px;
  font-size: 12.5px;
  background-color: #f8f9fa;
}

/* B2B Partner & Location Trust Ribbon (Hebel 1 CRO) */
.b2b-trust-ribbon {
  margin-top: 32px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.b2b-trust-ribbon:hover {
  border-color: #dadce0;
  box-shadow: 0 4px 12px rgba(32, 33, 36, 0.08);
}

.trust-ribbon-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-dark);
}

.trust-ribbon-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.trust-badge:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.trust-badge .badge-icon {
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 600px) {
  .b2b-trust-ribbon {
    margin-top: 24px;
    padding: 14px 14px;
    border-radius: 12px;
  }
  .trust-ribbon-header {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .trust-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Visible Customer Trust & Reviews (Google Rich Results Compliance) */
.trust-signals {
  margin-top: 40px;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.rating-badge .stars {
  color: #fbbc04; /* Google Star Gold */
  letter-spacing: 2px;
  font-size: 14px;
}

.rating-badge .rating-val {
  font-weight: 700;
  color: var(--text-main);
}

.rating-badge .rating-count {
  color: var(--text-muted);
}

.review-snippets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: left;
  flex: 1;
}

.user-quote {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-light);
}

.user-quote p {
  margin-bottom: 6px;
  font-style: italic;
}

.user-quote cite {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-gold-dark);
  font-style: normal;
  display: inline;
}

/* Satellite FAQ Accordion (Google Rich Results Visible Matching) */
.satellite-faq-section {
  margin-top: 32px;
  text-align: left;
}

.satellite-faq-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-align: center;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-details {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 9px 14px;
  transition: all 0.2s ease;
}

.faq-details:hover {
  background: #ffffff;
  border-color: #dadce0;
}

.faq-details[open] {
  background: #ffffff;
  border-color: var(--accent-gold);
}

.faq-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "＋";
  font-size: 15px;
  color: var(--accent-gold-dark);
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-summary::after {
  content: "−";
}

.faq-content {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-light);
}

.faq-content p {
  margin: 0;
}

@media (max-width: 820px) {
  .landing-bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
}

