/* Cove Web Design — typography and layout.
   Palette: cream #FBF8F4, charcoal #3C3C3A, pale blush accents, one near-black CTA band.
   System geometric sans. No webfonts, no external CDNs. */

:root {
  --cream: #FBF8F4;
  --bg: #FBF8F4;
  --white: #FFFFFF;
  --ink: #3C3C3A;
  --nearblack: #1F1F1E;
  --muted: #686866;
  --blush: #F9E8E7;
  --blush-deep: #F7D9DA;
  --line: #E8E0D8;
  --line-ui: #848482;
  --focus: #3C3C3A;
  --max: 72rem;
  --narrow: 40rem;
  --font: "Avenir Next", Avenir, "Century Gothic", Futura, "Trebuchet MS", "Gill Sans", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 5rem, var(--max));
  }
}

.wrap.narrow,
.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

@media (min-width: 720px) {
  .wrap.narrow,
  .narrow {
    width: min(100% - 5rem, var(--narrow));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* White header bar so the logo's native white canvas does not show as a box on cream. */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.15rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  background: var(--white);
}

.logo img {
  display: block;
  width: 180px;
  height: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

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

  .header-inner nav,
  .nav-list {
    width: 100%;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: 0.5rem;
    row-gap: 0;
  }
}

@media (min-width: 720px) {
  .nav-list a {
    padding: 0.35rem 0.65rem;
  }
}

.nav-list a:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--blush-deep);
}

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}

/* Editorial type */

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.75rem);
  margin: 0 0 1.25rem;
  font-weight: 500;
  max-width: 11em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0 0 1.15rem;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 34rem;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--blush-deep);
}

/* Soft watercolor brush — CSS only, two uses: hero word, month-to-month phrase */

.brush {
  position: relative;
  z-index: 0;
  font-style: inherit;
  font-weight: inherit;
}

.brush::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.14em;
  right: -0.18em;
  top: 0.2em;
  bottom: 0.02em;
  background:
    radial-gradient(120% 85% at 12% 55%, var(--blush) 0%, transparent 72%),
    radial-gradient(95% 110% at 82% 58%, var(--blush-deep) 0%, transparent 68%),
    var(--blush);
  border-radius: 48% 38% 52% 42% / 42% 58% 38% 62%;
  transform: rotate(-1.1deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .brush::before {
    transform: none;
  }
}

/* Buttons */

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 2rem;
}

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
button[type="submit"]:hover {
  background: var(--nearblack);
  border-color: var(--nearblack);
  color: var(--white);
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Layout — airy, left-aligned, restrained asymmetry */

.hero,
.page-header {
  padding: 3.5rem 0 3.25rem;
}

.hero-inner,
.page-header .wrap {
  max-width: none;
}

.hero-copy {
  max-width: 36rem;
}

.section {
  padding: 3.75rem 0;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

/* section-alt kept in markup but no longer a pink (or other) fill */
.section-alt {
  background: var(--cream);
}

.cta-section {
  background: var(--nearblack);
  color: var(--white);
  border-top: 0;
  padding: 4.5rem 0;
}

.cta-section h2 {
  color: var(--white);
  max-width: 16ch;
}

.cta-section p {
  max-width: 36rem;
}

.cta-section .button {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.cta-section .button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.cta-section .button-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.cta-section .button-secondary:hover {
  background: var(--cream);
  color: var(--ink);
}

.split-editorial {
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 880px) {
  .hero,
  .page-header {
    padding: 6.5rem 0 5.5rem;
  }

  .section {
    padding: 6rem 0;
  }

  .cta-section {
    padding: 6.25rem 0;
  }

  .split-editorial {
    grid-template-columns: 5fr 7fr;
    gap: 3rem 5rem;
    align-items: start;
  }

  .section-head h2 {
    max-width: 12ch;
  }
}

.split {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin: 2rem 0 1.75rem;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 0;
}

/* Placeholder notes — charcoal rule, no pink fill */

.placeholder-note {
  border-left: 3px solid var(--ink);
  background: transparent;
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

/* How-it-works steps — large numerals */

.steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 2.25rem;
}

.steps > li {
  counter-increment: step;
  padding-top: 0.25rem;
  position: relative;
}

.steps > li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.65rem;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Our Work — browser frames and project cards */

.project-grid {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.split-editorial + .project-grid {
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 1.75rem;
  }

  /* Third card stays in the first column so the row is not stretched full-width. */
  .project-grid > li:nth-child(3) {
    grid-column: 1;
  }
}

@media (min-width: 1000px) {
  .project-grid-teaser {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .project-grid-teaser > li:nth-child(3) {
    grid-column: auto;
  }
}

.project-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.project-body h3 {
  margin: 0;
}

.project-body h3 a {
  text-decoration: none;
}

.project-body h3 a:hover {
  box-shadow: inset 0 -2px 0 var(--blush-deep);
}

.project-desc,
.project-link {
  margin: 0;
}

.project-badge,
.project-badge-slot {
  display: inline-block;
  min-height: 1.35rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.project-badge {
  background: var(--blush);
  color: var(--ink);
}

.project-badge-slot {
  visibility: hidden;
}

.browser-frame {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.35rem;
  padding: 0 0.7rem;
  background: #F6F1EB;
  border-bottom: 1px solid var(--line);
}

.browser-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #C8BFB6;
}

.browser-frame-screen {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-frame-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-placeholder {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Keep older class names harmless if they appear in leftover markup. */
.portfolio-grid {
  list-style: none;
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.portfolio-card {
  border: 1px dashed var(--line-ui);
  background: transparent;
  min-height: 11rem;
  padding: 1.35rem;
}

.portfolio-label {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Forms */

form {
  margin-top: 1.75rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.req,
.not-required {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-ui);
  padding: 0.7rem 0.8rem;
  border-radius: 0;
}

textarea {
  resize: vertical;
  min-height: 10rem;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Footer — light cream, not a dark band */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 2.5rem;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.footer-brand p {
  margin-bottom: 0.3rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--blush-deep);
  text-decoration: none;
}

.footer-contact,
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin: 1rem 0 0;
}

.footer-contact a,
.contact-direct a {
  color: var(--ink);
  font-weight: 600;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 0.5rem;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* Month-to-month note — stands out without a pink fill */

.month-note {
  background: transparent;
  color: var(--ink);
  border-left: 3px solid var(--ink);
  padding: 0.15rem 0 0.15rem 1.2rem;
  margin: 0 0 2.5rem;
  font-weight: 600;
  line-height: 1.55;
  max-width: 42rem;
}

/* Package comparison */

.package-grid,
.teaser-grid {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 2rem;
}

.split-editorial + .teaser-grid,
.split-editorial + .package-grid {
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .package-grid,
  .teaser-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.75rem;
  }
}

.package-card,
.teaser-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.package-card h3,
.teaser-card h3 {
  margin: 0;
}

/* Editorial emphasis on Small Business: charcoal header strip, no extra label */

.package-card-emphasis,
.teaser-card-emphasis {
  border-color: var(--ink);
}

.package-card-emphasis h3,
.teaser-card-emphasis h3 {
  background: var(--ink);
  color: var(--white);
  margin: -1.6rem -1.5rem 0.4rem;
  padding: 0.95rem 1.5rem;
  letter-spacing: -0.02em;
}

.package-prices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

.price-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0;
  line-height: 1.15;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-amount {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.package-includes {
  margin: 0 0 0.35rem;
  padding-left: 1.15rem;
}

.package-includes li {
  margin-bottom: 0.3rem;
}

.package-card .card-cta,
.package-card > p.card-cta {
  margin-top: auto;
  margin-bottom: 0;
}
