/* Self-hosted fonts (SIL Open Font License 1.1). See fonts/LICENSE.txt. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Italic-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* Sunscape Painting — starter site styles
   Warm, professional, mobile-first. en-CA copy lives in the HTML. */

:root {
  --cream: #f6f0e4;
  --cream-dark: #ebe3d2;
  --paper: #fffbf5;
  --ink: #1c1914;
  --ink-soft: #3f3a33;
  --muted: #6a6358;
  --line: #e2d6c2;
  --line-strong: #cfc0a6;
  --sun: #e0a31a;
  --sun-deep: #b07608;
  --sun-soft: #f8e7b4;
  --sun-glow: rgba(224, 163, 26, 0.28);
  --earth: #3a2712;
  --forest: #2a4a38;
  --forest-soft: #e4eee8;
  --danger: #8a2a16;
  --header-h: 4.25rem;
  --sticky-bar-h: 4.25rem;
  --max: 70rem;
  --narrow: 42rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(28, 25, 20, 0.05), 0 10px 28px rgba(28, 25, 20, 0.07);
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --space: clamp(1rem, 2.5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

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

iframe {
  border: 0;
  width: 100%;
}

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

a:hover {
  color: var(--sun-deep);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 0.4rem 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ----- Header / nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(28, 25, 20, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--space);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

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

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.98rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 251, 245, 0.8);
}

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

.nav-cta {
  display: none;
}

.header-actions {
  display: none;
}

@media (max-width: 879px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem var(--space) 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }
}

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

  .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.4rem 0.65rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-gold {
  background: var(--sun);
  color: var(--ink);
}

.btn-gold:hover {
  background: #f0b020;
  color: var(--ink);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

/* ----- Layout ----- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.section {
  padding: clamp(2.75rem, 6vw, 5.5rem) 0;
}

.section-muted {
  background: var(--cream-dark);
}

.section-paper {
  background: var(--paper);
}

.section-ink {
  background: var(--earth);
  color: var(--cream);
}

.section-ink h2,
.section-ink h3 {
  color: var(--paper);
}

.section-ink a {
  color: var(--sun-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin: 0 0 0.6rem;
}

.section-ink .eyebrow {
  color: var(--sun);
}

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

.section-head h2 {
  margin: 0 0 0.6rem;
}

.lede,
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-ink .lede,
.section-ink .section-head p {
  color: #e8dcc6;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.6rem);
  margin: 0 0 1rem;
}

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

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

/* ----- Hero ----- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

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

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero h1 span {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--earth);
}

.hero .lede {
  font-size: 1.14rem;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f3c56a 0%, #f0d7a0 38%, #e8d3a8 62%, #c9b07a 100%);
}

/* ----- Trust badges ----- */

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem 0;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (min-width: 960px) {
  .trust-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.trust-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--sun-deep);
}

/* ----- Cards / grids ----- */

.card-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.card h3 {
  font-size: 1.22rem;
}

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

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--sun-deep);
}

.reasons .card {
  height: 100%;
}

/* ----- Split / about ----- */

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.prose {
  max-width: var(--narrow);
}

.prose h2 {
  margin-top: 0;
}

.prose ul,
.content-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li,
.content-list li {
  margin-bottom: 0.4rem;
}

.stat-stack {
  display: grid;
  gap: 0.9rem;
}

.stat {
  background: var(--paper);
  border-left: 4px solid var(--sun);
  padding: 1rem 1.15rem;
  border-radius: 0 0.6rem 0.6rem 0;
}

.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

/* ----- Gallery ----- */

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
}

