/* ============================================================
   Cherry Software Solutions LLC — styles
   Palette: cream, deep cherry, blush, charcoal
   ============================================================ */

:root {
  --cream: #FDFBF7;
  --blush: #FFF0F3;
  --blush-deep: #FFCCD5;
  --cherry: #C9184A;
  --cherry-deep: #A4133C;
  --cherry-dark: #590D22;
  --leaf: #3A7D44;
  --stem: #7A4A2B;
  --tag: #F2A7B8;
  --border-input: #EAD9DD;
  --blush-light: #FFF7F8;
  --banner-end: #7A102E;
  --ink: #2B2024;
  --ink-soft: #6B5B61;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --nav-height: 72px;
  --banner-height: 56px;
  --radius: 14px;
  --shadow-soft: 0 6px 24px rgba(89, 13, 34, 0.08);
  --shadow-lift: 0 14px 36px rgba(89, 13, 34, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  /* keep content clear of the fixed bottom banner */
  padding-bottom: var(--banner-height);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.mono { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
}

a { color: var(--cherry-deep); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { border-radius: 999px; }

/* ============ TOP NAVIGATION ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(164, 19, 60, 0.10);
  transition: box-shadow 0.25s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* shared cherry SVG styling (logo, divider) */
.stem { stroke: var(--stem); stroke-width: 2.6; stroke-linecap: round; }
.leaf { fill: var(--leaf); }
.cherry-a { fill: var(--cherry); }
.cherry-b { fill: var(--cherry-deep); }
.shine { stroke: rgba(255, 255, 255, 0.75); stroke-width: 2.4; stroke-linecap: round; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-accent { color: var(--cherry-deep); }

.brand-bracket {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--tag);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2.2rem);
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cherry-deep);
  border-bottom-color: var(--cherry);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 8.5rem) 0 clamp(4.5rem, 10vh, 7.5rem);
  background: var(--cream);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(89, 13, 34, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%);
}

.hero-inner { position: relative; }

.hero-eyebrow {
  color: var(--cherry);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 2.4rem;
}

/* cherry divider */
.cherry-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.8rem auto 1.4rem;
  max-width: 420px;
}

.divider-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--blush-deep));
}

.divider-line:last-child {
  background: linear-gradient(90deg, var(--blush-deep), transparent);
}

.divider-cherry { width: 34px; height: 34px; flex-shrink: 0; }

/* buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cherry), var(--cherry-deep));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 24, 74, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 24, 74, 0.36);
}

.btn-ghost {
  color: var(--cherry-deep);
  border-color: var(--blush-deep);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(4rem, 9vh, 6.5rem) 0;
  scroll-margin-top: var(--nav-height);
}

/* thin hairline between sections that fades out at both ends */
.hero + .section,
.section + .section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(164, 19, 60, 0.18), transparent) 1;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-tag {
  color: var(--tag);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-tag-close {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 600;
}

.heading-rule {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--cherry), var(--cherry-deep));
}

.section-intro {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 1.2rem auto 0;
}

/* ============ EXPERTISE CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.card {
  background: var(--white);
  border: 1px solid rgba(164, 19, 60, 0.08);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(201, 24, 74, 0.25);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blush);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

.card-icon path,
.card-icon rect,
.card-icon circle {
  stroke: var(--cherry-deep);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card .card-stack {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cherry-deep);
}

/* ============ ABOUT ============ */
.about-grid {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}

.about-text p + p { margin-top: 1.1rem; }
.about-text p { color: var(--ink-soft); font-size: 1.02rem; }

.about-media { min-height: 280px; }

.media-placeholder {
  height: 100%;
  min-height: 280px;
  border: 2px dashed var(--blush-deep);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--tag);
}

.media-placeholder svg {
  width: 56px;
  height: 56px;
}

.media-placeholder svg path,
.media-placeholder svg rect,
.media-placeholder svg circle {
  stroke: var(--blush-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-placeholder span { font-size: 0.85rem; }

/* ============ CONTACT FORM ============ */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(164, 19, 60, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cherry);
  box-shadow: 0 0 0 3px rgba(201, 24, 74, 0.12);
}

.contact-form .btn { align-self: center; margin-top: 0.4rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-note a { color: var(--cherry-deep); }

.form-status {
  text-align: center;
  font-size: 0.92rem;
  color: var(--leaf);
  background: #EEF6EF;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.form-status.error {
  color: var(--cherry-deep);
  background: var(--blush);
}

.form-status[hidden] { display: none; }

/* ============ FIXED BOTTOM BANNER ============ */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  min-height: var(--banner-height);
  background: linear-gradient(90deg, var(--cherry-dark), var(--banner-end));
  color: var(--blush);
  display: flex;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(89, 13, 34, 0.25);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.banner-email {
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 240, 243, 0.35);
  transition: border-color 0.2s ease;
}

.banner-email:hover { border-bottom-color: var(--white); }

.banner-copy {
  font-size: 0.85rem;
  color: rgba(255, 240, 243, 0.85);
}

/* ============ SCROLL REVEAL ============ */
/* only hide when JS is running, so content still shows if the script fails */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about-media { order: -1; min-height: 220px; }
  .media-placeholder { min-height: 220px; }
}

@media (max-width: 620px) {
  :root { --nav-height: 96px; --banner-height: 64px; }

  .nav-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0;
  }

  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 32px; height: 32px; }

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

  /* stack email + copyright compactly so the banner height stays predictable */
  .banner-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.45rem 0;
    text-align: center;
  }

  .banner-email { font-size: 0.88rem; }
  .banner-copy { font-size: 0.75rem; }
}

/* longer wordmark needs a little more room on the narrowest phones */
@media (max-width: 380px) {
  .brand-name { font-size: 0.95rem; }
  .brand-mark { width: 28px; height: 28px; }
}
