/* Swain House — Hearthstone design system */
:root {
  --ivory: #F7F2EA;
  --navy: #1E2A3A;
  --clay: #C4A484;
  --sage: #7A8F7A;
  --white: #FFFCFA;
  --muted: rgba(30, 42, 58, 0.68);
  --muted-soft: rgba(30, 42, 58, 0.5);

  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --shadow-soft: 0 8px 28px rgba(30, 42, 58, 0.07);
  --max: 42rem;
  --wide: 68rem;
  --header-h: 3.75rem;
}

*,
*::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;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.28;
  color: var(--navy);
  margin: 0 0 var(--space-md);
}

h1 { font-size: clamp(1.85rem, 5.2vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin: 0 0 var(--space-md); }

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

a:hover {
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}

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

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 var(--space-sm);
}

.section-intro {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: var(--space-xl);
}

.section-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  padding-block: var(--space-2xl);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 164, 132, 0.35);
}

.header-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}

.brand:hover { color: var(--navy); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.brand-swain {
  font-weight: 700;
}

.brand-house {
  font-weight: 600;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover { color: var(--navy); }

.nav-cta {
  color: var(--navy) !important;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(196, 164, 132, 0.7);
  border-radius: 999px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--clay);
  border-radius: 999px;
  background: transparent;
}

.header-cta:hover {
  background: rgba(196, 164, 132, 0.18);
  color: var(--navy);
}

@media (min-width: 880px) {
  .nav { display: flex; }
  .header-cta { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
}

.btn-primary:hover {
  background: #162231;
  color: var(--ivory);
}

/* Hero */
.hero {
  display: grid;
  gap: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  background: #c9b8a0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 28rem;
  object-fit: cover;
  object-position: center 45%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 42, 58, 0.18) 0%,
    transparent 45%
  );
  pointer-events: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: url("images/hearth-wash.png") center / cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-copy {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.hero-copy .lede {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    min-height: 28rem;
  }

  .hero-media {
    min-height: 100%;
    order: 2;
  }

  .hero-media img {
    min-height: 100%;
    max-height: none;
    height: 100%;
  }

  .hero-copy {
    order: 1;
    width: auto;
    max-width: 32rem;
    margin: 0;
    padding: var(--space-2xl) clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Who we serve */
.serve {
  background: var(--white);
  border-block: 1px solid rgba(196, 164, 132, 0.28);
}

.serve-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.serve-list li {
  padding: var(--space-lg);
  background: var(--ivory);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196, 164, 132, 0.28);
}

.serve-list h3 {
  font-family: var(--font-serif);
}

.serve-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 760px) {
  .serve-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* How we work */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  counter-reset: none;
}

.steps li {
  position: relative;
  padding-left: 0;
  border-top: 1px solid rgba(196, 164, 132, 0.35);
  padding-top: var(--space-md);
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--clay);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .steps li {
    border-top: none;
    border-left: 1px solid rgba(196, 164, 132, 0.35);
    padding-top: 0;
    padding-left: var(--space-md);
  }

  .steps li:first-child {
    border-left: none;
    padding-left: 0;
  }
}

/* Pillars */
.pillars {
  background:
    linear-gradient(rgba(247, 242, 234, 0.88), rgba(247, 242, 234, 0.92)),
    url("images/ivory-linen.png") center / 420px repeat;
}

.pillar-grid {
  display: grid;
  gap: var(--space-md);
}

.pillar-card {
  background: var(--white);
  border: 1px solid rgba(196, 164, 132, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.pillar-icon {
  display: block;
  color: var(--sage);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* About */
.about {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-block: 1px solid rgba(196, 164, 132, 0.28);
}

.about-wash {
  position: absolute;
  inset: 0;
  background: url("images/hearth-wash.png") center / cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.about-inner {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
}

.about-inner p {
  color: var(--muted);
}

/* Contact */
.contact-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(196, 164, 132, 0.55);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
}

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

.form-note {
  margin: var(--space-sm) 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 252, 250, 0.78);
  padding: var(--space-xl) 0;
}

.footer-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  margin: 0 0 0.35rem;
}

.footer-credit {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: rgba(255, 252, 250, 0.55);
}

.footer-quiet {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 252, 250, 0.48);
}

.footer-quiet a {
  color: rgba(196, 164, 132, 0.95);
  text-decoration: none;
}

.footer-quiet a:hover {
  color: var(--ivory);
  text-decoration: underline;
}

.footer-quiet .dot {
  margin: 0 0.45rem;
  opacity: 0.5;
}
