/* =====================================================================
 * Love Local Long Island — Claim Your Free Business Profile
 * Page styles. Loaded by index.html.
 * ===================================================================== */

/* ===================== Tokens ===================== */
:root {
  /* Brand orange #ff4d30 — sampled from the heart in the Love Local logo
     and matching the search button on lovelocallongisland.com. */
  --brand: #ff4d30;
  /* Solid fills that carry WHITE text. #ff4d30 is only 3.3:1 with white and
     fails WCAG AA, so buttons and the footer use these darker tints instead. */
  --brand-strong: #d64028;
  --brand-deep: #b8330f;
  /* Darker orange for link text: #ff4d30 on white is only 3.3:1 and fails
     WCAG AA for body copy. This one is 5.1:1. */
  --brand-text: #c93c18;
  --brand-050: #fff6f3;
  --amber: #c15500;
  --danger: #bf3333;
  --danger-bg: #fdf1f1;
  --ink: #2a1610;
  --body: #4d3b34;
  --muted: #826d66;
  --line: #ecdfd9;
  --white: #fff;
  --ok: #127a4b;
  --ok-bg: #effaf3;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(80, 30, 15, .06), 0 1px 3px rgba(80, 30, 15, .08);
  --shadow-md: 0 10px 30px -12px rgba(80, 30, 15, .22), 0 2px 8px rgba(80, 30, 15, .06);
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Quicksand", var(--sans);
}

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

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--brand-050);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em
}

p {
  margin: 0 0 1em
}

p:last-child {
  margin-bottom: 0
}

a {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 2px
}

a:hover {
  color: var(--brand-text)
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px
}

/* The banner runs wider than the form cards so the headline holds one line on
   desktop — at its 2.9rem cap it needs roughly 915px. The sub-heading keeps its
   own 34em measure, so widening this does not stretch the body copy. */
.hero .wrap {
  max-width: 1060px;
}

/* ===================== Skip link ===================== */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-text);
  color: #fff;
  padding: 10px 16px;
  z-index: 99;
  border-radius: 0 0 8px 0
}

.skip:focus {
  left: 0
}

/* ===================== Header ===================== */
.site-header {
  /* Light header: the logo is #333 text with an orange heart, so it needs a
     pale background. The orange gradient starts at the hero below. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header img {
  max-height: 58px;
  width: auto;
  margin: 0 auto;
}

/* ===================== Hero ===================== */
.hero {
  /* Beach photo with a 65% black overlay. Worst case (a pure-white pixel) the
     overlay still yields #595959, which is 7:1 against white text — so the
     copy stays readable no matter what part of the image sits behind it. */
  background-image:
    linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #3a3a3a;
  color: #fff;
  text-align: center;
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 40px;
  background: var(--brand-050);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 5.2vw, 2.9rem);
  text-wrap: balance;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1
}

