/* Sharpe Web Services template kit: shared base styles.
   Colors and fonts come from assets/site.css (generated per site from
   site.json). The chosen style preset is appended below this file. */

/* ---------- Reset and document ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  line-height: 1.12;
  letter-spacing: var(--heading-tracking, -0.01em);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.4rem + 4vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Sample banner ---------- */
.sample-banner {
  --color-focus: var(--color-bg);
  position: relative;
  z-index: 20;
  padding: 0.55rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
}

.sample-banner p {
  max-width: none;
  margin: 0;
}

.sample-banner a {
  color: inherit;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.9rem;
}

.brand {
  flex: 1 1 0%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--heading-weight, 700);
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  display: none;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

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

/* Phones: spread longer menus across the row instead of wrapping one item. */
@media (max-width: 51.99rem) {
  .site-nav ul:has(> li:nth-child(4)) {
    justify-content: space-between;
    column-gap: 0.5rem;
  }
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.1rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.header-call {
  flex: none;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.975rem;
}

@media (max-width: 29.99rem) {
  .header-call-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 52rem) {
  .brand {
    flex: 0 1 auto;
  }

  .site-nav {
    order: 0;
    flex-basis: auto;
  }

  .site-nav ul {
    column-gap: 1.35rem;
  }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn, 0.4rem);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

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

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

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

.btn-secondary:hover {
  background: var(--color-surface);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.link-arrow .icon {
  transition: transform 0.15s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-space, clamp(3.5rem, 2.5rem + 4vw, 6rem));
}

.section-alt {
  background: var(--color-surface);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin-bottom: 0.35em;
}

.section-head p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.section-more {
  margin: 2.25rem 0 0;
}

.prose p {
  max-width: 62ch;
}

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.media-frame img {
  width: 100%;
}

/* ---------- Page header ---------- */
.page-hero {
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}

.page-hero h1 {
  margin-bottom: 0.35em;
}

.page-hero .lede {
  color: var(--color-muted);
  font-size: 1.2rem;
}

.page-hero + .section {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.page-hero.has-media .page-hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .page-hero.has-media .page-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* ---------- Hero (preset decides the layout) ---------- */
.hero-lede {
  font-size: 1.2rem;
}

.hero-media img {
  width: 100%;
}

.hero-points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Services ---------- */
.service-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.service-name {
  margin: 0;
  font-size: 1.25rem;
}

.service-price {
  margin: 0;
  color: var(--color-accent-text);
  font-weight: 700;
  white-space: nowrap;
}

.service-desc {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
}

.services-note {
  margin: 2.25rem 0 0;
  color: var(--color-muted);
  font-style: italic;
}

.about-points {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

.about-points li + li {
  margin-top: 0.35rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
}

.gallery-grid figcaption {
  margin-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.975rem;
  line-height: 1.4;
}

@media (max-width: 51.99rem) {
  .gallery-preview .gallery-grid li:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 52rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* ---------- Hours ---------- */
.hours {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.hours div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.cta-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .cta-band.has-aside .cta-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.cta-copy p {
  font-size: 1.15rem;
}

.cta-aside h3,
.contact-info h3,
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.cta-aside h3 {
  font-size: 1.15rem;
}

.cta-place {
  margin: 1rem 0 0;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 50rem;
}

.faq details {
  border-bottom: 1px solid var(--color-border);
}

.faq summary {
  padding-block: 1.1rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 1.25rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.form-card h2,
.contact-info h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.contact-info h3 {
  font-size: 1.15rem;
}

.contact-info .hours {
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.field-flag {
  color: var(--color-muted);
  font-weight: 400;
}

.field-hint {
  margin: -0.1rem 0 0.4rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--color-field-border);
  border-radius: var(--radius-field, 0.4rem);
  background: var(--color-field-bg);
  color: var(--color-text);
  font: inherit;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--color-error);
  font-size: 0.95rem;
  font-weight: 700;
}

.field-error:empty {
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 700;
}

.form-status:empty {
  margin: 0;
}

.form-status[data-tone="success"],
.form-status[data-tone="error"],
.form-status[data-tone="info"] {
  padding: 0.85rem 1rem;
  border-left: 4px solid currentColor;
  background: var(--color-surface);
}

.form-status[data-tone="error"] {
  color: var(--color-error);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.5rem 2rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.25rem;
}

.footer-heading {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-name {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--heading-weight, 700);
  line-height: 1.2;
}

.footer-phone a {
  font-weight: 700;
}

.site-footer a {
  color: inherit;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .hours div {
  justify-content: flex-start;
  flex-direction: column;
}

.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-rule, var(--color-border));
}

.footer-base p {
  max-width: none;
  margin: 0;
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .sample-banner,
  .site-nav,
  .header-call,
  .cta-band,
  .contact-form {
    display: none;
  }
}

/* ==========================================================================
   Preset: classic
   Editorial and calm: centered serif masthead with the nav on a ruled line,
   split hero with an arched image, hairline section rules, services as a
   price list with dotted leaders, staggered gallery, dark footer.
   ========================================================================== */

:root {
  --heading-weight: 400;
  --heading-tracking: -0.005em;
  --radius-btn: 2px;
  --radius-field: 2px;
  --wrap: 70rem;
  --section-space: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

h1 {
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.9rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
  line-height: 1.08;
}

/* ---------- Masthead ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  padding-block: 1rem 0;
}

.brand {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  letter-spacing: 0.01em;
}

.header-call {
  border-color: var(--color-text);
  color: var(--color-text);
}

.header-call:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.site-nav {
  margin-top: 0.35rem;
  border-top: 1px solid var(--color-border);
}

.site-nav ul {
  gap: 0 1.1rem;
}

.site-nav a {
  padding-block: 0.7rem;
  font-weight: 500;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
}

@media (min-width: 52rem) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-block: 1.6rem 0;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    font-size: 2.15rem;
  }

  .header-call {
    grid-column: 3;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    margin-top: 1.25rem;
  }

  .site-nav ul {
    justify-content: center;
    gap: 0 2.75rem;
  }

  .site-nav a {
    padding-block: 0.85rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4rem) clamp(3rem, 1.5rem + 4vw, 5rem);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  max-width: 13ch;
}

.hero-lede {
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.2rem;
}

.hero .actions {
  margin-top: 2rem;
}

.hero-media {
  position: relative;
  left: -0.625rem;
  isolation: isolate;
  width: min(100% - 1.25rem, 26rem);
  margin-inline: auto;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1px solid var(--color-accent);
  border-radius: 999px 999px 0 0;
}

.hero-media img {
  border-radius: 999px 999px 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.975rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (min-width: 56rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 5rem;
  }

  .hero-media {
    left: 0;
    margin-right: 1.25rem;
  }
}

/* ---------- Section heads: hairline rule, heading left, intro right ---------- */
.section-head {
  display: grid;
  gap: 0.75rem 3rem;
  margin-bottom: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-text);
}

.section-head h2,
.section-head p {
  margin: 0;
}

@media (min-width: 52rem) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* ---------- Services as a price list ---------- */
.service-list {
  gap: 0 4.5rem;
}

@media (min-width: 52rem) {
  .service-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.service {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--color-border);
}

.service-head {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.service-head::after {
  content: "";
  order: 1;
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--color-muted);
  transform: translateY(-0.3em);
}

.service-name {
  flex: 0 1 auto;
  font-size: 1.4rem;
  font-weight: 400;
}

.service-price {
  order: 2;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
}

/* ---------- About / media frames ---------- */
.media-frame {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.about-section .split-copy h2 {
  margin-bottom: 0.6em;
}

/* ---------- Gallery: staggered middle column ---------- */

.gallery-grid figcaption {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
}

@media (min-width: 52rem) {
  .gallery-grid li:nth-child(3n + 2) {
    margin-top: 3.5rem;
  }
}

/* ---------- Page header ---------- */
.page-hero {
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero .lede {
  margin-inline: auto;
  max-width: 40rem;
}

.page-hero.has-media {
  text-align: left;
}

/* ---------- Call to action ---------- */
.cta-band {
  background: var(--color-surface);
}

.cta-band h2 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  font-style: italic;
}

.cta-copy p {
  color: var(--color-muted);
}

.cta-copy .actions {
  margin-top: 1.75rem;
}

.cta-aside {
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-text);
}

/* ---------- Contact ---------- */
.form-card {
  padding: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.contact-info {
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-text);
}

.faq summary {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
}

/* ---------- Footer: dark ---------- */
.site-footer {
  --color-focus: var(--color-bg);
  --footer-rule: var(--color-muted);
  background: var(--color-text);
  color: var(--color-bg);
}

.footer-name {
  font-size: 1.6rem;
}
