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

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --bg:          #1c1b19;
  --bg-dark:     #131210;
  --bg-panel:    #0f0e0d;
  --bg-lift:     #222120;
  --gold:        #b8975a;
  --gold-light:  #d4b47a;
  --gold-dim:    rgba(184,151,90,0.28);
  --gold-faint:  rgba(184,151,90,0.12);
  --cream:       #f0ead8;
  --cream-dim:   rgba(240,234,216,0.65);
  --cream-faint: rgba(240,234,216,0.18);
  --text:        #ddd5c0;
  --text-dim:    #8e8678;
  --sep:         rgba(184,151,90,0.22);
  --font-d:      'Cormorant Garamond', Georgia, serif;
  --font-b:      'Crimson Pro', Georgia, serif;
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* =============================================
   Grain Texture Overlay
   ============================================= */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }
img { border: 0; }

/* =============================================
   Page Load Animation
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

#header        { animation: fadeUp 0.75s var(--ease) both; }
.accordion     { animation: fadeUp 0.75s 0.18s var(--ease) both; }
#footer        { animation: fadeUp 0.75s 0.32s var(--ease) both; }
.page-content  { animation: fadeUp 0.75s 0.18s var(--ease) both; }

/* =============================================
   Wrapper
   ============================================= */
#wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Header
   ============================================= */
#header {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--sep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-name a { display: block; }

.name-main {
  display: block;
  font-family: var(--font-d);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream);
  line-height: 1;
  text-transform: uppercase;
}

.name-sub {
  display: block;
  font-family: var(--font-d);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Logo removed — 940×100 banner PNG has no alpha channel */
.site-logo { display: none; }

/* =============================================
   Accordion — Home Gallery Panels
   ============================================= */
.accordion {
  display: flex;
  height: 450px;
  background: var(--bg-panel);
  position: relative;
  border-bottom: 1px solid var(--sep);
}

.accordion .panel {
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: flex 0.62s var(--ease);
  background-size: cover;
  background-position: center;
}

/* Gold hairline dividers between panels */
.accordion .panel + .panel {
  border-left: 1px solid var(--gold-dim);
}

/* Expand active panel */
.accordion .panel:hover { flex: 4.2; }

/* Full-panel clickable overlay */
.panel-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Dark vignette — stronger on inactive */
.accordion .panel .overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.52);
  transition: background 0.42s var(--ease);
}

.accordion .panel:hover .overlay {
  background: linear-gradient(
    to bottom,
    rgba(12,11,10,0.08) 0%,
    rgba(12,11,10,0.04) 45%,
    rgba(12,11,10,0.62) 100%
  );
}

/* Caption — slides up on hover */
.accordion .panel .entry-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 22px 24px;
  background: linear-gradient(
    to top,
    rgba(8,7,6,0.96) 0%,
    rgba(8,7,6,0.72) 55%,
    transparent 100%
  );
  transform: translateY(100%);
  transition: transform 0.38s 0.08s var(--ease);
}

.accordion .panel:hover .entry-container {
  transform: translateY(0);
}

/* Gold rule above caption text */
.accordion .panel .entry-container::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 10px;
}

.accordion .panel .entry-title {
  font-family: var(--font-d);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  line-height: 1.35;
}

.accordion .panel .entry-summary {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   Footer / Navigation
   ============================================= */
#footer {
  padding: 24px 0 38px;
  border-top: 1px solid var(--sep);
}

#access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

#access a {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 3px 0;
  margin-right: 30px;
  position: relative;
  transition: color 0.22s ease;
  text-decoration: none;
}

#access a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.36s var(--ease);
}

#access a:hover,
#access a.active {
  color: var(--cream);
}

#access a:hover::after,
#access a.active::after {
  width: 100%;
}

/* =============================================
   Page Content — inner pages shared
   ============================================= */
.page-content {
  padding: 52px 0 68px;
  min-height: 400px;
}

/* Page header block */
.page-header {
  margin-bottom: 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sep);
}

.page-content h1 {
  font-family: var(--font-d);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.05;
}

.page-subtitle {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 300;
}

.page-content h2 {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.shop-section-title {
  margin-top: 80px;
  margin-bottom: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-dim);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.shop-intro + .shop-section-title {
  margin-top: 20px;
}

.page-content p {
  font-family: var(--font-b);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 660px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 28px auto;
}

.page-content a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-content a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* =============================================
   About — photo treatment
   ============================================= */
.about-layout {
  display: flex;
  gap: 52px;
  align-items: flex-start;
}

.about-photo {
  flex: 0 0 auto;
  max-width: 380px;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(6%) contrast(1.04);
}

/* Inset gold border frame */
.about-photo::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}

.about-text { flex: 1; }

/* =============================================
   Commissions Gallery
   ============================================= */
.commissions-gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  margin-top: 8px;
}

.commissions-gallery figure {
  max-width: 700px;
  width: 100%;
  position: relative;
}

.commissions-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(4%);
  transition: filter 0.4s ease;
}

.commissions-gallery figure:hover img {
  filter: sepia(0%) contrast(1.03);
}

