/* Minimal fallback rules for every class in the shared contract.
 *
 * Always prepended to the model-generated stylesheet, which overrides it via the normal
 * later-wins cascade. This exists because the stylesheet and the pages are generated by
 * separate model calls, so the stylesheet can omit a contract class -- which used to fail
 * the whole build (a real business, find-dog, died on a missing `btn-primary`). With this
 * in place a missed rule degrades to plain-but-styled instead of destroying the build.
 *
 * Keep these deliberately neutral and low-specificity: they are a safety net, not a design.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Owner-uploaded pictures. Without explicit sizing an <img> renders at its natural size,
 * so a phone photo used as a logo would fill the whole header. */
.logo-mark { height: 2.5rem; width: auto; object-fit: contain; }
.hero-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: .5rem; }
.gallery-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.about-image { width: 100%; max-width: 420px; border-radius: .5rem; }

.site-header { padding: 1rem 0; }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; }
.logo-text { font-weight: 700; }
.main-nav { display: block; }
.nav-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; }
.nav-link:hover, .nav-link:focus { text-decoration: underline; }
.is-current { font-weight: 700; }

.hero, .page-hero { padding: 3rem 0; }

/* A photo sitting BEHIND the hero text instead of above it. The picture itself is set as
 * an inline `background-image` on the element, because it is per-business data the
 * stylesheet cannot know; these rules supply the darkening overlay and the stacking that
 * keep the heading readable over any photo, light or dark.
 *
 * Exists because an owner asked twice for exactly this and there was no way to express
 * it -- the only picture vocabulary was `.hero-image`, an <img> in the normal page flow. */
