/* ==========================================================================
   Uncommon Framing — Lubbock, TX
   Heritage-craft design system: warm neutrals, neon red-orange accent,
   Fraunces (editorial serif) + Inter (humanist sans), matting-inspired
   framing devices. Mobile-first.
   ========================================================================== */

:root {
  /* palette — warm neutrals + neon accent (sampled from the shop's sign) */
  --ivory: #f7f3ec;
  --linen: #efe8db;
  --paper: #fcfaf5;
  --ink: #24201a;
  --ink-soft: #4c453b;
  --muted: #6f675a;
  --walnut: #5c4633;
  --hairline: rgba(36, 32, 26, 0.14);
  --hairline-soft: rgba(36, 32, 26, 0.08);
  --accent: #e2401d;          /* neon red-orange */
  --accent-deep: #bd3013;
  --accent-glow: rgba(226, 64, 29, 0.16);
  --charcoal: #221e18;
  --charcoal-2: #2b261f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;

  --shadow-soft: 0 1px 2px rgba(36, 32, 26, 0.06), 0 8px 28px rgba(36, 32, 26, 0.08);
  --shadow-deep: 0 2px 6px rgba(36, 32, 26, 0.1), 0 18px 48px rgba(36, 32, 26, 0.16);
}

/* ------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ type helpers */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1.1em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.section-lede { color: var(--muted); font-size: 1.05rem; margin-top: 0.4em; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff8f2;
  box-shadow: 0 1px 2px rgba(189, 48, 19, 0.3), 0 10px 26px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff8f2;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm { padding: 11px 18px; font-size: 0.88rem; }
.btn-icon { font-size: 1em; line-height: 0; }

/* icon-only phone button on narrow screens so the header never overflows */
@media (max-width: 559px) {
  .btn-phone-label { display: none; }
  .header-actions .btn-sm { padding: 11px 14px; }
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-glow);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------ matting device
   Every photo sits inside a "mat": paper field, hairline frame,
   inner fillet line — the craft echoed in the layout. */

.matted {
  background: var(--paper);
  padding: clamp(10px, 1.8vw, 16px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.matted img,
.matted iframe {
  border: 1px solid var(--hairline-soft);
  width: 100%;
}
.matted figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 10px;
  text-align: center;
}
.matted--tight { padding: 8px; box-shadow: none; }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(36, 32, 26, 0.07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark-script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav panel */
body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 24px 40px rgba(36, 32, 26, 0.12);
  padding: 10px var(--gutter) 22px;
}
body.nav-open .site-nav a {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
body.nav-open .site-nav a:last-child { border-bottom: none; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    gap: clamp(20px, 3vw, 38px);
  }
  .site-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
    padding: 6px 0;
    position: relative;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.25s ease;
  }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after { right: 0; }
}

/* ------------------------------------------------------------ hero */

.hero {
  padding: clamp(44px, 8vw, 104px) 0 clamp(48px, 7vw, 92px);
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 6.4vw, 3.9rem);
  margin-bottom: 0.45em;
}

.lede {
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.8em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* trust bar — adjacent to the CTA, never buried */
.trust-bar {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trust-bar li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-bar li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg); /* tiny mat-corner diamond */
}

.hero-figure { position: relative; }
/* storefront runs large; crop top/bottom to a landscape frame around the sign + window */
.hero-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 15%;
}

@media (min-width: 900px) {
  /* give the storefront the dominant share of the hero */
  .hero-grid { grid-template-columns: 0.86fr 1.14fr; }
  .trust-bar { flex-direction: row; gap: 12px 22px; flex-wrap: wrap; }
}

/* ------------------------------------------------------------ sections */

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--slim { padding: clamp(36px, 6vw, 64px) 0; }
.section--tinted {
  background: var(--linen);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

/* ------------------------------------------------------------ steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.35em; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

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

/* ------------------------------------------------------------ pricing band */

.pricing-band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(56px, 8vw, 92px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* faint neon warmth in the dark band */
.pricing-band::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 120%, rgba(226, 64, 29, 0.22), transparent 55%);
  pointer-events: none;
}
.pricing-band > .container { position: relative; }

