/* /public_html/home/home_page.css */
/* SRK HONDA – PUBLIC HOME PAGE THEME (page-specific only)
   Header / mobile nav styling lives in /home/_admin/app/header.css */

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0a0a0a;
  background-color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:root {
  --red: #d50000;
  --red-soft: #ffebee;
  --red-dark: #a50000;
  --gold: #d4af37;

  --honda-red: #e4002b;

  --gray-900: #0a0a0a;
  --gray-700: #2e2e2e;
  --gray-600: #424242;
  --gray-500: #616161;
  --gray-200: #e0e0e0;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 36px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-strong: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);

  --maxw: 1280px;
}

/* ------------------------------------------------------------------
   HOME TOP TITLE ROW (SRK Honda + Install Button)
------------------------------------------------------------------ */

.home-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
  min-width:0;
}

.home-title-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.home-title-left img{
  width:44px;
  height:44px;
  border-radius:14px;
  display:block;
  object-fit:cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

.home-title-text{
  min-width:0;
}

.home-title-text h1{
  margin:0;
  font-size:1.15rem;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.01em;
}

.home-title-text p{
  margin: 3px 0 0;
  font-size:.86rem;
  color:#4b5563;
  font-weight:800;
  letter-spacing:.02em;
}

/* Install button (always visible; JS controls state) */
#pwaInstallBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;

  border:none;
  cursor:pointer;
  padding:.62rem 1rem;
  border-radius:999px;
  font-weight:900;
  font-size:.92rem;
  background:linear-gradient(45deg, var(--red), var(--red-dark));
  color:#fff;
  box-shadow: 0 10px 24px rgba(213,0,0,.25);
  white-space:nowrap;

  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* Not-ready state: still visible but slightly muted */
#pwaInstallBtn:not(.is-ready){
  opacity:.85;
  filter:saturate(.85);
}

/* Ready state: looks stronger */
#pwaInstallBtn.is-ready{
  opacity:1;
  filter:none;
}

/* Installed state: disabled look */
#pwaInstallBtn[disabled]{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
  filter:none;
}

#pwaInstallBtn:hover{
  box-shadow: 0 14px 30px rgba(213,0,0,.35);
  transform: translateY(-1px);
}

#pwaInstallBtn:active{
  transform: scale(.98);
}

/* ------------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------------ */

.hero {
  background: radial-gradient(circle at top left, #ffffff, #f0f0f0 50%, #e0e0e0 100%);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(213,0,0,0.05), rgba(212,175,55,0.05));
  pointer-events: none;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

/* HERO IMAGE */
.hero-visual {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  position: relative;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-visual-picture { display: block; width: 100%; height: 100%; }

/* QUICK ACTIONS */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.qa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border-radius: var(--radius-pill);
  padding: 0.75rem 0.9rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-soft);
  color: var(--gray-900);

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.qa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
  background: var(--red-soft);
  color: var(--red);
}

/* LOCATION CHIPS (uniform responsive grid) */
.location-chips{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-soft);
  color: var(--gray-900);

  transition: background 0.15s ease, transform 0.15s ease;
  min-width: 0;
}

.chip:hover{
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

/* ENQUIRY + EMI GRID */
.hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-width: 0;
}

.hero-stack .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* CARD */
.card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 1.6rem 1.8rem 1.7rem;
  border: 1px solid rgba(255,255,255,0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-width: 0;
}

@media (hover: hover) {
  .card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-4px);
  }
}

.card-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.card-subtitle {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--gray-600);
}

/* FORMS */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  min-width: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--gray-700);
  min-width: 0;
}

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

.form-field label {
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 0.7rem 0.9rem;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213,0,0,0.1);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ✅ Consent checkbox visibility (iPhone friendly) */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.25;
}

.checkbox-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 22px;
  accent-color: var(--red);
}

.home-enquiry-card { padding: 2rem 2rem 2.2rem; width: 100%; }

.home-enquiry-card .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.home-enquiry-card textarea { min-height: 120px; }