.hero .sub {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #fff;
  max-width: 34em;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* ===================== Main / cards ===================== */
main {
  padding: 36px 0 64px
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

/* Requirements */
.alert-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.alert-head .badge {
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: .82em;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 6px;
  text-transform: uppercase;
}

.req-card {
  border-left: 5px solid var(--amber)
}

.req-card h2 {
  font-size: 1.3rem;
  margin: 14px 0 18px
}

ol.reqs {
  list-style: none;
  counter-reset: r;
  margin: 0;
  padding: 0
}

ol.reqs li {
  counter-increment: r;
  position: relative;
  padding: 0 0 0 46px;
  margin: 0 0 18px;
  font-size: .97rem;
}

ol.reqs li:last-child {
  margin-bottom: 0
}

ol.reqs li::before {
  content: counter(r);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-text);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.reqs strong {
  color: var(--danger);
  font-weight: 700
}

ol.reqs em {
  font-style: italic
}

.hard-stop {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid #f2cfcf;
  color: #8f2020;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.55;
}

/* ===================== Form ===================== */
.form-card h2 {
  font-size: 1.45rem;
  margin-bottom: 4px
}

.form-card .lede {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 26px
}

.grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px
}

.grid .field {
  margin-bottom: 0
}

label.lbl {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 7px;
  display: block;
}

.req-star {
  color: var(--brand-strong);
  margin-left: 2px
}

input[type=text],
input[type=email] {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder {
  color: #82736c
}

input[type=text]:focus,
input[type=email]:focus {
  outline: none;
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(211, 58, 26, .15);
}

input[aria-invalid=true] {
  border-color: var(--danger);
  background: #fffafa
}

input[aria-invalid=true]:focus {
  box-shadow: 0 0 0 3px rgba(191, 51, 51, .15)
}


.hint {
  font-size: .84rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5
}




.err {
  color: var(--danger);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 6px;
  display: none
}

.err.show {
  display: block
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0
}

fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0
}

legend {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.choice {
  flex: 1 1 140px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.choice:hover {
  border-color: #c9b3ce
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c2b0c6;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-text);
  transform: scale(0);
  transition: transform .15s
}

.choice input:checked~.dot {
  border-color: var(--brand-text)
}

.choice input:checked~.dot::after {
  transform: scale(1)
}

.choice:has(input:checked) {
  border-color: var(--brand-text);
  background: var(--brand-050)
}

.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(211, 58, 26, .22)
}

/* Consent checkbox */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--body)
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.box {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 2px solid #c2b0c6;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}

.box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(.5);
  transition: .15s
}

.consent input:checked~.box {
  background: var(--brand-text);
  border-color: var(--brand-text)
}

.consent input:checked~.box svg {
  opacity: 1;
  transform: scale(1)
}

.consent input:focus-visible~.box {
  box-shadow: 0 0 0 3px rgba(211, 58, 26, .22)
}

/* Inline alerts */
.inline-alert {
  display: none;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .93rem;
  line-height: 1.55;
  background: var(--danger-bg);
  border: 1px solid #f2cfcf;
  color: #8f2020;
}

.inline-alert.show {
  display: block
}

.inline-alert strong {
  display: block;
  margin-bottom: 2px
}

/* Honeypot — must stay visually hidden but reachable to bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

/* Submit */
.btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-strong);
  border: 0;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background .15s, transform .06s, box-shadow .15s;
  box-shadow: 0 4px 14px -4px rgba(211, 58, 26, .45);
}

.btn:hover:not(:disabled) {
  background: var(--brand-deep)
}

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

.btn:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 2px
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none
}

.btn .spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn.loading .spin {
  display: block
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.fineprint {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6
}

.fineprint a {
  color: var(--muted)
}

/* ===================== Success ===================== */
#success {
  display: none;
  text-align: center;
  padding: 44px 28px
}

#success.show {
  display: block
}

.tick {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 2px solid #bfe6cf;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tick svg {
  width: 32px;
  height: 32px;
  stroke: var(--ok)
}

#success h2 {
  font-size: 1.6rem
}

.next-steps {
  text-align: left;
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0 0;
}

.next-steps h3 {
  font-size: 1rem;
  margin-bottom: 10px
}

.next-steps ol {
  margin: 0;
  padding-left: 20px;
  font-size: .93rem
}

.next-steps li {
  margin-bottom: 8px
}

.next-steps li:last-child {
  margin-bottom: 0
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--brand-deep);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: .88rem;
}

/* ===================== Responsive ===================== */
@media (max-width:640px) {
  body {
    font-size: 16px
  }

  .wrap {
    padding: 0 16px
  }

  .hero {
    padding: 38px 0 46px
  }

  main {
    padding: 26px 0 44px
  }

  .card {
    padding: 22px 18px;
    border-radius: 12px
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .grid .field {
    margin-bottom: 0
  }

  .choices {
    flex-direction: column
  }

  .site-header .wrap {
    min-height: 64px
  }

  .site-header img {
    max-height: 38px
  }

  ol.reqs li {
    padding-left: 40px
  }

  ol.reqs li::before {
    width: 28px;
    height: 28px;
    font-size: 14px
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}


/* ---------- Moved out of inline style attributes ---------- */
.success-note {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--muted);
}

.copyright {
  margin: 0;
}