.hero-bg { position: relative; background-size: cover; background-position: center;
  padding: 5rem 0; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero-bg > * { position: relative; z-index: 1; }
.hero-bg .hero-title, .hero-bg .hero-subtitle { color: #fff; }
.hero-inner { display: flex; flex-direction: column; gap: 1rem; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }
.hero-subtitle { margin: 0; font-size: 1.125rem; }

.section { padding: 3rem 0; }
.section-alt { padding: 3rem 0; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-intro { margin: 0 0 1.5rem; max-width: 60ch; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { padding: 1.25rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.card-text { margin: 0; }

.steps { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; }
.step-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.step-text { margin: 0; }

/* FAQ items are <details>/<summary>: they expand on click with no JavaScript. */
html { scroll-behavior: smooth; }
.faq-list { display: grid; gap: 1rem; margin: 0; padding: 0; }
.faq-item { padding: 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.faq-question { margin: 0; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-weight: 700; flex: 0 0 auto; }
details[open] > .faq-question::after { content: "\2212"; }
.faq-answer { margin: .75rem 0 0; }

.cta-band { padding: 3rem 0; text-align: center; }
.cta-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cta-text { margin: 0 0 1.25rem; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: .4rem; text-decoration: none;
  border: 1px solid currentColor; cursor: pointer; }
.btn:hover, .btn:focus { opacity: .85; }
.btn-primary { font-weight: 600; }
.btn-secondary { font-weight: 500; background: transparent; }

.contact-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.contact-item { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-label { font-weight: 600; }
.contact-value { }

.site-footer { padding: 2rem 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-col { }
.footer-title { margin: 0 0 .5rem; font-size: 1rem; }
.footer-note { margin: 0; font-size: .9rem; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .step { flex-direction: column; }
}

/* ---- generated ---- */
:root {
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --color-bg: #0d1117;
  --color-surface: #151b23;
  --color-ink: #d8e0e8;
  --color-muted: #7d838a;
  --color-border: #2b3036;
  --color-accent: #4dff9f;
  --color-accent-ink: #111111;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
}

h1, h2, h3,
.hero-title, .section-title, .card-title, .cta-title, .step-title, .footer-title, .logo-text {
  font-family: var(--font-display);
}

/* =========================================================
   WebGenie Bot — shared stylesheet
   Concept: late-night terminal chat window building your site
   ========================================================= */

:root {
  /* palette */
  --bg: #0d1117;
  --surface: #151b23;
  --text: #d8e0e8;
  --text-secondary: #7d838a;
  --border: #2b3036;
  --accent: #4dff9f;
  --accent-ink: #111111;

  /* type */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  /* spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  /* radii — sharp, deliberate, small */
  --radius-sm: 4px;
  --radius-md: 6px;

  /* shadow */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 20px 40px -16px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover,
a:focus-visible {
  opacity: 0.8;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f2f6f9;
}

p {
  margin: 0 0 var(--space-2);
  max-width: 38em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* =========================================================
   Signature device — blinking terminal cursor
   ========================================================= */

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-title::after,
.section-title::after,
.cta-title::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.15em;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: cursor-blink 1s steps(1, end) infinite;
}

.cta-band .cta-title::after {
  background: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title::after,
  .section-title::after,
  .cta-title::after {
    animation: none;
    opacity: 1;
  }
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
  margin-right: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #f2f6f9;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  opacity: 1;
  border-color: var(--border);
}

.nav-link.is-current {
  color: var(--accent);
  border-color: var(--accent);
}

/* optional JS-driven mobile toggle support */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
}

/* =========================================================
   Hero
   ========================================================= */

.hero,
.page-hero {
  position: relative;
  padding: var(--space-8) var(--space-3) var(--space-7);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero {
  padding: var(--space-8) var(--space-3);
}

.page-hero {
  padding: var(--space-6) var(--space-3) var(--space-5);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 20%,
    rgba(77, 255, 159, 0.09),
    transparent 55%
  );
  pointer-events: none;
}

.hero-bg {
  background-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.75),
    rgba(13, 17, 23, 0.92)
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero .hero-inner {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: #f6f9fb;
}

.page-hero .hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 42em;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: var(--space-7) var(--space-3);
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: var(--space-2);
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 42em;
  margin-bottom: var(--space-5);
}

/* =========================================================
   Cards
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  color: #f2f6f9;
}

.card-text {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.98rem;
}

/* =========================================================
   Process steps
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-6);
}

.step-number {
  position: absolute;
  top: -0.4rem;
  left: 0;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.55;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
}

.step-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 46rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  transition: border-color 0.2s var(--ease);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #f2f6f9;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) 0;
}

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

.faq-question::before {
  content: "$";
  color: var(--accent);
  margin-right: var(--space-2);
  font-family: var(--font-head);
}

.faq-question::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-secondary);
  padding: var(--space-2) 0 var(--space-1) var(--space-4);
  font-size: 0.98rem;
}

/* =========================================================
   Call to action band
   ========================================================= */

.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-6) var(--space-3);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-title {
  color: var(--accent-ink);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: var(--space-2);
}

.cta-text {
  color: rgba(17, 17, 17, 0.75);
  max-width: 34em;
  margin: 0 auto var(--space-4);
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}

.cta-band .btn-primary:hover {
  background: #000;
}

.cta-band .btn-secondary {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.cta-band .btn-secondary:hover {
  background: rgba(17, 17, 17, 0.08);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #3fe08d;
  color: var(--accent-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(77, 255, 159, 0.1);
  color: var(--accent);
}

/* =========================================================
   Contact details
   ========================================================= */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 32rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-value {
  font-size: 1.15rem;
  color: var(--text);
}

.contact-value a {
  color: var(--accent);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: var(--space-6) var(--space-3) var(--space-4);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #f2f6f9;
  margin-bottom: var(--space-1);
}

.footer-col a {
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =========================================================
   Scroll reveal / carousel state hooks
   (base classes only ever added by JS — safe without it)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.is-active {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}

.main-nav.is-open .nav-list {
  display: flex;
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Media queries
   ========================================================= */

/* Large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: clamp(3rem, 5.5vw, 5.4rem);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .hero,
  .page-hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .nav-list {
    gap: var(--space-2);
    width: 100%;
    justify-content: flex-start;
  }
  .logo::before {
    margin-right: 20px;
    box-shadow: 10px 0 0 #ffbd2e, 20px 0 0 #27c93f;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding-top: var(--space-5);
  }
  .step-number {
    font-size: 3rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-title,
  .page-hero .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .section {
    padding: var(--space-5) var(--space-2);
  }
  .cta-band {
    padding: var(--space-5) var(--space-2);
  }
}