/* Storefront Web Co. — a shopfront at dusk: striped awning, glowing sign, warm cream interior */

:root {
  --burgundy: #810B18;
  --burgundy-deep: #5a0710;
  --night: #2a0509;
  --cream: #FCE9B8;
  --cream-panel: #FFF6DE;
  --gold: #E1A839;
  --gold-hot: #ffcf70;
  --black: #1A1A1A;
  --max-width: 860px;
  --display: "Fraunces", "Georgia", serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.1;
  margin-top: 0;
}

a { color: var(--burgundy); }

::selection { background: var(--gold); color: var(--black); }

/* Header */

.site-header {
  background: var(--cream);
  padding: 22px 0 18px;
}

.header-inner { display: flex; justify-content: center; }

.logo {
  width: 170px;
  height: auto;
  display: block;
  animation: drop-in .9s cubic-bezier(.2,.9,.3,1.2) both;
  transform-origin: 50% 0;
}

/* Awning */

.awning {
  --scallop: 44px;
  height: 78px;
  position: relative;
  z-index: 5;
  margin-bottom: -22px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 35%),
    repeating-linear-gradient(90deg, var(--burgundy) 0 var(--scallop), var(--cream-panel) var(--scallop) calc(var(--scallop) * 2));
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--scallop) / 2) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--scallop) / 2 - .5px), transparent calc(var(--scallop) / 2)) 0 100% / var(--scallop) calc(var(--scallop) / 2) repeat-x;
          mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--scallop) / 2) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--scallop) / 2 - .5px), transparent calc(var(--scallop) / 2)) 0 100% / var(--scallop) calc(var(--scallop) / 2) repeat-x;
  filter: drop-shadow(0 10px 8px rgba(0,0,0,.45));
  transform-origin: 50% 0;
  animation: awning-unroll 1s cubic-bezier(.2,.8,.2,1) both;
}

/* Hero */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, rgba(225,168,57,.28), transparent 70%),
    radial-gradient(circle at 12% 90%, rgba(129,11,24,.9), transparent 45%),
    var(--night);
  color: var(--cream);
  padding: 74px 0 84px;
  text-align: center;
  overflow: hidden;
}

/* faint brick-ish pattern for the shop wall */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background:
    linear-gradient(var(--cream) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, var(--cream) 1px, transparent 1px) 0 0 / 52px 52px;
}

.hero .wrap { position: relative; }

.open-sign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-hot);
  padding: 8px 18px 8px 12px;
  border: 2px solid var(--gold-hot);
  border-radius: 999px;
  margin-bottom: 26px;
  text-shadow: 0 0 10px rgba(255,207,112,.8);
  box-shadow: 0 0 14px rgba(255,207,112,.45), inset 0 0 12px rgba(255,207,112,.25);
  animation: fade-up .8s .5s both, flicker 5s 2s infinite;
}

.open-sign span {
  background: var(--gold-hot);
  color: var(--night);
  text-shadow: none;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: .18em;
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: var(--cream);
  text-shadow: 0 4px 0 var(--burgundy), 0 0 40px rgba(225,168,57,.25);
  animation: fade-up .8s .65s both;
}

.hero .tagline {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 22px;
  animation: fade-up .8s .8s both;
}

.hero .hero-copy {
  font-size: 1.12rem;
  max-width: 540px;
  margin: 0 auto 34px;
  color: var(--cream);
  animation: fade-up .8s .95s both;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 15px 30px;
  border-radius: 10px;
  border: 2px solid var(--black);
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-hot);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--black);
}

.hero .btn { animation: fade-up .8s 1.1s both; }

.hero .btn-primary { box-shadow: 5px 5px 0 var(--burgundy); border-color: var(--cream); }
.hero .btn-primary:hover, .hero .btn-primary:focus-visible { box-shadow: 8px 8px 0 var(--burgundy); }
.hero .btn-primary:active { box-shadow: 1px 1px 0 var(--burgundy); }

/* Sections */

.section { padding: 76px 0; position: relative; }

.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--burgundy);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -.01em;
}

/* little gold flourish under section headings */
.section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px);
}

/* What you get */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.card {
  position: relative;
  background: var(--cream-panel);
  border: 2px solid var(--burgundy);
  border-radius: 14px;
  padding: 30px 24px 24px;
  box-shadow: 6px 6px 0 var(--burgundy);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .25s ease;
}

