/* =========================================
   GLOBAL RESET & VARIABLES
   ========================================= */
:root {
  --bg-dark: #f4efe9;
  --bg-quote: #eae3d9;
  --bg-panel: #ffffff;
  --text-main: #2d2a26;
  --text-muted: #75706b;
  --accent-blue: #b47a46;
  --navbar-bg: #221f1e;
  --navbar-text: #f4efe9;
  
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  
  --border-radius: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: var(--font-heading);
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin: 0 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(244, 239, 233, 0.7);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  transition: color var(--transition-smooth), border-color var(--transition-smooth);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.lang-switch {
  background: transparent;
  border: 1px solid rgba(244, 239, 233, 0.3);
  color: var(--navbar-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.lang-switch:hover {
  background: rgba(244, 239, 233, 0.1);
  border-color: rgba(244, 239, 233, 0.6);
}

/* =========================================
   BUTTONS & BADGES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #9d5d41;
  color: #ffffff;
}

.btn-primary:hover {
  background: #824a31;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(157, 93, 65, 0.3);
}

.btn-outline {
  border: 1px solid var(--text-main);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-panel);
}

.badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: bold;
  z-index: 10;
}

.badge-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-blue);
  backdrop-filter: blur(4px);
}

/* =========================================
   HOME PAGE: HERO & QUOTE
   ========================================= */
.hero-banner {
  padding: 2rem 5%;
  margin-bottom: 1rem;
}

.hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.hero-quote {
  background-color: var(--bg-quote);
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-container h1 {
  font-size: 2.5rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.quote-container .highlight {
  color: var(--accent-blue);
  font-weight: bold;
}

.quote-container .author {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* =========================================
   HOME PAGE: FEATURED & ABOUT CARDS
   ========================================= */
.featured-section, 
.about-section {
  padding: 0 5% 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.featured-card, 
.about-card {
  background-color: var(--bg-panel);
  border-radius: var(--border-radius);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.featured-image, 
.about-image {
  position: relative;
  border-radius: calc(var(--border-radius) - 5px);
  overflow: hidden;
}

.featured-image img, 
.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img,
.about-card:hover .about-image img {
  transform: scale(1.03);
}

.accent-line {
  width: 40px;
  height: 3px;
  background-color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  line-height: 1.2;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 450px;
  line-height: 1.8;
}

/* =========================================
   HOME PAGE: SERIES SECTION
   ========================================= */
.series-section {
  padding: 2rem 5% 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.series-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.series-header h2 {
  font-size: 2.5rem;
  color: var(--text-main);
}

.series-header .subtitle {
  color: var(--accent-blue);
  font-size: 0.8rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.view-all {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-smooth);
  font-weight: 500;
}

.view-all:hover {
  color: var(--accent-blue);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.color-card {
  height: 300px;
  border-radius: calc(var(--border-radius) - 5px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.color-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.c-purple { background: linear-gradient(135deg, #d946ef, #8b5cf6); }
.c-teal   { background: linear-gradient(135deg, #2dd4bf, #f97316); }
.c-orange { background: linear-gradient(135deg, #fbbf24, #f97316); }
.c-green  { background: linear-gradient(135deg, #10b981, #3b82f6); }
.c-blue   { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }

.color-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
}

.color-card:hover .color-info {
  opacity: 1;
}

.color-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.color-info span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   ARTIST PAGE
   ========================================= */
.artist-main {
  padding: 4rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.artist-hero {
  margin-bottom: 4rem;
  text-align: center;
}

.artist-photo-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e5dfd5;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.placeholder-icon {
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.artist-title h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.artist-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.artist-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.info-card {
  background-color: var(--bg-panel);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  color: var(--accent-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =========================================
   CATALOG PAGE
   ========================================= */
.catalog-main {
  padding: 4rem 5% 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.catalog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalog-header h1 {
  font-size: 3.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.catalog-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color var(--transition-smooth);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}


.filter-select {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  transition: border-color var(--transition-smooth);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-blue);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4rem 2rem;
}

.art-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.art-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #e5dfd5, #d5ce c2);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.art-card:hover .art-image-wrapper {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.art-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.art-card:hover .art-image-wrapper img {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.art-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.badge-sold {
  background: rgba(0, 0, 0, 0.75);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-available {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.art-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.art-title-row h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: color var(--transition-smooth);
}

.art-card:hover .art-title-row h3 {
  color: var(--accent-blue);
}

.art-price {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
}

.art-medium {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.art-dimensions {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* =========================================
   PAINTING DETAILS PAGE
   ========================================= */
.painting-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 3rem;
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.back-link:hover {
  color: var(--accent-blue);
  transform: translateX(-4px);
}

.painting-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.painting-image-wrapper {
  background: var(--bg-panel);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.painting-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.overline {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.painting-title {
  font-size: 3.5rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.painting-desc {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.spec-card {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
}

.spec-text {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.purchase-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-panel);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.purchase-action .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-main);
}

.btn-purchase {
  background: var(--navbar-bg); 
  color: var(--navbar-text);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-purchase:hover {
  transform: translateY(-2px);
  background: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(180, 122, 70, 0.3);
}

/* =========================================
   MODAL OVERLAY
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 31, 30, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-panel);
  padding: 3.5rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--accent-blue);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo-area p {
  color: rgba(244, 239, 233, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
}

.footer-nav a {
  color: rgba(244, 239, 233, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.social-icon:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(244, 239, 233, 0.1);
  padding-top: 2rem;
  color: rgba(244, 239, 233, 0.5);
  font-size: 0.85rem;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================= */
@media (max-width: 1024px) {
  .featured-card, 
  .about-card,
  .painting-layout {
    gap: 3rem;
    padding: 3rem;
  }
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .quote-container h1 {
    font-size: 2rem;
  }

  .featured-card, 
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .accent-line {
    margin: 0 auto 1.5rem;
  }

  .about-text p {
    margin: 0 auto 2.5rem;
  }

  .series-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .painting-layout {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .purchase-action {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .color-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
  
  .artist-photo-placeholder {
    height: 300px;
  }

  .info-card {
    padding: 2rem 1.5rem;
  }
  
  .painting-title {
    font-size: 2.5rem;
  }
}