/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
  --red1: #ec0000;
  --green1: #00d700;
  --gold1: #c7a34b;
  --blacktext: #222;
  --muted: #666;
  --bg: #fff;
  --line: #ddd;
}
 
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  color: var(--blacktext);
  background: var(--bg);
  line-height: 1.6;
}

[hidden] { display: none !important; }

a:link,
a:visited {
  color: var(--gold1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover,
a:active {
  color: var(--gold1);
  text-decoration: none;
  font-weight: 400;
}
.no-underline { text-decoration: none; }
.no-underline a {   text-decoration: none; }

h1, h2, h3 {
  color: var(--gold1);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2em;
}
h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }
.click-all a h1 h2 h3 {
  text-decoration: none;  /* kill underline */
  color: var(--gold1);    /* keep heading colour */
}

/* ==========================================================================
   2. Reusable Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blacktext);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--gold1);
  color: #fff;
  border-color: var(--gold1);
}
.btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}
.btnSmall {
  padding: 5px 10px;
}
.btn.active {
  background-color: var(--gold1);
  color: #fff;
  border-color: var(--gold1);
}


/* --- Cards --- */
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

/* --- Forms --- */
.form { display: grid; gap: 14px; text-align: left; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 600; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold1);
  box-shadow: 0 0 0 3px rgba(199,163,75,.18);
}
textarea { min-height: 170px; resize: vertical; }
.help { font-size: .9rem; color: var(--muted); }
.btnbar { display: flex; gap: 10px; align-items: center; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 768px){ .form .row { grid-template-columns: 1fr; } }

/* --- Notices (for form success/error) --- */
.notice {
  margin: 6px 0 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.notice.success { border-color: #cde8cf; background: #f3fbf4; }
.notice.error { border-color: #f0c2c2; background: #fff6f6; }
.notice:before { content: "• "; color: var(--gold1); margin-right: 6px; }

/* --- Spinners (for loading images) --- */
.img-spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid rgba(0,0,0,0.1);
  border-top-color: var(--gold1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   3. Site-wide Layout
   ========================================================================== */

/* --- Header --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 10px;
  padding: 10px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 48px;
  color: var(--gold1);
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
}
.logoCap { display: inline-block; transform: scale(1.2); transform-origin: bottom; }
.nav {
  justify-self: center;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 16px;
}
.nav a {
  text-decoration: none;
  color: var(--gold1);
  font-weight: 100;
  text-underline-offset: 4px;
}
.nav a:hover,
.nav a.active { text-decoration: underline; }
@media (max-width: 768px){
  .logo { font-size: 38px; letter-spacing: 0.15em;}
  .nav {font-size: 14px;}
}
@media (max-width: 480px){
  .logo { font-size: 22px; letter-spacing: 0.14em;}
  .nav {font-size: 10px;}
  .site-head { padding: 2px;}
}

/* --- Generic Hero Section --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}
.hero img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.hero h1 { margin-bottom: 10px; }
.hero p {
  max-width: 800px; margin: 0 auto; font-size: 18px; color: var(--muted);
}

/* --- Footer --- */
.site-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
}

/* .footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.footer-left { text-align: left; color: var(--gold1); }
.footer-center { text-align: center; color: var(--gold1); }
.footer-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
} */

.footer-right img {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s ease;
}
.footer-right img:hover { opacity: 0.7; }

/* .new */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  grid-template-areas: "left center right";
}

.footer-left   { grid-area: left;   text-align: left;   color: var(--gold1); }
.footer-center { grid-area: center; text-align: center; color: var(--gold1); }
.footer-right  { grid-area: right;  text-align: right;  display: flex; justify-content: flex-end; gap: 12px; }

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr auto;   /* two columns: left + right */
    grid-template-rows: auto auto;     /* two stacked rows */
    grid-template-areas:
      "left right"
      "center right";
    align-items: center;
    row-gap: 4px;
  }

  .footer-left   { grid-area: left; text-align: left; }
  .footer-center { grid-area: center; text-align: left; }
  .footer-right  { grid-area: right; justify-content: flex-end; align-self: center; }
}



/* ==========================================================================
   4. Page-Specific Styles
   ========================================================================== */

/* --- Home Page --- */
.hero-home {
  margin: 0px 20px 20px 20px;
}
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.gallery-preview img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-preview img:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.home-section { padding: 32px 20px; max-width: 1100px; margin: 0 auto; }
.home-section h2 { margin-bottom: 12px; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.teaser-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background:#fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); cursor: pointer; text-decoration: none; color: inherit; }
.teaser-card img { width: 100%; height: 220px; object-fit: cover; display:block; }
.teaser-card .teaser-meta { padding: 12px 14px; text-align: center; font-weight: 600; }
.cta-row { margin-top: 14px; display:flex; gap:10px; justify-content:center; flex-wrap: wrap; }
.why-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:12px; }
.why-item { border:1px solid var(--line); border-radius:12px; padding:14px; background:#fff; text-align:center; }
.click-all { text-decoration: none !important; color: inherit; display:block; }
.strip-header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:10px; }
.muted { color: var(--muted); font-size:.95rem; }
/* .testi { text-align:center; border:1px solid var(--line); border-radius:12px; padding:18px; background:#fff; }
.marquee-quote { font-style: italic; } */
.on-display-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.on-display-grid img { width:100%; height:180px; object-fit:cover; border:1px solid var(--line); border-radius:10px; }
@media (max-width:480px){ .teaser-card img{ height: 200px; } }