.home-enquiry-card .submit-row {
  text-align: right;
  margin-top: 1.2rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(45deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

.btn:hover {
  background: linear-gradient(45deg, var(--red-dark), var(--red));
  box-shadow: 0 10px 24px rgba(213,0,0,0.4);
  transform: translateY(-2px);
}

/* EMI */
.emi-results-box {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.86rem;
}

.emi-results-box .emi-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.15rem;
  gap: 0.75rem;
}

.emi-results-box .emi-row span:first-child { color: #6b7280; }

.emi-results-box .emi-row span:last-child {
  font-weight: 800;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.emi-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ------------------------------------------------------------------
   INFO MODAL (Contact + Privacy)
------------------------------------------------------------------ */

.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  z-index: 10000;
  padding: 14px;
}

.info-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal__panel {
  width: min(720px, 96vw);
  max-height: min(80vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  padding: 18px 18px 16px;
  position: relative;
}

.info-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.info-modal__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0a0a0a;
  padding-right: 48px;
}

.info-modal__text {
  margin: 0 0 12px;
  color: #424242;
  font-size: 0.95rem;
}

.info-modal__box {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  flex-wrap: wrap;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  color: #6b7280;
  font-weight: 900;
  flex: 0 0 auto;
  min-width: 72px;
}

.info-value {
  flex: 1 1 auto;
  text-align: right;
  min-width: 0;
}

.info-value a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-value a:hover { text-decoration: underline; }

.info-list { margin: 0; padding-left: 1.1rem; }
.info-list li { margin: 8px 0; color: #111827; }

.info-modal__muted {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #6b7280;
}

/* ------------------------------------------------------------------
   HERO IMAGE ZOOM (mobile pinch-zoom)
------------------------------------------------------------------ */

.js-image-zoom { cursor: zoom-in; }

.img-zoom-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  z-index: 9999;

  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 18px;
}

.img-zoom-overlay.is-open{ display: block; }

.img-zoom-inner{
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.img-zoom-full{
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  cursor: zoom-out;
  pointer-events: auto;

  touch-action: pan-x pan-y pinch-zoom;
  -webkit-user-drag: none;
  user-select: none;
}

.img-zoom-hint{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.35);
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-stack {
    grid-template-columns: 1fr;
    margin-top: 0.6rem;
  }

  .hero-stack .form-grid { grid-template-columns: 1fr; }

  .home-enquiry-card .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .home-enquiry-card .submit-row { text-align: left; }
}

/* Mobile: 2 columns for actions + 2 columns for location chips */
@media (max-width: 640px) {
  .hero { padding: 2rem 0 2.5rem; }

  .hero-inner { padding: 0 1rem; }

  .card {
    padding: 1.35rem 1.1rem 1.4rem;
    border-radius: 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.1rem;
  }

  .quick-actions { grid-template-columns: 1fr 1fr; }

  .qa-btn{
    padding: 0.68rem 0.75rem;
    font-size: 0.92rem;
  }

  .location-chips{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* HOME TITLE ROW */
  .home-title-row{
    align-items:flex-start;
  }

  #pwaInstallBtn{
    padding: .58rem .9rem;
    font-size: .90rem;
  }

  .info-modal__panel {
    width: 96vw;
    padding: 14px 14px 12px;
    border-radius: 16px;
    max-height: 78vh;
  }

  .info-value { text-align: left; }
}

@media (max-width:420px){
  .brand{ font-size:1.5rem; }
  .nav-pills{ max-width:calc(100vw - 16px); padding:1rem; }

  .mobile-auth-btn{
    padding:.58rem .9rem;
    font-size:.92rem;
  }

  .mobile-toggle{
    padding:.58rem .9rem;
    font-size:.92rem;
  }

  .home-title-text h1{
    font-size: 1.08rem;
  }

  .home-title-text p{
    font-size: .84rem;
  }
}

/* ------------------------------------------------------------------
   SUCCESS MODAL
------------------------------------------------------------------ */

.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 16px;
}

.success-modal.is-open {
  display: flex;
}

.success-modal__panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: min(420px, 95vw);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  animation: popupFade .25s ease;
}

@keyframes popupFade {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-modal__title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #065f46;
}

.success-modal__text {
  margin: 0 0 10px;
  font-size: .95rem;
  color: #374151;
}

.success-modal__ref {
  font-size: .9rem;
  margin-bottom: 18px;
  color: #111827;
}

.success-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(45deg,#d50000,#a50000);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(213,0,0,.35);
}

.success-modal__btn:hover {
  transform: translateY(-2px);
}

.success-modal__btn:active {
  transform: scale(.97);
}