/* =============================================
   Testimonials
   ============================================= */
.testimonial {
  padding: 28px 0 28px 30px;
  border-left: 1px solid var(--gold);
  margin-bottom: 52px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-d);
  font-size: 80px;
  line-height: 1;
  color: var(--gold-dim);
  position: absolute;
  top: -14px;
  left: -6px;
  pointer-events: none;
}

.testimonial p {
  font-family: var(--font-b);
  font-style: italic;
  font-size: 19px;
  line-height: 1.85;
  color: var(--text);
  max-width: 640px;
}

.testimonial cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--font-d);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.testimonial cite a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}

.testimonial cite a:hover { border-bottom-color: var(--gold); }

.testimonial-painting {
  margin: 40px 0 52px;
  max-width: 680px;
  position: relative;
  display: block;
}

.testimonial-painting img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(5%);
}

.testimonial-painting::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--gold-dim);
  pointer-events: none;
}

/* =============================================
   Shop Grid
   ============================================= */
.shop-intro { margin-bottom: 40px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--sep);
  border: 1px solid var(--sep);
}

.product-item {
  background: var(--bg);
  overflow: hidden;
  position: relative;
  transition: background 0.22s ease;
}

.product-item:hover { background: var(--bg-lift); }

.product-item-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(6%);
  transition: transform 0.62s var(--ease), filter 0.4s ease;
}

.product-item:hover .product-item-image img {
  transform: scale(1.05);
  filter: sepia(0%) contrast(1.04);
}

.product-item-info {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--sep);
}

.product-item h2 {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 7px;
  line-height: 1.35;
}

.product-item p {
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 0;
  font-family: var(--font-b);
}

.product-price {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 10px;
  margin-bottom: 0;
}

.contact-btn {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-d);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim) !important;
  padding-bottom: 2px;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.contact-btn:hover {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold) !important;
}

/* =============================================
   Contact Form
   ============================================= */
.contact-intro { margin-bottom: 36px; }

.contact-form { max-width: 540px; }

.contact-form .field { margin-bottom: 28px; }

.contact-form label {
  display: block;
  font-family: var(--font-d);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}

.contact-form label span { color: var(--gold); margin-left: 2px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sep);
  color: var(--cream);
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.22s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--cream-faint);
  font-style: italic;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}

.contact-form textarea {
  height: 110px;
  resize: none;
  display: block;
}

.contact-form button {
  margin-top: 12px;
  padding: 13px 44px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-form button:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* =============================================
   My Journey Grid
   ============================================= */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--sep);
  border: 1px solid var(--sep);
  margin-top: 8px;
}

.journey-item {
  background: var(--bg);
  overflow: hidden;
}

.journey-item-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.journey-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(5%);
  transition: transform 0.62s var(--ease), filter 0.4s ease;
}

.journey-item:hover .journey-item-image img {
  transform: scale(1.05);
  filter: sepia(0%) contrast(1.04);
}

.journey-item-caption {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--sep);
}

.journey-item h2 {
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.3;
}

.journey-item p {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  font-family: var(--font-b);
}

/* journey-item as anchor link */
a.journey-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.journey-item:hover .journey-item-image img {
  transform: scale(1.05);
  filter: sepia(0%) contrast(1.04);
}

/* =============================================
   Painting Detail Page
   ============================================= */
.painting-detail {
  padding: 52px 0 68px;
}

.painting-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: none;
  margin-bottom: 40px;
  transition: color 0.22s ease;
}

.painting-detail .back-link::before {
  content: '←';
  font-size: 14px;
}

.painting-detail .back-link:hover {
  color: var(--gold);
  border-bottom: none;
}

.painting-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}

.painting-detail-image {
  position: relative;
}

.painting-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(4%) contrast(1.02);
}

/* Inset gold frame */
.painting-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--gold-dim);
  pointer-events: none;
}

.painting-detail-info {}

.painting-detail-info h1 {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 10px;
}

.painting-detail-info .painting-category {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}

.painting-detail-info p {
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 28px;
}

.painting-specs {
  border-top: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
  padding: 20px 0;
  margin-bottom: 28px;
}

.painting-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
}

.painting-specs dt {
  font-family: var(--font-d);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.8;
}

.painting-specs dd {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.8;
}

.painting-price {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.painting-price.sold {
  color: var(--text-dim);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.painting-enquire {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 36px;
  border: 1px solid var(--gold-dim);
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.painting-enquire:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

@media (max-width: 720px) {
  .painting-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 960px) {
  #wrapper { padding: 0 16px; }
  .shop-grid, .journey-grid { grid-template-columns: 1fr; }
  .about-layout { flex-direction: column; gap: 32px; }
  .about-photo { max-width: 100%; }
}

@media (max-width: 680px) {
  .name-main  { font-size: 22px; letter-spacing: 0.06em; }
  .name-sub   { font-size: 10px; letter-spacing: 0.18em; }
  .site-logo img { height: 50px; }
  .accordion  { height: 300px; }
  .page-content h1 { font-size: 30px; }
  #access a { font-size: 11px; letter-spacing: 0.14em; margin-right: 18px; }
}
