/* ==========================================================================
   GIOVANNA BIALLO STONE — ART & CERAMICS
   Faithful reproduction of giovanna-biallo-stone.com aesthetic
   Typography: Varela Round, clean minimalism, fine-art proportions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-canvas: #ffffff;
  --bg-page: #fafafa;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --text-light: #8e8e8e;
  --border-light: #e5e5e5;
  --border-subtle: #eeeeee;
  --accent-red: #ea3323;
  --accent-orange: #f26522;
  --accent-yellow: #fff200;
  --font-main: 'Varela Round', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #000000;
  opacity: 0.75;
}

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

/* ==========================================================================
   CANVAS CONTAINER (Squarespace #canvas layout)
   ========================================================================== */

#canvas {
  background-color: var(--bg-canvas);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

/* ==========================================================================
   SITE HEADER & LOGO
   ========================================================================== */

.site-header {
  padding: 45px 30px 10px;
  text-align: center;
  position: relative;
}

.upper-logo {
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  max-width: 620px;
  width: 90%;
}

.logo-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.site-tag-line {
  font-family: var(--font-main);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 25px;
  font-weight: 400;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.main-nav {
  margin: 0 auto;
  position: relative;
}

.main-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-link.active,
.nav-link:hover {
  color: #000;
  border-bottom: 2px solid #000;
}

.nav-caret {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.nav-item.has-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 0;
  list-style: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-main);
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  background-color: #f7f7f7;
  color: #000;
}

.admin-nav-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  color: var(--text-light);
}

.admin-nav-link:hover {
  color: #000;
  border-color: #000;
  border-bottom: 1px solid #000;
}

.page-divider {
  width: 92%;
  max-width: 1000px;
  height: 1px;
  background-color: var(--border-light);
  margin: 25px auto 35px;
}

/* Mobile Nav Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  top: 40px;
  right: 25px;
  z-index: 1100;
}

.mobile-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #222;
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
}

/* ==========================================
   PAGE CONTAINER & MAIN CONTENT
   ========================================== */

#page {
  flex: 1;
  padding: 10px 35px 60px;
}

.page-title-banner {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================
   HOMEPAGE (3-COLUMN SIGNATURE LAYOUT)
   ========================================== */

.home-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 20px auto 40px;
}

.home-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  group: true;
}

.home-card-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f7f7f7;
  border-radius: 2px;
  position: relative;
}

.home-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-card:hover .home-card-image-wrap img {
  transform: scale(1.03);
}

.home-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 14px;
  color: var(--text-main);
  text-align: left;
  transition: var(--transition);
}

.home-card:hover .home-card-title {
  color: #000;
  padding-left: 2px;
}

/* ==========================================
   ARTWORK GALLERIES (2-COLUMN & GRID LAYOUTS)
   ========================================== */

.artwork-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  margin-bottom: 40px;
}

.artwork-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.artwork-image-wrap {
  width: 100%;
  background-color: #fafafa;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.artwork-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.artwork-caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.artwork-caption-title {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================
   PORCELAIN DINNER SERVICES
   ========================================== */

.plates-intro {
  text-align: center;
  margin-bottom: 40px;
}

.plates-main-heading {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plates-sub-heading {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

.plate-collection-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.plate-collection-section:last-child {
  border-bottom: none;
}

.plate-collection-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 18px;
  text-align: left;
}

.plates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plate-card {
  cursor: pointer;
  background: #ffffff;
}

.plate-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.plate-card:hover img {
  transform: scale(1.02);
}

/* ==========================================
   ABOUT PAGE (2-COLUMN EDITORIAL)
   ========================================== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: flex-start;
  margin-top: 15px;
}

.about-portrait-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.about-portrait-wrap img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.about-bio-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #333333;
}

.about-bio-heading {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #111;
}

.about-bio-text p {
  margin-bottom: 18px;
}

/* ==========================================
   AVAILABLE WORKS PAGE
   ========================================== */

.available-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 20px;
}

.available-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: 4px;
  transition: var(--transition);
}

.available-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--border-light);
}

.available-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}

.available-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.available-card:hover .available-card-img-wrap img {
  transform: scale(1.03);
}

.available-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  background-color: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 8px;
}

.available-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.available-card-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.btn-inquire {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-inquire:hover {
  background-color: #444444;
  color: #fff;
  opacity: 1;
}

/* ==========================================
   CONTACT PAGE & INQUIRY FORM
   ========================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  margin-top: 20px;
}

.contact-info-panel h3 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contact-info-panel p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-details-list {
  list-style: none;
  margin-top: 25px;
}

.contact-details-list li {
  margin-bottom: 14px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form-panel {
  background: #ffffff;
  padding: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #222;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: #444;
}

.form-feedback {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.88rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================
   FOOTER
   ========================================== */

#footer {
  margin-top: auto;
  padding: 35px 30px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: #000;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-agency-link {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-agency-link:hover {
  color: #111;
}

/* ==========================================
   LIGHTBOX MODAL
   ========================================== */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  color: #ffffff;
}

.lightbox-counter {
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.lightbox-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close-btn:hover {
  opacity: 1;
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 60px;
  position: relative;
}

.lightbox-main-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-footer {
  padding: 18px 30px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.lightbox-caption-text {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.lightbox-caption-details {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ==========================================
   POPIA CONSENT & PRIVACY MODAL
   ========================================== */

.popia-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  z-index: 1500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}

.popia-bar-text {
  color: var(--text-muted);
  max-width: 900px;
}

.popia-bar-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.btn-popia-accept {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-popia-policy {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  cursor: pointer;
}

.popia-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popia-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popia-modal-card {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.popia-modal-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #111;
}

.popia-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.popia-modal-body p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.6;
}

.popia-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

/* ==========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================== */

@media (max-width: 900px) {
  .site-header {
    padding: 30px 20px 10px;
  }

  .home-tri-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 520px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .available-works-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 20px auto 0;
  }
}

@media (max-width: 768px) {
  #canvas {
    border-left: none;
    border-right: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    padding: 80px 25px 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
  }

  .mobile-drawer.open {
    right: 0;
  }

  .mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1150;
  }

  .mobile-drawer-backdrop.open {
    display: block;
  }

  .mobile-nav-list {
    list-style: none;
  }

  .mobile-nav-item {
    margin-bottom: 16px;
  }

  .mobile-nav-item a,
  .mobile-nav-item span {
    font-size: 1.05rem;
    color: #222;
    display: block;
    padding: 6px 0;
  }

  .mobile-sub-list {
    list-style: none;
    padding-left: 14px;
    margin-top: 6px;
    border-left: 2px solid var(--border-light);
  }

  .mobile-sub-list li a {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 5px 0;
  }

  .artwork-gallery-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .plates-grid {
    grid-template-columns: 1fr;
  }

  .popia-cookie-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
