/* =========================================================
   SCRAPGAADI — Design Tokens
   Theme: Premium black & orange
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* --- Color --- */
  --black:      #0A0A0B;   /* base black */
  --black-soft: #16161A;   /* card / panel black */
  --black-line: rgba(255,255,255,.10);

  --orange:      #16A34A;  /* primary accent */
  --orange-dark: #15803D;
  --orange-soft: #86EFAC;

  --white:  #FFFFFF;
  --ivory:  #FAFAF9;
  --gray-1: #C9C9CE;   /* muted text on dark */
  --gray-2: #8C8C93;
  --line-dark: rgba(255,255,255,.14);

  /* --- Type --- */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* --- Radius / Shadow --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 30px 60px -20px rgba(0,0,0,.55);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  margin:0;
  line-height:1.08;
  letter-spacing:-0.01em;
}
p{ margin:0; }
button{ font-family:inherit; }
.container{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:15px;
  letter-spacing:.01em;
  padding:14px 26px;
  border-radius: var(--r-sm);
  border:2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible{ outline:3px solid var(--orange-soft); outline-offset:2px; }
.btn-orange{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(22,163,74,.55);
}
.btn-orange:hover{ background: var(--orange-dark); transform: translateY(-1px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}


/* =========================================================
   HERO  (only section on the page)
   ========================================================= */
/* =========================================================
   HERO  (only section on the page)
   ========================================================= */
.hero{
    position:relative;
    min-height:calc(100vh - 68px);
    display:flex;
    align-items:center;
    overflow:hidden;
    padding:56px 0 64px;

    background:
        /* Green glow */
        radial-gradient(circle at 15% 100%, rgba(22,163,74,.12), transparent 35%),

        /* Dot Pattern */
        radial-gradient(circle, rgba(22,163,74,.18) 1.3px, transparent 1.3px),

        /* Main Background (fallback, sits below the photo) */
        linear-gradient(150deg,#0A0A0B 0%,#17130F 55%,#1C140C 100%);

    background-size:
        100% 100%,
        58px 58px,
        100% 100%;

    background-position:
        center,
        center,
        center;
}
.hero-bg-art{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:bottom !important;
  z-index:0 !important;
  opacity:1 !important;
  /* image ab zyada visible — sirf halka darken taaki grain/detail bhi dikhe */
  filter: brightness(.62) saturate(1) !important;
  animation: heroArtDrift 22s ease-in-out infinite;
}

/*
  FIX: pehle ye overlay poori width par uniformly dark tha (image ~90% dab
  jaati thi). Ab left-to-right gradient hai: left side (jahan heading/lede/
  checklist text hai) dark rehta hai for readability, right side (jahan
  quote-card apna solid background khud carry karta hai) me image khulke
  dikhti hai.
*/
.hero::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    pointer-events:none !important;
    background:
        radial-gradient(circle, rgba(22,163,74,.20) 1.3px, transparent 1.3px),
        linear-gradient(
          100deg,
          rgba(8,8,9,.90) 0%,
          rgba(10,9,8,.82) 30%,
          rgba(12,10,8,.55) 55%,
          rgba(14,11,8,.30) 75%,
          rgba(14,11,8,.18) 100%
        ),
        /* Bottom-up fade so image ka lower hissa bhi bina harsh cutoff ke blend ho */
        linear-gradient(
          to top,
          rgba(6,6,7,.55) 0%,
          rgba(6,6,7,0) 28%
        ) !important;
    background-size:
        58px 58px,
        100% 100%,
        100% 100% !important;
    background-position:
        center,
        center,
        center !important;
    animation:dotMove 25s linear infinite;
}

@keyframes dotMove{
    from{ background-position:0 0,0 0; }
    to{ background-position:56px 56px,0 0; }
}
.hero::after{
  content:"";
  position:absolute;
  top:-10%; right:-10%;
  width:640px; height:640px;
  background: radial-gradient(circle, rgba(22,163,74,.22), transparent 70%);
  pointer-events:none;
  z-index:1;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse{
  0%, 100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.65; transform:scale(1.12); }
}
.hero-inner{
  position:relative !important;
  z-index:2 !important;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:56px;
  align-items:center;
}

/* --- Eyebrow badge: made more premium / readable --- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#ffffff;
  font-weight:700;
  background: linear-gradient(135deg, rgba(22,163,74,.28), rgba(22,163,74,.10));
  border:1px solid rgba(74,222,128,.45);
  padding:8px 16px;
  border-radius:999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  opacity:0;
  animation: fadeUp .7s ease forwards;
  animation-delay:.05s;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background: var(--orange, #22c55e);
  box-shadow: 0 0 8px rgba(74,222,128,.9);
}

.hero-copy h1{
  color: var(--white);
  font-weight:800;
  font-size: clamp(32px, 4vw, 50px);
  margin-top:18px;
  opacity:0;
  animation: fadeUp .7s ease forwards;
  animation-delay:.18s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-copy h1 .hl{ color: var(--orange); }

/* --- FIX: was #000000 (invisible on dark bg) -> light color now --- */
.hero-copy .lede{
  color: #EDEDF0;
  font-size:16.5px;
  line-height:1.65;
  max-width:50ch;
  margin-top:16px;
  opacity:0;
  animation: fadeUp .7s ease forwards;
  animation-delay:.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.7);
}

.check-list{
  margin-top:30px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 24px;
  opacity:0;
  animation: fadeUp .7s ease forwards;
  animation-delay:.42s;
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .eyebrow, .hero-copy h1, .hero-copy .lede, .check-list, .quote-card{
    animation:none !important; opacity:1 !important;
  }
  .hero-bg-art, .hero::after{ animation:none !important; }
}

/* --- FIX: was #000000 (invisible on dark bg) -> light color now --- */
.check-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: #F8F8F9;
  font-size:14.5px;
  font-weight:600;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.7);
}
.check-list .tick{
  flex:0 0 auto;
  width:20px; height:20px;
  border-radius:50%;
  background: rgba(22,163,74,.22);
  color: var(--orange);
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
  margin-top:1px;
}

