/* Sally Nooney Gallery - Custom Styles */
/* Design: Warm earthy palette, rustic mountain artist feel */
/* Framework: Bootstrap 5 with custom warm aesthetic */

:root {
  --primary: #8B4513;         /* Saddle Brown - rustic warmth */
  --primary-dark: #6B3410;
  --primary-light: #C4692A;
  --accent: #D4841A;          /* Golden amber */
  --accent-warm: #E8A040;
  --bg-cream: #FAF6F0;
  --bg-warm: #F2EAE0;
  --bg-dark: #2C1A0E;
  --text-dark: #2C1A0E;
  --text-medium: #5C3D26;
  --text-light: #8C6B50;
  --border-warm: #D4B896;
  --gold: #C8972E;
}

/* ─── Typography ─────────────────────────────────── */
body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary); }
h3 { font-size: 1.3rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-dark); }

p { margin-bottom: 1.25rem; }

blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

blockquote p { margin: 0; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--accent); text-decoration: underline; }

/* ─── Navigation ─────────────────────────────────── */
.navbar {
  background-color: var(--bg-dark) !important;
  border-bottom: 3px solid var(--accent);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-brand span {
  color: var(--accent-warm);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-warm) !important;
}

.navbar-toggler {
  border-color: var(--accent);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c165%2c50%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Hero Section ───────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(44,26,14,0.82) 0%, rgba(44,26,14,0.55) 55%, rgba(44,26,14,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 0;
  max-width: 640px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-family: 'Lora', serif;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline-warm {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: 'Lora', serif;
  padding: 0.5rem 1.3rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-outline-warm:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ─── Page Header (non-homepage) ─────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 50%, var(--accent) 100%);
}

.page-header h1 {
  color: #fff;
  margin: 0;
}

.page-header .page-subtitle {
  color: var(--accent-warm);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ─── Content Sections ───────────────────────────── */
.content-section {
  padding: 4rem 0;
}

.content-section.alt-bg {
  background-color: var(--bg-warm);
}

.content-prose {
  max-width: 780px;
}

/* ─── Gallery Image Cards ────────────────────────── */
.painting-card {
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(44,26,14,0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.painting-card:hover {
  box-shadow: 0 8px 30px rgba(44,26,14,0.15);
  transform: translateY(-3px);
}

.painting-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.painting-card-body {
  padding: 1.25rem;
}

.painting-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.painting-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── Inline Images ──────────────────────────────── */
.content-image {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(44,26,14,0.12);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Quote Block ────────────────────────────────── */
.artist-quote {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.artist-quote .quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.artist-quote .quote-attr {
  color: var(--accent-warm);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Feature Grid ───────────────────────────────── */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  background: #fff;
  height: 100%;
}

.feature-card .feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0;
}

/* ─── Section Divider ────────────────────────────── */
.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--accent);
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-warm), transparent);
}

/* ─── Contact Form ───────────────────────────────── */
.contact-form .form-control {
  border-color: var(--border-warm);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: 'Lora', serif;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(212,132,26,0.2);
}

.contact-form label {
  font-weight: 600;
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

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

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 2rem;
}

.site-footer h5 {
  color: var(--accent-warm);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.site-footer a:hover {
  color: var(--accent-warm);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ─── 404 Page ───────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: 6rem 2rem;
}

.error-404 .error-code {
  font-size: 8rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1;
  opacity: 0.3;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.25rem; }
  .hero-section { min-height: 380px; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-section { min-height: 320px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .artist-quote .quote-text { font-size: 1.2rem; }
  .artist-quote { padding: 2rem 1.5rem; }
}
