/* Wad Art - Custom Styles */

html, body {
  overflow-x: hidden;
}

:root {
  --wa-charcoal: #435335;
  --wa-gold: #435335;
  --wa-gold-light: #566A46;
  --wa-bg: #F5F2EC;
  --wa-bg-dark: #EDE9E0;
  --wa-text: #3A3A35;
  --wa-text-light: #7A7A6E;
  --wa-green: #435335;
  --wa-red: #A65D5D;
  --wa-amber: #B8963A;
  --wa-white: #ffffff;
  --wa-cream: #F5F0E8;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--wa-text);
  background-color: var(--wa-bg);
  font-size: 0.95rem;
}

h1, h2, h3, h4, h5, .brand-text, .footer-brand {
  font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
  background: var(--wa-charcoal);
  box-shadow: 0 1px 10px rgba(0,0,0,0.15);
  padding: 0.75rem 0;
}

.navbar .brand-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wa-cream);
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  color: rgba(245,240,232,0.75);
  font-weight: 300;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--wa-cream);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  filter: invert(1);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  background: var(--wa-charcoal);
  color: var(--wa-cream);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 550px;
}

.hero .btn-gold {
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.375rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform, opacity;
  transform-origin: center 15%;
}
.hero-slide.active { opacity: 1; }
.hero-slide[data-kb="0"] { animation: kb0 12s ease-in-out infinite alternate; }
.hero-slide[data-kb="1"] { animation: kb1 12s ease-in-out infinite alternate; }
.hero-slide[data-kb="2"] { animation: kb2 12s ease-in-out infinite alternate; }

@keyframes kb0 {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -8%); }
}
@keyframes kb1 {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(1%, -10%); }
}
@keyframes kb2 {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -7%); }
}

/* Buttons */
.btn-gold {
  background: var(--wa-gold);
  color: var(--wa-cream);
  border: none;
  padding: 0.35rem 1.1rem;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-gold:hover {
  background: var(--wa-gold-light);
  color: var(--wa-cream);
}


.btn-outline-gold {
  border: 1px solid var(--wa-gold);
  color: var(--wa-gold);
  background: transparent;
  padding: 0.35rem 1.1rem;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-outline-gold:hover {
  background: var(--wa-gold);
  color: var(--wa-cream);
}

.btn-secondary {
  padding: 0.35rem 1.1rem;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  border-radius: 3px;
}

/* Section spacing */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--wa-text-light);
  margin-bottom: 2rem;
}

.section-alt {
  background: var(--wa-white);
}

/* Category Links */
.category-link {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.category-link:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.category-link h5 {
  color: var(--wa-charcoal);
  margin-bottom: 0.25rem;
}
.category-link p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}
.category-link:hover h5 {
  color: var(--wa-gold);
}

/* Artwork Cards */
.artwork-card {
  background: var(--wa-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.artwork-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.artwork-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s;
  transform-origin: center 15%;
}

.artwork-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.artwork-card .card-img-wrap .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
}

.artwork-card .card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.artwork-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.artwork-card .card-title a {
  color: var(--wa-charcoal);
  text-decoration: none;
}

.artwork-card .card-title a:hover {
  color: var(--wa-gold);
}

.artwork-card .card-meta {
  font-size: 0.8rem;
  color: var(--wa-text-light);
  margin-bottom: 0.5rem;
}

.artwork-card .card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wa-charcoal);
  margin-top: auto;
}
.artwork-card .card-price-guide {
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
}

/* Category pills */
.category-pills .nav-link {
  color: var(--wa-text);
  background: var(--wa-white);
  border: 1px solid #dee2e6;
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  margin: 0 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.category-pills .nav-link:hover,
.category-pills .nav-link.active {
  background: var(--wa-gold);
  border-color: var(--wa-gold);
  color: var(--wa-cream);
}

/* Artwork detail page */
.artwork-detail .artwork-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.artwork-detail .artwork-meta {
  color: var(--wa-text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.artwork-detail .artwork-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wa-charcoal);
}

.artwork-detail .artwork-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}

/* Gallery thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery-thumbs a {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gallery-thumbs a:hover,
.gallery-thumbs a.active {
  border-color: var(--wa-gold);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main-img {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main-img img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: var(--wa-white);
}

/* About page */
.about-content {
  font-size: 1rem;
  line-height: 1.8;
}