/* --- Quote card (COMPACT VERSION) --- */
.quote-card{
  position:relative;
  background: var(--black-soft);
  border:1px solid var(--line-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  opacity:0;
  animation: cardIn .8s ease forwards;
  animation-delay:.25s;
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(22,163,74,.25);
}
@keyframes cardIn{
  from{ opacity:0; transform: translateY(24px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.quote-card h3{
  color: var(--white);
  font-size:17px;
  font-weight:800;
  text-align:center;
}
.quote-card .sub{
  text-align:center;
  color: var(--gray-2);
  font-size:11.5px;
  margin-top:2px;
  margin-bottom:10px;
}

/* --- NEW: 2-column row wrapper to shrink overall form height --- */
.field-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:0 10px;
}

.field{ margin-bottom:7px; }
.field label{
  display:block;
  font-family: var(--font-body);
  font-size:10.5px;
  font-weight:600;
  color: var(--gray-1);
  margin-bottom:3px;
}
.field input, .field select{
  width:100%;
  font-family: var(--font-body);
  font-size:12.5px;
  color: var(--white);
  background: rgba(255,255,255,.05);
  border:1.5px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding:7px 9px;
  appearance:none;
}
.field input::placeholder{ color: var(--gray-2); }
.field select{
  color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23C9C9CE' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  padding-right:28px;
}
.field select option{ background: var(--black-soft); color: var(--white); }
.field input:focus, .field select:focus{
  outline:none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}
.quote-card .btn{
  width:100%;
  margin-top:4px;
  padding:9px;
  font-size:13.5px;
}
.quote-card .fine-print{
  margin-top:8px;
  font-size:10.5px;
  color: var(--gray-2);
  text-align:center;
  line-height:1.3;
}

@media (max-width: 900px){
  .hero{ min-height:auto; padding:44px 0 56px; }
  .hero-inner{ grid-template-columns:1fr; gap:40px; }
  .check-list{ grid-template-columns:1fr; }
}
@media (max-width: 480px){
  .quote-card{ padding:16px 14px; }
  .header-inner{ padding:16px 20px; }
  .container{ padding:0 20px; }
  .field-row{ grid-template-columns:1fr; }
}

/* =========================================================
   SCRAPGAADI PWA INSTALL POPUP
   ========================================================= */

#sgInstallPopup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-family: inherit;
}

/* Dark overlay */
.sg-install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Popup Card */
.sg-install-card {
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%);

    width: min(360px, calc(100% - 30px));

    background: #16161A;
    border: 1px solid rgba(22, 163, 74, 0.45);
    border-radius: 18px;

    padding: 24px 22px 20px;

    text-align: center;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(22, 163, 74, 0.1);

    color: #fff;

    animation: sgPopupIn 0.3s ease-out;
}

/* Popup animation */
@keyframes sgPopupIn {
    from {
        opacity: 0;
        transform: translate(-50%, 55%) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 50%) scale(1);
    }
}

