/* ============================================================
   THE ART OF MICHAEL BRUGH — Stylesheet
   Refined gallery aesthetic with warmth and light
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --navy: #1B2A4A;
  --navy-light: #2C3E5A;
  --gold: #C5943A;
  --gold-light: #D4A94F;
  --gold-muted: rgba(197, 148, 58, 0.15);
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --warm-white: #FDFCFA;
  --text: #2C2C2C;
  --text-light: #6B6560;
  --text-muted: #9B9590;
  --border: #E8E3DB;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.08);
  --shadow-lg: 0 8px 32px rgba(27,42,74,0.12);
  --shadow-hover: 0 12px 40px rgba(27,42,74,0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --max-width: 1280px;
  --content-width: 800px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--warm-white);
  line-height: 1.7;
  font-weight: 300;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 500; }

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

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Layout ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

.section--navy {
  background-color: var(--navy);
  color: rgba(255,255,255,0.85);
}

.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy .label { color: var(--gold-light); }

/* ── Header / Navigation ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,252,250,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.site-logo-text span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
 .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FDFCFA !important;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    isolation: isolate;
    z-index: 100;
}

.site-header {
    background: #FDFCFA !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .main-nav.open {
    transform: translateX(0);
  }
  
  .main-nav a {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  margin-top: 72px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .label {
  margin-bottom: 1.5rem;
  display: block;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-image::after { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
}

.btn--gold:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .btn-group { justify-content: center; }
}

/* ── Artwork Grid ─────────────────────────────────────── */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 720px) {
  .artwork-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }
}

.artwork-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  color: inherit;
}

.artwork-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.artwork-card:hover .artwork-card__image img {
  transform: scale(1.03);
}

.artwork-card__info {
  padding: 1.25rem 1.5rem;
}

.artwork-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.artwork-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.artwork-card__status {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.artwork-card__status--sold {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Artwork Detail Page ──────────────────────────────── */
.artwork-detail {
  margin-top: 72px;
  padding: 3rem 0 5rem;
}

.artwork-detail__layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.artwork-detail__image {
  position: sticky;
  top: 100px;
}

.artwork-detail__image img {
  width: 100%;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}

.artwork-detail__content {
  padding-top: 1rem;
}

.artwork-detail__content .label {
  margin-bottom: 0.75rem;
  display: block;
}

.artwork-detail__content h1 {
  margin-bottom: 1rem;
}

.artwork-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.artwork-detail__meta-item {
  font-size: 0.9rem;
}

.artwork-detail__meta-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2rem;
}

.artwork-detail__story {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.artwork-detail__price-block {
  background: var(--cream);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artwork-detail__status {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.artwork-detail__status--sold {
  color: var(--text-muted);
  font-style: italic;
}

.artwork-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.artwork-detail__back:hover { color: var(--gold); }

@media (max-width: 900px) {
  .artwork-detail__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .artwork-detail__image { position: static; }
}

/* ── Page Header ──────────────────────────────────────── */
.page-header {
  margin-top: 72px;
  padding: 4rem 0 3rem;
  background: var(--cream);
  text-align: center;
}

.page-header .label {
  display: block;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ── About Page ───────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 100px;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  font-size: 1rem;
}

.about-text blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-portrait { position: static; max-width: 400px; }
}

/* ── Mission Block ────────────────────────────────────── */
.mission-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0;
}

.mission-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--navy);
}

.mission-block .attribution {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 400;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ── Contact Form ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  display: block;
  margin-bottom: 0.3rem;
}

.contact-detail a {
  color: var(--text);
  font-size: 1rem;
}

.contact-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact-social a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Featured Grid (Homepage) ─────────────────────────── */
.featured-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.featured-intro .label { display: block; margin-bottom: 0.75rem; }
.featured-intro h2 { margin-bottom: 0.75rem; }
.featured-intro p { color: var(--text-light); max-width: 550px; margin: 0 auto; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-logo-text {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Placeholder Image ────────────────────────────────── */
.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Fade-in Animation ────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Divider ──────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

.divider--left {
  margin: 0;
}

/* ── Commission Steps ─────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.step {
  text-align: center;
}

.step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.step h4 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Newsletter Signup ─────────────────────────────────── */
.newsletter-section {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-section h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter-form button {
  white-space: nowrap;
}

.newsletter-form .mc-hidden {
  position: absolute;
  left: -5000px;
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ── Social Icons ─────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icons--center {
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.social-icon:hover {
  color: var(--gold);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social .social-icon {
  color: rgba(255,255,255,0.4);
}

.footer-social .social-icon:hover {
  color: var(--gold-light);
}

/* ── Print Styles ─────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .btn, .menu-toggle { display: none; }
  body { font-size: 12pt; }
  .hero { margin-top: 0; min-height: auto; }
}

/* Red dot indicator for sold pieces — traditional gallery style */
.sold-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: inherit;
}
 
.sold-indicator::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c41e3a; /* Traditional gallery red */
  flex-shrink: 0;
  margin-right: 0.2rem;
}
 