.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* text aligns with tick */
  gap: 1rem;
  width: fit-content;      /* shrink to content so it can center */
}
.why-list li {
  position: relative;
  padding-left: 40px; /* space for the tick */
  font-size: 1.2rem;
  line-height: 1.5;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("images/tick9.png") no-repeat center center;
  background-size: contain;
}

.on-display-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.venue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.venue-card .venue-name {
  font-weight: 600;
  color: var(--gold1);
  margin-bottom: 6px;
}
.venue-card a {
  text-decoration: none;
  color: var(--blacktext);
  margin-bottom: 8px;
}
.venue-card a:hover {
  color: var(--gold1);
}
.venue-card .social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.venue-card .social-icons img {
  width: 42px;
  height: 42px;
}


.about-teaser-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}
.about-teaser-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.about-teaser-content p {
  margin: 8px 0;
}
.about-teaser-content .click-all {
  margin-top: 12px;
  display: inline-block;
  color: var(--gold1);
}
@media (max-width: 768px) {
  .about-teaser-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Marquee (CSS only) ===== 3-line-high continuous vertical  ===== */
.marquee-viewport3 {
  --row-h: 2.8rem;     /* exact height of ONE line; adjust to your font/size */
  --speed: 48s;        /* full loop duration; higher = slower */
  position: relative;
  overflow: hidden;
  height: calc(var(--row-h) * 3);   /* 3 visible lines */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f5f5;
}
.marquee-track3 {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: testiScroll3 var(--speed) linear infinite !important;
  animation-play-state: running;
  transform: translateZ(0); /* nudge GPU on some setups */
}
/* One-line testimonial row */
.marquee-row,
.marquee-spacer {
  height: var(--row-h);
  display: flex;
  align-items: center;
  padding: 0 8px;
  /* white-space: nowrap;           force a single line */
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f5f5f5;
}
.marquee-row {
  font-style: italic;
  text-align: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  /* white-space: nowrap; */  
}
/* We duplicate the whole sequence, so moving -50% covers the originals exactly */
@keyframes testiScroll3 {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}








/* --- Gallery Page --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 24px 20px 40px;
}
.thumb {
  width: 100%; height: 220px; object-fit: cover; display: block;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.thumb:hover { transform: scale(1.02); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.card-title { font-weight: 600; margin-top: 8px; text-align: center; }
.sold { color: var(--red1); font-weight: 600;}
.new {  color: var(--green1); font-weight: 600;
}

/* --- Painting Detail Page --- */
.painting-wrap { padding: 24px 20px 40px; }
.painting-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
.painting-main img {
  width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px;
}
.painting-meta h1 { margin-top: 0; }
.meta-rows { display: grid; gap: 6px; margin: 10px 0 16px; }
.p-description p { margin: 12px 0; color: var(--blacktext); }
.purchase { margin-top: 14px; display: block; gap: 10px; align-items: center; }
.price { font-weight: 600; font-size: 1.3em;}

.backlink { margin-top: 16px; }
.on-display-banner {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed var(--gold1);
  border-radius: 6px;
  background: #fffdf5;
  color: var(--blacktext);
}
.painting-all { margin-top: 18px; display: grid; gap: 12px; }
.p-shot img {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
}
@media (max-width: 768px){
  .painting-layout { grid-template-columns: 1fr; }
}

/* --- About Page --- */
.about-wrap { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.about-hero { text-align: left; max-width: 860px; margin: 0 0 26px 0; }
.about-h1 {font-size: 2em;}
.about-grid {
  display: grid; gap: 18px; align-items: start;
  grid-template-columns: 1.2fr .8fr;
}
.about-text.card p { margin: 10px 0; }
.about-photos { display: grid; gap: 12px; }
.about-photos img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
}
@media (max-width: 768px){ .about-grid { grid-template-columns: 1fr; } }

/* --- On Display Page --- */
.on-display-wrap { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.display-h1 { text-align: center;}
.intro { text-align: center; max-width: 860px; margin: 0 auto 20px; }
.venues { display: grid; gap: 22px; }
.venue { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 16px; align-items: start; }
.venue .meta.card p { margin: 8px 0; }
.meta .socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.meta .socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--blacktext); }
.meta .socials img { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.imgs img { width: 100%; height: 190px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 768px){ .venue { grid-template-columns: 1fr; } .imgs img{ height: 220px; } }

/* --- Contact & Commissions Pages --- */
.contact-stack {
  padding: 40px 20px;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-auto-rows: min-content;
  gap: 16px;
  text-align: center;
}
.contact-lead { max-width: 720px; margin: 8px auto 24px; color: var(--muted); text-align: center; }
.contact-email .email-link {
  font-weight: 400;
  color: var(--gold1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--blacktext);
  transition: transform .15s ease, box-shadow .15s ease;
}
.social:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.social img {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-form {
  max-width: 760px;
  margin: 0 auto;
}