.about-img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Commission page */
.commission-types .type-card {
  text-align: center;
  padding: 2rem;
  background: var(--wa-white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.commission-types .type-card i {
  font-size: 2.5rem;
  color: var(--wa-gold);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--wa-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.25rem;
  margin-top: 4rem;
  font-size: 0.8rem;
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .text-muted {
  color: rgba(255,255,255,0.5) !important;
}

.site-footer hr {
  border-color: rgba(255,255,255,0.1);
  margin: 1.5rem 0 0.75rem;
}

.social-links a {
  font-size: 1.3rem;
  margin-right: 1rem;
}

/* Back to top */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wa-gold);
  color: var(--wa-cream);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: opacity 0.3s;
}

.btn-back-to-top.show {
  display: flex;
}

/* 404 */
.page-404-content {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.page-404-content h1 {
  font-size: 6rem;
  color: var(--wa-gold);
  font-weight: 700;
}

/* Modals */
.modal-header {
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-family: 'Playfair Display', serif;
}

/* Badges */
.badge.bg-success { background-color: var(--wa-green) !important; }
.badge.bg-warning { background-color: var(--wa-amber) !important; }
.badge.bg-danger { background-color: var(--wa-red) !important; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  padding: 1rem 0;
  margin: 0;
  background: transparent;
}

.breadcrumb a {
  color: var(--wa-gold);
  text-decoration: none;
}

/* Lazy load fade in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* WhatsApp button style */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  padding: 0.35rem 1.1rem;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  border-radius: 3px;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: white;
}

/* Blog */
.blog-card {
  background: var(--wa-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 1.25rem;
}
.blog-card-date {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--wa-charcoal);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--wa-gold-light);
}
.blog-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border: 1px solid #ddd;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* Blog post detail */
.blog-post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blog-post-meta {
  font-size: 0.85rem;
  color: #888;
}
.blog-post-image img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.blog-post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.blog-signoff {
  margin-top: 2rem;
  padding-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--wa-charcoal);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.blog-signoff-fish {
  width: 36px;
  height: 18px;
  color: var(--wa-charcoal);
  opacity: 0.45;
}

/* Commission teaser */
.commission-teaser {
  background: var(--wa-charcoal);
  color: var(--wa-cream);
  padding: 3rem 0;
  text-align: center;
}
.commission-teaser h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.commission-teaser p {
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
  font-weight: 300;
}
.commission-teaser .btn-gold {
  border: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 767.98px) {
  .blog-post-title { font-size: 1.5rem; }
  .commission-teaser { padding: 2rem 0; }
  .commission-teaser h3 { font-size: 1.25rem; }
}

/* Admin bar (front-end) */
.admin-bar {
  background: #1a1a1a;
  padding: 0.3rem 0;
  font-size: 0.75rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}
body.has-admin-bar { padding-top: 30px; }

.admin-bar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-right: 1rem;
  transition: color 0.2s;
}

.admin-bar a:hover {
  color: #fff;
}

.admin-bar a i {
  margin-right: 0.2rem;
}

.admin-bar .admin-bar-edit {
  color: #7CB9E8;
}

.admin-bar .admin-bar-logout {
  color: rgba(255,255,255,0.4);
  margin-right: 0;
}

.admin-bar .admin-bar-logout:hover {
  color: #e66;
}

.admin-bar-dev, .admin-topbar.admin-bar-dev {
  background: #d94444;
}
.admin-bar-dev a, .admin-topbar.admin-bar-dev a {
  color: rgba(255,255,255,0.9);
}
.admin-bar-dev a:hover, .admin-topbar.admin-bar-dev a:hover {
  color: #fff;
}

@media (max-width: 767.98px) {
  .admin-bar .admin-bar-links { overflow-x: auto; white-space: nowrap; }
}

/* Admin top bar */
.admin-topbar {
  background: #1a1a1a;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.admin-topbar a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-topbar a:hover {
  color: #fff;
}

.admin-topbar-links a i {
  margin-right: 0.15rem;
}

/* Admin sidebar */
.admin-sidebar {
  background: var(--wa-charcoal);
  color: var(--wa-white);
  width: 200px;
  flex-shrink: 0;
  min-height: calc(100vh - 34px);
  padding: 1rem;
}

.admin-sidebar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: var(--wa-white);
}

.admin-sidebar-overlay {
  display: none;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    top: 34px;
    left: -220px;
    width: 200px;
    height: calc(100vh - 34px);
    z-index: 1050;
    transition: left 0.25s;
    overflow-y: auto;
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }
  .admin-sidebar-overlay.open {
    display: block;
  }
}

.admin-content {
  padding: 2rem;
}

/* Stat cards */
.stat-card {
  background: var(--wa-white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 3px solid #ddd;
}

.stat-card .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wa-charcoal);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.65rem;
  color: var(--wa-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

/* Coloured stat card borders */
.stat-card-green { border-left-color: var(--wa-green); }
.stat-card-red { border-left-color: var(--wa-red); }
.stat-card-amber { border-left-color: var(--wa-amber); }

/* Collapsible section chevron */
.collapse-toggle-chevron {
  transition: transform 0.25s;
}
.collapsed .collapse-toggle-chevron {
  transform: rotate(-90deg);
}
.stat-card-blue { border-left-color: #5B8FC7; }
.stat-card-purple { border-left-color: #8B6BAE; }
.stat-card-teal { border-left-color: #4CA8A0; }

/* Checklist for SEO suggestions */
.seo-checklist .form-check {
  padding: 0.5rem 0 0.5rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.seo-checklist .form-check:last-child {
  border-bottom: none;
}

.seo-checklist a {
  color: var(--wa-gold);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 575.98px) {
  .artwork-card .card-body { padding: 0.75rem; }
  .artwork-card .card-title { font-size: 0.9rem; }
  .hero h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
}


