/* ============================================================
   Columbus Art Gallery — Redesign Stylesheet
   Palette derived from the shop's own Art Deco logo/signage.
   ============================================================ */

:root {
  --ink: #2B211C;
  --ink-soft: #4A3D34;
  --terracotta: #B8502F;
  --terracotta-deep: #8F3D22;
  --parchment: #F3ECE4;
  --linen: #E7DCD0;
  --linen-deep: #D9C9B8;
  --gold: #B08D4F;
  --cream-white: #FBF8F4;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1160px;
  --radius: 2px;
  --shadow-soft: 0 12px 32px -18px rgba(43, 33, 28, 0.35);
  --transition-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::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;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.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;
}

.skip-link {
  position: absolute;
  left: 0; top: -48px;
  background: var(--terracotta);
  color: var(--cream-white);
  padding: 0.75em 1.25em;
  z-index: 200;
  transition: top var(--transition-base);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 760px; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 0.75em;
}
.eyebrow.center { text-align: center; }

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.center { text-align: center; }
.center + .center { margin-top: 0; }

section.section > .container > h2.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream-white);
}
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }
.btn-call { border-color: var(--parchment); color: var(--parchment); }
.btn-call:hover { background: var(--parchment); color: var(--ink); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ============================================================
   Signature: corner-frame motif
   Drawn like the shop's own gilt frame-corner samples / the
   Art Deco stepped corners on the logo. Used on hero photo,
   gallery items, service photos, and testimonial cards.
   ============================================================ */
.frame-corners {
  position: relative;
  padding: 14px;
  background: var(--cream-white);
  box-shadow: var(--shadow-soft);
}
.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  border: 3px solid var(--terracotta);
}
.frame-corners::before {
  top: 6px; left: 6px;
  border-right: none;
  border-bottom: none;
}
.frame-corners::after {
  bottom: 6px; right: 6px;
  border-left: none;
  border-top: none;
}
.frame-corners > img,
.frame-corners > a img { position: relative; z-index: 1; }

.frame-corners[data-draw] .frame-corners-anim-hint { display: none; }

/* one-time corner "draw-in" on the hero only, JS adds .is-drawn */
.hero-frame.frame-corners::before,
.hero-frame.frame-corners::after {
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 900ms ease 300ms;
}
.hero-frame.frame-corners.is-drawn::before,
.hero-frame.frame-corners.is-drawn::after {
  clip-path: inset(0 0 0 0);
}
.hero-frame.frame-corners::after {
  clip-path: inset(100% 0 0 100%);
}
.hero-frame.frame-corners.is-drawn::after {
  clip-path: inset(0 0 0 0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 236, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linen-deep);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { border-radius: var(--radius); flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--transition-base);
}
.primary-nav a:hover { color: var(--terracotta); }
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.nav-call {
  background: var(--ink);
  color: var(--parchment) !important;
  padding: 0.55em 1.1em;
  font-size: 0.9rem;
}
.nav-call:hover { background: var(--terracotta-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--cream-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -10px 0 40px -20px rgba(0,0,0,0.4);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
  }
  .primary-nav a { font-size: 1.1rem; }
  .nav-call { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--linen) 0%, var(--parchment) 65%);
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40ch;
}
.hero-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { order: -1; }
}

/* ---------- Welcome / intro ---------- */
.welcome { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Why choose us ---------- */
.why { background: var(--linen); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.why-card {
  background: var(--cream-white);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
}
.why-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
}
.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.why-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-intro {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.service-card {
  background: var(--cream-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--linen-deep);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.service-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}
.service-card.with-image { padding-top: 0; }
.service-image {
  margin: 0 0 1.25rem;
  padding: 10px;
}
.service-image::before,
.service-image::after { width: 20px; height: 20px; border-width: 2px; }
.service-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--linen); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.gallery-item {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.gallery-item:hover img { transform: scale(1.03); }

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

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.story-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream-white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: start;
}
.testimonial-card {
  margin: 0;
  padding: 1.75rem 1.75rem 1.5rem;
}
.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.testimonial-card blockquote p { margin: 0; }
.testimonial-card blockquote p::before { content: "\201C"; }
.testimonial-card blockquote p::after { content: "\201D"; }
.testimonial-card figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--terracotta);
}

@media (max-width: 760px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.visit-facts {
  margin: 2rem 0;
  display: grid;
  gap: 1.25rem;
}
.visit-facts dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 0.2em;
}
.visit-facts dd {
  margin: 0;
  font-size: 1.05rem;
}
.visit-facts a { text-decoration: none; }
.visit-facts a:hover { text-decoration: underline; }

.visit-hours {
  background: var(--linen);
  padding: 2rem;
  border-radius: var(--radius);
  align-self: start;
}
.visit-hours h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.6em 0;
  font-weight: 400;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--linen-deep);
}
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { text-align: right; color: var(--ink-soft); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand { color: var(--parchment); margin-bottom: 0.5rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--linen-deep);
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--parchment); }
.footer-contact p {
  margin: 0 0 0.4em;
  font-size: 0.92rem;
  color: var(--linen-deep);
}
.footer-contact a { text-decoration: none; color: var(--parchment); }
.footer-contact a:hover { text-decoration: underline; }
.footer-credit {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243,236,228,0.15);
  font-size: 0.82rem;
  color: var(--linen-deep);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* No-JS fallback: content must be visible without JS */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: min(90vw, 900px);
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 6px solid var(--cream-white);
}
.lightbox figcaption {
  color: var(--parchment);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--parchment);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25em 0.5em;
}
.lightbox-close:hover { color: var(--terracotta); }