.gallery-frame span {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--earth);
  opacity: 0.55;
  font-size: 1.05rem;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gallery-item figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.ph-1 { background: linear-gradient(160deg, #efe3c9, #d3c0a0 45%, #b9a07a); }
.ph-2 { background: linear-gradient(160deg, #e7efe8, #c5d4c8 50%, #8fa894); }
.ph-3 { background: linear-gradient(200deg, #f3e4d4, #e0c3a8 40%, #c49670); }
.ph-4 { background: linear-gradient(180deg, #dce6ef, #b7c5d4 55%, #8a9aab); }
.ph-5 { background: linear-gradient(150deg, #f6ecd0, #e8d29a 48%, #c9a24e); }
.ph-6 { background: linear-gradient(170deg, #eee6e0, #d4c8c0 50%, #9a8a80); }

/* ----- FAQ ----- */

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 50rem;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.9rem 0;
}

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* ----- Contact / forms ----- */

.contact-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.scheduler-frame {
  min-height: 42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.scheduler-frame iframe {
  min-height: 42rem;
  background: var(--paper);
}

.scheduler-fallback {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.scheduler-unconfigured {
  display: none;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}

.scheduler-unconfigured.is-visible,
.form-unconfigured.is-visible {
  display: block;
}

.form-unconfigured {
  display: none;
  padding: 0.85rem 1rem;
  background: var(--sun-soft);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  color: var(--earth);
}

.quote-form {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.req {
  color: var(--sun-deep);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

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

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

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

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
}

.contact-aside h2,
.contact-aside h3 {
  margin-top: 0;
}

.contact-dl {
  margin: 0;
}

.contact-dl div {
  margin-bottom: 0.85rem;
}

.contact-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-dl dd {
  margin: 0;
  font-weight: 600;
}

/* ----- CTA band ----- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
}

.cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--ink);
  color: #d9d0c3;
  padding: 2.75rem 0 7.5rem;
}

@media (min-width: 880px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

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

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

.site-footer a {
  color: var(--sun-soft);
}

.site-footer h2 {
  color: var(--paper);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.footer-brand .logo-name {
  color: var(--paper);
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-nav,
.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-meta a {
  text-decoration: none;
  color: #d9d0c3;
}

.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--sun-soft);
}

.footer-nav li,
.footer-meta li {
  margin-bottom: 0.35rem;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #3a342c;
  font-size: 0.85rem;
  color: #9a9286;
}

/* ----- Sticky mobile call/book bar ----- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(28, 25, 20, 0.96);
  border-top: 1px solid #3a342c;
}

.sticky-cta .btn {
  flex: 1;
}

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

/* ----- Page hero (interior pages) ----- */

.page-hero {
  padding: clamp(2rem, 4vw, 3.25rem) 0 0.5rem;
}

.page-hero h1 {
  max-width: 22ch;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ----- 404 ----- */

.page-404 {
  min-height: 55vh;
  display: grid;
  align-content: center;
  padding: 3rem 0 4rem;
  text-align: center;
}

.page-404 h1 {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Utility ----- */

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

hr.soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .sticky-cta,
  .nav-toggle,
  .hero-actions,
  .cta-band,
  .scheduler-frame {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-footer {
    background: #fff;
    color: #000;
    padding-bottom: 1rem;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

@media (min-width: 880px) and (max-width: 1120px) {
  .site-nav a {
    padding: 0.4rem 0.45rem;
    font-size: 0.9rem;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

.section-ink .btn-secondary {
  color: var(--paper);
  border-color: rgba(246, 240, 228, 0.45);
}

.section-ink .btn-secondary:hover {
  background: rgba(255, 251, 245, 0.12);
  color: var(--paper);
  border-color: var(--paper);
}

@media (max-width: 879px) {
  .hero {
    padding-bottom: calc(clamp(2.5rem, 6vw, 4.5rem) + var(--sticky-bar-h));
  }
}

.sticky-cta .btn-secondary {
  color: var(--paper);
  border-color: rgba(246, 240, 228, 0.5);
}

.sticky-cta .btn-secondary:hover {
  background: rgba(255, 251, 245, 0.12);
  color: var(--paper);
  border-color: var(--paper);
}
