/* Kalk Bay Modern - Authentic Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,700&family=Varela+Round&display=swap');

:root {
  --primary-color: #05060a;
  --active-color: #112469;
  --hover-color: #e93a1c;
  --text-muted: #555555;
  --bg-color: #ffffff;
  --border-color: #e5e5e5;
  --container-max-width: 1025px;
  --font-main: 'Libre Franklin', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-round: 'Varela Round', sans-serif;
}

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

html, body {
  background-color: #ffffff;
  color: #05060a;
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--hover-color);
}

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

/* Canvas Container */
#canvas {
  max-width: 1025px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Area */
#header {
  text-align: center;
  position: relative;
  padding-top: 10px;
  margin-bottom: 0;
}

#upper-logo {
  line-height: 0;
  margin-bottom: 12px;
}

#upper-logo .logo {
  display: inline-block;
  margin: 0;
}

#upper-logo .logo img {
  max-width: 880px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.site-tag-line {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 16.2px;
  line-height: 2.4em;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  padding-bottom: 25px;
}

/* Navigation */
#topNav {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1000;
  margin-bottom: 10px;
}

#topNav nav {
  display: inline-block;
  width: 100%;
  text-align: center;
}

#topNav nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto;
  padding: 0;
}

#topNav nav ul li {
  position: relative;
  margin: 0 16px;
}

#topNav nav ul li a {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16.2px;
  letter-spacing: 0.3px;
  line-height: 2.64em;
  text-transform: uppercase;
  color: #05060a;
  text-decoration: none;
  display: inline-block;
  padding: 0 2px;
  transition: color 0.15s ease;
}

#topNav nav ul li a:hover {
  color: var(--hover-color);
}

#topNav nav ul li.active-link > a {
  color: var(--active-color);
  border-bottom: 2px solid var(--active-color);
}

/* Dropdown Subnavigation */
.folder-collection {
  position: relative;
}

.folder-collection .subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  z-index: 9999;
  text-align: left;
}

.folder-collection:hover .subnav {
  display: block;
}

.folder-collection .subnav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.folder-collection .subnav ul li {
  margin: 0;
  width: 100%;
}

.folder-collection .subnav ul li a {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.8em;
  padding: 8px 20px;
  display: block;
  white-space: nowrap;
  color: #222;
  text-align: left;
}

.folder-collection .subnav ul li a:hover {
  color: var(--hover-color);
  background-color: #fafafa;
}

/* Page Divider */
.page-divider {
  width: 100%;
  height: 1px;
  background-color: #e5e5e5;
  margin: 15px 0 35px;
}

/* Mobile Nav Link */
#mobileMenuLink {
  display: none;
  text-align: center;
  margin-bottom: 15px;
}

#mobileMenuLink a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 8px 20px;
  border: 1px solid #ccc;
  display: inline-block;
  border-radius: 3px;
}

#mobileNav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin-bottom: 25px;
  text-align: center;
}

#mobileNav ul {
  list-style: none;
}

#mobileNav ul li {
  padding: 8px 0;
}

#mobileNav ul li a {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #05060a;
}

#mobileNav .mobile-sub {
  background: #f7f7f7;
  padding: 6px 0;
  margin: 6px 0;
}

#mobileNav .mobile-sub a {
  font-weight: 500;
  font-size: 13.5px;
}

/* Page Main Section */
#page {
  flex: 1;
  width: 90%;
  max-width: 960px;
  margin: 0 auto 50px;
}

/* Authentic Social Icons Strip */
.kbm-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px auto 25px;
}

.kbm-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #000000;
  transition: transform 0.2s, color 0.2s;
}

.kbm-social-icons a:hover {
  color: var(--hover-color);
  transform: translateY(-2px);
}

.kbm-social-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Category Page - Authentic 4 Column Layout */
.category-banner-wrapper {
  margin-bottom: 35px;
  text-align: center;
}

.category-banner-wrapper img {
  width: 100%;
  margin: 0 auto;
}

.category-header-title {
  text-align: center;
  margin-bottom: 25px;
}

.category-header-title h1 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #05060a;
  margin-bottom: 8px;
}

.category-header-title p {
  font-size: 14.5px;
  color: #333333;
  margin-bottom: 0;
}

.artists-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 25px;
  margin: 35px 0 50px;
}

.artist-name-item {
  text-align: center;
  padding: 4px 0;
}