.card:nth-child(1) { --tilt: -1.4deg; }
.card:nth-child(2) { --tilt: .8deg; }
.card:nth-child(3) { --tilt: -.6deg; }

/* hanging-sign hook */
.card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--burgundy);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}

.card:hover {
  transform: rotate(var(--tilt)) translateY(-6px);
  box-shadow: 10px 12px 0 var(--burgundy);
}

.card h3 {
  color: var(--burgundy);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p { margin: 0; }

/* How it works */

.how-it-works {
  background:
    radial-gradient(circle at 1px 1px, rgba(129,11,24,.16) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--cream-panel);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: relative;
}

/* dotted trail connecting steps */
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  border-left: 3px dotted var(--burgundy);
  opacity: .45;
}

.steps li {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--burgundy);
  box-shadow: 4px 4px 0 var(--burgundy);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.5);
}

.steps li:hover .step-num { transform: rotate(-12deg) scale(1.1); }

.steps h3 {
  color: var(--burgundy);
  font-size: 1.3rem;
  margin: 4px 0 6px;
}

.steps p { margin: 0; }

/* Who it's for */

.who-its-for { padding-bottom: 44px; overflow: hidden; }

.who-its-for p {
  text-align: center;
  font-size: 1.12rem;
  max-width: 580px;
  margin: 0 auto 52px;
}

.ticker {
  position: relative;
  z-index: 2;
  background: var(--burgundy);
  color: var(--cream);
  border-block: 3px solid var(--black);
  transform: rotate(-1.4deg) scale(1.05);
  margin-bottom: 14px;
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--gold);
}

/* soft fade at both ends so words glide out instead of hard-clipping */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10vw, 140px);
  z-index: 1;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(90deg, var(--burgundy) 15%, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--burgundy) 15%, transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker span {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
  padding: 0 22px;
}

.ticker span::after {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  margin-left: 44px;
}

/* Contact */

.contact {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(225,168,57,.2), transparent 70%),
    var(--night);
  color: var(--cream);
  padding-top: 96px;
}

.contact h2 { color: var(--cream); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
  padding: 30px 28px 26px;
  background: var(--burgundy);
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 8px 8px 0 rgba(225,168,57,.9);
}

.contact-form label {
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  margin-top: 14px;
  color: var(--cream);
}

.contact-form input,
.contact-form textarea {
  padding: 13px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--black);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(225,168,57,.45);
  transform: translateY(-1px);
}

.contact-form button {
  margin-top: 24px;
  align-self: flex-start;
}

.contact-form button.btn-primary { box-shadow: 5px 5px 0 var(--night); }
.contact-form button.btn-primary:hover { box-shadow: 8px 8px 0 var(--night); }
.contact-form button.btn-primary:active { box-shadow: 1px 1px 0 var(--night); }

.form-status {
  min-height: 1.2em;
  color: var(--gold-hot);
  font-weight: 600;
  margin: 8px 0 0;
}

.facebook-link {
  text-align: center;
  margin-top: 34px;
}

.facebook-link a {
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.facebook-link a:hover { color: var(--gold-hot); }

.facebook-link a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.facebook-link a:hover span, .facebook-link a:hover { text-decoration: none; }

.fb-logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--cream);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.5);
}

.facebook-link a:hover .fb-logo { transform: rotate(-8deg) scale(1.15); }

/* Footer */

.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 26px 0;
  text-align: center;
  font-size: .9rem;
  border-top: 4px solid var(--gold);
}

.site-footer a,
.site-footer p { color: var(--cream); margin: 0; }

/* Scroll reveals (only active when JS adds .js-reveal) */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(34px) rotate(var(--tilt, 0deg));
  transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.9,.3,1.2) var(--d, 0ms), box-shadow .25s ease;
}

.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

.js-reveal .card.reveal.in:hover { transform: rotate(var(--tilt)) translateY(-6px); transition-delay: 0ms; }

/* Keyframes */

@keyframes awning-unroll {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-24px) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes flicker {
  0%, 18%, 22%, 62%, 66%, 100% { opacity: 1; }
  20%, 64% { opacity: .55; }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Larger screens */

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .section { padding: 96px 0; }
  .who-its-for { padding-bottom: 56px; }
  .awning { --scallop: 56px; height: 92px; }
}


.site-footer .dot { margin: 0 .5em; }
