/* Palette from The Painting Company's black logo and charcoal site nav,
   with a warm brass accent added for buttons (dark text on it passes AA). */
:root {
  --ink: #161616;
  --charcoal: #2b2b2b;
  --slate: #55524c;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --line: #ddd8cc;
  --accent: #d6a23e;
  --accent-dark: #b9862a;
  --white: #fff;
  --radius: 14px;
  --radius-xl: 22px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgb(22 22 22 / .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); padding-top: 1.75rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--slate); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Preview ribbon */
.ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 1.75rem; display: flex; align-items: center; justify-content: center; padding: 0 .75rem; background: #e9e5da; color: #3d3a34; font-size: .75rem; line-height: 1.2; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--paper); }
.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.nav { position: sticky; top: 1.75rem; z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.logo img { height: 3rem; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--charcoal); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 1.25rem 1.25rem 0; background: var(--white); }
.hero-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); min-height: min(40rem, calc(100svh - 8.5rem)); display: flex; align-items: flex-end; padding: 6rem 3.5rem 3.5rem; color: var(--white); background: var(--charcoal); }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 16 16 / .78) 0%, rgb(16 16 16 / .5) 45%, rgb(16 16 16 / .1) 80%), linear-gradient(0deg, rgb(16 16 16 / .45) 0%, rgb(16 16 16 / 0) 50%); }
.hero-copy { max-width: 42rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-shadow: 0 2px 18px rgb(0 0 0 / .3); }
.hero .lead { font-size: 1.2rem; color: rgb(255 255 255 / .94); max-width: 34rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

.tagline { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5a17; }
.tagline-light { color: var(--accent); }

/* Trust strip */
.trust { padding: 1.5rem 0; }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .65rem; font-size: .92rem; line-height: 1.35; color: var(--slate); text-decoration: none; padding: .9rem 1rem; background: var(--paper); border-radius: var(--radius); }
.trust-item strong { color: var(--ink); }
.trust-item .ic { width: 1.6rem; height: 1.6rem; color: var(--charcoal); }
.trust-google { flex-direction: column; align-items: flex-start; gap: .15rem; }
.trust-google:hover { background: var(--paper-2); }
.stars { color: #b07a12; letter-spacing: .1em; font-size: 1.05rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.s-tint { background: var(--paper); }
.s-dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; display: flex; flex-direction: column; gap: .75rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card-body p { color: var(--slate); font-size: .97rem; }
.also { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.also li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.25rem; background: var(--paper); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.also span { color: var(--slate); font-size: .93rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 15rem 15rem; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: 2 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:nth-child(4) img { object-position: center 22%; }
.gallery figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgb(22 22 22 / .78); color: var(--white); font-size: .85rem; font-weight: 500; padding: .35rem .75rem; border-radius: 999px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { padding: 2rem 1.75rem; background: var(--paper); border-radius: var(--radius); display: flex; flex-direction: column; gap: .6rem; }
.step-num { font-family: var(--serif); font-size: 2.25rem; font-weight: 600; color: #8a6618; line-height: 1; }
.steps p { color: var(--slate); }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area > div { display: flex; flex-direction: column; gap: .9rem; }
.area p { color: rgb(255 255 255 / .82); }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.towns li { padding: .6rem 1.15rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; font-weight: 500; }

/* Quote form */
.quote { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.quote-copy { display: flex; flex-direction: column; gap: .9rem; }
.contact-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; }
.form { background: var(--paper); border-radius: var(--radius-xl); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; }
input, textarea { font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #c9c3b6; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent-dark); outline-offset: 1px; border-color: var(--accent-dark); }
.form-note { background: var(--ink); color: var(--white); padding: .9rem 1rem; border-radius: 10px; font-size: .95rem; }

/* Footer */
.footer { background: var(--charcoal); color: rgb(255 255 255 / .82); padding: 3.5rem 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-logo { height: 3.25rem; width: auto; margin-bottom: 1rem; }
.footer h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .6rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.call-bar { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-google { grid-column: span 2; }
  .cards, .also { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 1rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  body { padding-top: 2.25rem; }
  .ribbon { height: 2.25rem; font-size: .68rem; white-space: normal; }
  .nav { top: 2.25rem; }
  .container { padding: 0 1rem; }
  .nav-bar { height: 4rem; gap: .75rem; }
  .logo img { height: 2.4rem; }
  .btn-sm { padding: .55rem .9rem; font-size: .9rem; }
  .hero { padding: .75rem .75rem 0; }
  .hero-card { min-height: 33rem; padding: 4rem 1.25rem 1.5rem; border-radius: 18px; }
  .hero-card > img { object-position: 35% center; }
  .hero-card::before { background: linear-gradient(0deg, rgb(16 16 16 / .85) 0%, rgb(16 16 16 / .62) 55%, rgb(16 16 16 / .4) 100%); }
  .hero h1 { font-size: 2.15rem; }
  .hero .tagline { font-size: .7rem; letter-spacing: .08em; }
  .hero .lead { font-size: 1.05rem; }
  .hero-btns .btn { width: 100%; }
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .trust-row { grid-template-columns: 1fr; gap: .6rem; }
  .trust-google { grid-column: auto; }
  .cards, .also { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 13rem 13rem 13rem; gap: .6rem; }
  .gallery figure:first-child { grid-row: auto; grid-column: span 2; }
  .gallery figure:nth-child(4) { grid-column: span 2; }
  .gallery figcaption { font-size: .78rem; }
  .steps { grid-template-columns: 1fr; }
  .area, .quote { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: .75rem 1rem calc(.9rem + env(safe-area-inset-bottom)); background: rgb(22 22 22 / .92); backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .3s ease; }
  .call-bar.is-visible { transform: none; }
  .call-bar a { display: flex; align-items: center; justify-content: center; padding: .85rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
  .call-bar-call { background: var(--accent); color: var(--ink); }
  .call-bar-quote { background: var(--white); color: var(--ink); }
}