.artist-name-item a {
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #05060a;
  display: block;
}

.artist-name-item a:hover {
  color: var(--hover-color);
}

/* Artist Profile Page */
.artist-single-header {
  text-align: center;
  margin-bottom: 30px;
}

.artist-single-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #05060a;
  margin-bottom: 12px;
}

.artist-bio-container {
  font-size: 14px;
  line-height: 1.8em;
  color: #333333;
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: left;
}

.artist-bio-container p {
  margin-bottom: 18px;
}

.available-works-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #05060a;
  margin: 45px 0 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #111;
}

/* Artworks Gallery Grid */
.artist-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 25px;
  margin-bottom: 50px;
}

.gallery-artwork-item {
  text-align: center;
  cursor: pointer;
}

.gallery-artwork-thumb {
  background: #fdfdfd;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  position: relative;
}

.gallery-artwork-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-artwork-item:hover .gallery-artwork-thumb img {
  transform: scale(1.03);
}

.gallery-artwork-caption {
  font-size: 13px;
  color: #222222;
  line-height: 1.4em;
}

.gallery-artwork-caption .art-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.gallery-artwork-caption .art-medium {
  color: #666666;
  font-size: 12px;
}

/* Art-i-san Page */
.artisan-story-box {
  margin-bottom: 35px;
  font-size: 14px;
  line-height: 1.8em;
  color: #333;
}

.artisan-story-box blockquote {
  font-style: italic;
  font-size: 15px;
  color: #222;
  line-height: 1.7em;
  margin: 20px 0;
  padding: 15px 25px;
  background: #fafafa;
  border-left: 3px solid var(--active-color);
}

.artisan-section-heading {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 40px 0 20px;
}

.artisan-designs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  margin: 30px 0 50px;
}

.artisan-design-card {
  text-align: center;
}

.artisan-design-card .pattern-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f7f7;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

.artisan-design-card .pattern-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artisan-design-card .swatches-frame {
  margin-bottom: 12px;
  background: #fafafa;
  padding: 4px;
  border: 1px solid #f0f0f0;
}

.artisan-design-card .swatches-frame img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.artisan-design-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.artisan-inquire-link {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--active-color);
  font-weight: 600;
  margin-top: 6px;
  cursor: pointer;
}

.artisan-inquire-link:hover {
  color: var(--hover-color);
}

/* About Page */
.about-images-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.about-images-row img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.about-paragraphs {
  font-size: 14.5px;
  line-height: 1.85em;
  color: #333333;
}

.about-paragraphs p {
  margin-bottom: 20px;
}

/* Contact Page */
.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}

.contact-text-details {
  font-size: 14px;
  line-height: 1.9em;
}

.contact-text-details strong {
  color: #111;
}

.contact-form-container {
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 25px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 13.5px;
  outline: none;
  background: #fff;
}

.form-control:focus {
  border-color: var(--active-color);
}

.btn-kbm {
  background: var(--active-color);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-kbm:hover {
  background: var(--hover-color);
  color: #ffffff;
}

/* Lightbox Modal (NO PRICE DISPLAY) */
.kbm-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.kbm-lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  background: #fff;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-side {
  flex: 1.5;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.lightbox-image-side img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-details-side {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-details-side h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.lightbox-details-side .lb-artist {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 20px;
}

.lightbox-spec-item {
  font-size: 13px;
  margin-bottom: 8px;
  color: #444;
}

.lightbox-spec-item strong {
  color: #111;
}

.lightbox-inquiry-box {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Footer */
#footer {
  text-align: center;
  padding: 25px 0 10px;
  font-size: 11.5px;
  color: #999;
}

#footer a {
  color: #888;
}

#footer a:hover {
  color: var(--hover-color);
}

/* Responsive */
@media (max-width: 820px) {
  #topNav {
    display: none;
  }
  #mobileMenuLink {
    display: block;
  }
  .artists-columns-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .artist-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-images-row {
    grid-template-columns: 1fr;
  }
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .lightbox-content-box {
    flex-direction: column;
  }
  .lightbox-image-side {
    max-height: 45vh;
  }
}

@media (max-width: 540px) {
  .artists-columns-wrapper {
    grid-template-columns: 1fr;
  }
  .artist-gallery-grid {
    grid-template-columns: 1fr;
  }
  .artisan-designs-grid {
    grid-template-columns: 1fr;
  }
}