.pricing-headline {
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--ivory);
  margin-bottom: 0.4em;
}
.pricing-headline::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 26px auto 0;
}
.pricing-sub {
  font-size: 1.08rem;
  color: rgba(247, 243, 236, 0.85);
  max-width: 34em;
  margin: 1.4em auto 0.6em;
}
.pricing-note {
  font-size: 0.82rem;
  color: rgba(247, 243, 236, 0.55);
  margin: 0;
}

/* ------------------------------------------------------------ services */

.services-grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.service-card h3 {
  font-size: 1.3rem;
  margin: 20px 0 0.35em;
}
.service-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.service-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-media { overflow: hidden; }
.service-card:hover .service-media img { transform: scale(1.025); }

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

/* ------------------------------------------------------------ gallery */

.gallery {
  columns: 1;
  column-gap: 26px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 26px;
}
.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.gallery-trigger img { transition: opacity 0.25s ease; }
.gallery-trigger:hover img { opacity: 0.92; }

@media (min-width: 620px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }

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

.about-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.about-body p { color: var(--ink-soft); }
.about-body p:first-child { font-size: 1.08rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--walnut);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ------------------------------------------------------------ visualizer teaser */

.visualizer-card {
  border: 1px dashed var(--hairline);
  background: var(--paper);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.visualizer-card .eyebrow { justify-content: center; }
.visualizer-card .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.visualizer-headline { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.visualizer-card p:last-child {
  color: var(--muted);
  max-width: 42em;
  margin: 0 auto;
}

/* ------------------------------------------------------------ visit */

.visit-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.visit-block { margin-bottom: 30px; }
.visit-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7em;
}
.visit-block p { margin: 0 0 8px; font-size: 1.02rem; }

.visit-phone {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.visit-phone:hover { color: var(--accent-deep); }

.hours { margin: 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.97rem;
}
.hours-row dt { color: var(--ink-soft); }
.hours-row dd { margin: 0; font-weight: 600; color: var(--ink); }
.hours-row.is-closed dd { color: var(--muted); font-weight: 500; }

.visit-map iframe {
  height: clamp(320px, 46vw, 440px);
  display: block;
}

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: var(--charcoal);
  color: rgba(247, 243, 236, 0.78);
  padding: clamp(48px, 7vw, 76px) 0 0;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: clamp(36px, 5vw, 56px);
}

.wordmark-script--footer { font-size: 1.8rem; }
.wordmark-sub--footer {
  color: rgba(247, 243, 236, 0.6);
  margin-left: 10px;
}
.footer-tag {
  margin-top: 14px;
  max-width: 30em;
  color: rgba(247, 243, 236, 0.6);
}

.footer-contact p { margin: 0 0 6px; }
.footer-contact a { color: var(--ivory); font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a { color: rgba(247, 243, 236, 0.78); }
.footer-nav a:hover { color: var(--ivory); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 0.84rem;
  color: rgba(247, 243, 236, 0.5);
}
.footer-legal p { margin: 0; }
.back-to-top { color: rgba(247, 243, 236, 0.6); }
.back-to-top:hover { color: var(--ivory); }

@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.3fr 0.9fr 0.8fr; }
}

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(24, 20, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  background: var(--paper);
  padding: 10px;
  box-shadow: var(--shadow-deep);
}
.lightbox-figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(247, 243, 236, 0.75);
  padding-top: 14px;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.lightbox button {
  position: absolute;
  background: rgba(247, 243, 236, 0.08);
  color: var(--ivory);
  border: 1px solid rgba(247, 243, 236, 0.25);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox button:hover { background: rgba(226, 64, 29, 0.55); }

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 620px) {
  .lightbox-prev { left: 8px; bottom: 18px; top: auto; transform: none; }
  .lightbox-next { right: 8px; bottom: 18px; top: auto; transform: none; }
}

/* ------------------------------------------------------------ reveal on scroll */

/* only hide-for-reveal when JS is actually running (no-JS users see everything) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-media img { transition: none; }
}
