/* Art From The Heart — site theme
   Palette pulled from the studio photography: weathered sage-green
   panelling, blush pink, warm gold framing, cream linen background. */

:root {
  --green-deep: #3f5341;
  --green-sage: #7c8f6e;
  --green-mist: #e7ede2;
  --blush: #e7b9b4;
  --blush-deep: #cf8f8c;
  --gold: #b9903f;
  --cream: #faf6ef;
  --ink: #2c332a;
  --ink-soft: #5b6455;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(47, 58, 42, 0.12);
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green-deep); }
a:hover { color: var(--gold); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(63, 83, 65, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-deep);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  max-height: 640px;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px;
}

.hero__content .wrap { width: 100%; }

.hero__content h1 {
  color: var(--white);
  max-width: 720px;
}

.hero__content p {
  max-width: 560px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #a67d34;
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--green-mist);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Painting grid ---------- */
.painting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.painting-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.painting-card:hover { transform: translateY(-4px); }

.painting-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--green-mist);
}

.painting-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge--sold {
  background: var(--blush-deep);
  color: var(--white);
}

.badge--available {
  background: var(--green-sage);
  color: var(--white);
}

.painting-card__body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.painting-card__title {
  margin-bottom: 2px;
}

.painting-card__dims {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.painting-card__price {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.painting-card__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.painting-card__frame-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(63, 83, 65, 0.2);
  padding-top: 10px;
  margin-top: 10px;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--green-deep);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 28px 0;
}

.about-signature {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

.about-body p { color: var(--ink-soft); }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.about-gallery figure {
  margin: 0;
}

.placeholder-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px dashed rgba(63, 83, 65, 0.35);
  background: repeating-linear-gradient(
      135deg,
      rgba(124, 143, 110, 0.08),
      rgba(124, 143, 110, 0.08) 10px,
      rgba(124, 143, 110, 0.15) 10px,
      rgba(124, 143, 110, 0.15) 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 16px;
}

.about-gallery figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-sage);
  margin-top: 18px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--green-mist);
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 500;
}

.social-link:hover { background: #dbe5d3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 40px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 24px 32px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer .brand__title { color: var(--white); }

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover { color: var(--blush); }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 24px 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(63, 83, 65, 0.1);
  }

  .main-nav.open { max-height: 260px; }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(63, 83, 65, 0.08);
  }
}

/* ---------- Admin ---------- */
.admin-body {
  background: var(--green-mist);
  min-height: 100vh;
}

.admin-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-login-wrap {
  max-width: 380px;
  margin: 10vh auto;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5ddcd;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--white);
}

.form-row textarea { min-height: 90px; resize: vertical; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #ecefe6;
  vertical-align: middle;
}

.admin-table img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-actions a, .admin-actions button {
  font-size: 0.82rem;
  margin-right: 10px;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.flash--success { background: #dcefd8; color: #2c5a2c; }
.flash--error { background: #f6dede; color: #8c2c2c; }

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
}

.btn-danger { background: var(--blush-deep); }
.btn-secondary { background: var(--green-sage); }