/* App Icon */
.sg-install-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    border-radius: 14px;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(22, 163, 74, 0.22),
        0 0 0 1px rgba(255,255,255,0.1);
}

.sg-install-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* Heading */
.sg-install-card h3 {
    margin: 0 0 6px;

    font-size: 18px;
    font-weight: 800;

    color: #fff;
}

/* Description */
.sg-install-card p {
    margin: 0 auto 18px;

    max-width: 280px;

    font-size: 13px;
    line-height: 1.5;

    color: #c9c9ce;
}

/* Install Button */
.sg-install-btn {
    width: 100%;

    border: 0;
    border-radius: 10px;

    padding: 11px 16px;

    background: linear-gradient(
        135deg,
        #16A34A,
        #22C55E
    );

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(22, 163, 74, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sg-install-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(22, 163, 74, 0.32);
}

.sg-install-btn:active {
    transform: scale(0.98);
}

/* Maybe Later */
.sg-install-later {
    margin-top: 10px;

    background: transparent;
    border: 0;

    color: #99999f;

    font-size: 12.5px;
    font-weight: 600;

    cursor: pointer;
}

.sg-install-later:hover {
    color: #fff;
}

/* Close Button */
.sg-install-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 50%;

    background: #29292f;

    color: #fff;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.sg-install-close:hover {
    background: #16A34A;
}


/* =========================================================
   MOBILE VERSION
   ========================================================= */

@media (max-width: 600px) {

    .sg-install-card {
        left: 0;
        right: 0;
        bottom: 0;

        transform: none;

        width: 100%;

        padding: 22px 20px 18px;

        border-radius: 20px 20px 0 0;

        border-left: 0;
        border-right: 0;
        border-bottom: 0;

        animation: sgMobilePopupIn 0.3s ease-out;
    }

    @keyframes sgMobilePopupIn {

        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }

    .sg-install-icon {
        width: 54px;
        height: 54px;

        border-radius: 13px;

        margin-bottom: 12px;
    }

    .sg-install-card h3 {
        font-size: 17px;

        margin-bottom: 6px;
    }

    .sg-install-card p {
        font-size: 12.5px;
        line-height: 1.5;

        max-width: 260px;

        margin-bottom: 16px;
    }

    .sg-install-btn {
        padding: 12px 16px;

        min-height: 44px;

        font-size: 14px;

        border-radius: 10px;
    }

    .sg-install-later {
        padding: 6px 12px;

        margin-top: 8px;

        font-size: 12.5px;
    }

    .sg-install-close {
        top: 10px;
        right: 10px;

        width: 28px;
        height: 28px;

        font-size: 18px;
    }
}


/* Very small phones */
@media (max-width: 380px) {

    .sg-install-card {
        padding: 20px 16px 16px;
    }

    .sg-install-icon {
        width: 50px;
        height: 50px;
    }

    .sg-install-card h3 {
        font-size: 16px;
    }

    .sg-install-card p {
        font-size: 12px;
    }

    .sg-install-btn {
        min-height: 42px;
    }
}

/* =========================================================
   THEME LOCK — Force Green Accent (Hero + Quote Form)
   Safety net: if any orange colour is coming from a file
   we don't control (e.g. new-quote.php), these rules force
   it back to the site's green theme without touching layout.
   ========================================================= */
.eyebrow{
  color: var(--orange-soft) !important;
  background: rgba(22,163,74,.12) !important;
  border-color: rgba(22,163,74,.3) !important;
}
.hero-copy h1 .hl{
  color: var(--orange) !important;
}
.check-list .tick{
  background: rgba(22,163,74,.16) !important;
  color: var(--orange) !important;
}

/* Quote form (new-quote.php) — button / inputs / focus states */
.quote-card .btn,
.quote-card button,
.quote-card input[type="submit"],
.quote-card input[type="button"],
#quote .btn,
#quote button,
#quote input[type="submit"],
#quote input[type="button"]{
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}
.quote-card .btn:hover,
.quote-card button:hover,
#quote .btn:hover,
#quote button:hover{
  background: var(--orange-dark) !important;
}
.field input:focus,
.field select:focus,
.quote-card input:focus,
.quote-card select:focus,
#quote input:focus,
#quote select:focus{
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,.18) !important;
}
.quote-card input[type="checkbox"],
.quote-card input[type="radio"],
#quote input[type="checkbox"],
#quote input[type="radio"]{
  accent-color: var(--orange) !important;
}