/* Gilt & Grain — Custom Framing & Art Conservation Studio
   Design system: warm editorial palette, serif display type, restrained motion. */

:root {
  --ink: #1c2620;
  --pine: #2b3d31;
  --pine-deep: #1a2a20;
  --cream: #f4efe4;
  --cream-2: #eae2d2;
  --paper: #fbf8f1;
  --brass: #a9803f;
  --brass-light: #c9a262;
  --line: rgba(28, 38, 32, 0.14);
  --max: 1180px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--pine-deep);
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand .name em {
  font-style: normal;
  color: var(--brass);
}

.brand .tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  opacity: 0.7;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.primary a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--pine-deep);
  position: relative;
  padding: 4px 0;
}

nav.primary a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s ease;
}

nav.primary a:not(.btn):hover::after { right: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--pine-deep);
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--pine-deep);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brass); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--pine-deep);
  color: var(--pine-deep);
}
.btn-ghost:hover { background: var(--pine-deep); color: var(--paper); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(251,248,241,0.5);
  color: var(--paper);
}
.btn-outline-light:hover { background: var(--paper); color: var(--pine-deep); }

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

.hero {
  background: linear-gradient(180deg, var(--pine-deep) 0%, var(--pine) 100%);
  color: var(--cream);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-light);
}

.hero p.lead {
  font-size: 1.08rem;
  max-width: 46ch;
  color: rgba(244, 239, 228, 0.86);
  margin: 0 0 34px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero .trust-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244,239,228,0.18);
  padding-top: 22px;
}

.hero .trust-strip .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass-light);
}
.hero .trust-strip .stat span {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: rgba(244,239,228,0.72);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(244,239,228,0.28);
  padding: 18px;
}

.hero-art .frame {
  width: 100%;
  height: 100%;
  border: 10px solid var(--brass-light);
  outline: 1px solid rgba(28,38,32,0.4);
  outline-offset: -11px;
  background:
    linear-gradient(160deg, #3c4d3f 0%, #24352a 55%, #1a2a20 100%);
  position: relative;
}

.hero-art .frame::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(244,239,228,0.35);
}

.hero-art figcaption {
  margin-top: 14px;
  font-size: 0.74rem;
  color: rgba(244,239,228,0.6);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ---------- Section shell ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.section-head .eyebrow { color: var(--brass); }

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 14px;
  color: var(--pine-deep);
}

.section-head p {
  color: rgba(28, 38, 32, 0.7);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------- Services ---------- */

.services {
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.08em;
}

.service-card .icon {
  width: 40px;
  height: 40px;
  color: var(--pine-deep);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  margin: 0;
  color: var(--pine-deep);
}

.service-card p {
  margin: 0;
  color: rgba(28,38,32,0.72);
  font-size: 0.96rem;
  flex: 1;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: rgba(28,38,32,0.6);
}

.service-card li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.service-card li:first-child { border-top: none; }

/* ---------- Proof / testimonials ---------- */

.proof {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

blockquote.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

blockquote.testimonial .stars {
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

blockquote.testimonial p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

blockquote.testimonial footer {
  font-size: 0.82rem;
  color: rgba(28,38,32,0.6);
}

blockquote.testimonial footer b {
  display: block;
  color: var(--pine-deep);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* ---------- Contact CTA ---------- */

.contact-cta {
  background: var(--pine-deep);
  color: var(--cream);
}

.contact-cta .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-cta .eyebrow { color: var(--brass-light); }

.contact-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin: 0 0 18px;
}

.contact-cta p.lead {
  color: rgba(244,239,228,0.78);
  max-width: 46ch;
  margin: 0 0 30px;
}

.contact-cta .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-panel {
  background: rgba(244,239,228,0.06);
  border: 1px solid rgba(244,239,228,0.18);
  padding: 32px;
}

.contact-panel dl {
  margin: 0;
  display: grid;
  gap: 20px;
}

.contact-panel dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 4px;
}

.contact-panel dd {
  margin: 0;
  font-size: 1.02rem;
}

.contact-panel a { text-decoration: none; border-bottom: 1px solid rgba(244,239,228,0.35); }
.contact-panel a:hover { border-color: var(--brass-light); }

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

footer.site-footer {
  background: var(--cream-2);
  padding: 40px 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(28,38,32,0.62);
}

footer.site-footer nav a {
  text-decoration: none;
  margin-left: 20px;
}
footer.site-footer nav a:first-child { margin-left: 0; }
footer.site-footer nav a:hover { color: var(--pine-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .service-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-cta .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.primary {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  nav.primary.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.primary a { padding: 12px 0; width: 100%; }
  .menu-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
}

@media (max-width: 480px) {
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .contact-panel { padding: 24px; }
}
