:root {
  --bg-color: #3B0D0D; /* Deep burgundy / dark red from user image */
  --text-color: #F1EDE4; /* Cream white */
  --accent-color: #FFFFFF; /* White */
  --font-primary: 'Raleway', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.05em;
}

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

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

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

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
header {
  padding: 40px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* --- Hero Section (index) --- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content-left {
  max-width: 600px;
}

.hero-content-left h1 {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.2s;
}

.hero-content-left p {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.6s;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--text-color);
}

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

.hero-image-right {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.5s forwards 0.8s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.main-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- About Section --- */
.about-section {
  padding: 100px 0;
  background-color: #260808;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #CCC;
  line-height: 1.8;
}

.about-image {
  height: 600px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-container, .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-right, .about-image {
    height: 50vh;
  }
  .hero-content-left {
    text-align: center;
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* --- Page Header (Catalog / Contact) --- */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* --- Catalog Grid --- */
.catalog {
  padding-bottom: 100px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.artwork-card {
  position: relative;
  cursor: pointer;
  group: artwork;
}

.artwork-image {
  overflow: hidden;
  background-color: #333;
  aspect-ratio: 4/5;
}

.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.artwork-info {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.artwork-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.artwork-details {
  font-size: 0.9rem;
  color: var(--accent-color);
}

/* --- Contact Form --- */
.contact-section {
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  background: #260808;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #555;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--text-color);
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--accent-color);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--text-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Footer --- */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
  font-size: 0.9rem;
  color: var(--accent-color);
}

/* --- Animations --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Mobile Menu & Responsive --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

/* --- Social Icons & Contact Links --- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icon:hover {
  transform: translateY(-2px);
  color: var(--text-color);
}
.contact-methods {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 1.1rem;
}
.contact-link svg {
  color: var(--accent-color);
}

/* --- Product Page --- */
.product-page {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 100vh;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-image-container {
  background-color: #333;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info-container {
  position: sticky;
  top: 150px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 30px;
}
.back-link:hover {
  color: var(--text-color);
}
.product-title {
  font-size: 3rem;
  margin-bottom: 5px;
}
.product-technique {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-style: italic;
}
.product-price {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 40px;
}
.product-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #CCC;
}
.product-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-info-container {
    position: relative;
    top: 0;
  }
}

/* === EDITORIAL REVAMP STYLES === */

.editorial-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  z-index: 100;
  font-family: var(--font-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.editorial-header a {
  margin-right: 40px;
}

.editorial-header a.active, .editorial-header a:hover {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Section */
.editorial-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-text-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 25vw;
  line-height: 0.8;
  color: #1A1A1A; /* Extremely subtle on dark background */
  white-space: nowrap;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  opacity: 0.5;
}

.hero-text-bg .offset {
  margin-left: 20vw;
}

.hero-image-overlay {
  position: relative;
  z-index: 2;
  width: 60%;
  max-width: 800px;
  margin: 0 auto;
}

.hero-image-overlay img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-title-front {
  position: absolute;
  bottom: -40px;
  left: -10%;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 8vw;
  color: var(--text-color);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-title-sub {
  position: absolute;
  top: 20%;
  right: -20%;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 8vw;
  color: var(--text-color);
  line-height: 0.9;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero-desc {
  z-index: 3;
  margin-top: 60px;
  text-align: center;
  max-width: 500px;
  font-size: 0.95rem;
  color: #CCC;
}

.learn-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 3px;
}

/* About Editorial */
.about-editorial {
  padding: 120px 0;
  background-color: var(--bg-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.about-image-full img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.about-content {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #260808;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.about-content p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #999;
}

/* Catalog Editorial */
.editorial-page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  padding-left: 60px;
  text-align: left;
}

.editorial-page-header h1 {
  font-size: 4rem;
  font-weight: 600;
}

.editorial-list-container {
  padding: 0 60px 100px;
}

.editorial-item {
  display: flex;
  margin-bottom: 150px;
  gap: 60px;
  align-items: center;
}

.editorial-item:nth-child(even) {
  flex-direction: row-reverse;
}

.editorial-image-link {
  flex: 1.5;
  display: block;
}

.editorial-image-link img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.editorial-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.editorial-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.editorial-title a {
  text-decoration: none;
}

.editorial-title a:hover {
  color: var(--text-color);
  opacity: 0.8;
}

.editorial-author {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 30px;
}

.separator {
  margin: 0 10px;
  color: #555;
}

.editorial-desc {
  font-size: 1.05rem;
  color: #AAA;
  line-height: 1.8;
  margin-bottom: 40px;
}

.editorial-price-link {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 5px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .editorial-header {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .header-left a, .header-right a {
    margin: 0 15px;
  }
  .header-left, .header-right {
    display: flex;
    justify-content: center;
  }
  .hero-text-bg {
    font-size: 30vw;
  }
  .hero-image-overlay {
    width: 90%;
  }
  .hero-title-front {
    position: absolute;
    bottom: 5%;
    left: -5%;
    font-size: 20vw;
    text-align: left;
    width: auto;
    margin-top: 0;
    line-height: 0.85;
    z-index: 10;
  }
  .hero-title-sub {
    position: absolute;
    top: 10%;
    right: 2%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 15vw;
    text-align: right;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    display: block;
    line-height: 0.85;
    z-index: 10;
  }
  .hero-text-content {
    margin-top: 50px;
    padding: 0 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    padding: 50px 20px;
    text-align: center;
  }
  .editorial-page-header {
    padding-left: 0;
    text-align: center;
  }
  .editorial-list-container {
    padding: 0 20px 50px;
  }
  .editorial-item, .editorial-item:nth-child(even) {
    flex-direction: column;
    margin-bottom: 80px;
    align-items: center;
  }
  .editorial-info {
    padding: 30px 0 0;
    text-align: center;
    align-items: center;
  }
  .editorial-price-link {
    align-self: center;
  }
}

/* --- Contact Page Styles --- */
.contact-page {
  padding-bottom: 120px;
}

.contact-container {
  padding: 0 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 25px;
  font-weight: 300;
}

.contact-info p {
  font-size: 1.05rem;
  color: #AAA;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  opacity: 0.7;
}

.detail-item a {
  font-size: 1.2rem;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form-container {
  background: rgba(0, 0, 0, 0.25);
  padding: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(241, 237, 228, 0.4);
}

.submit-btn {
  background: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  padding: 16px 30px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  align-self: flex-start;
}

.submit-btn:hover {
  background: transparent;
  color: var(--text-color);
}

@media (max-width: 900px) {
  .contact-container {
    padding: 0 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-container {
    padding: 30px 20px;
  }
  .submit-btn {
    width: 100%;
    text-align: center;
  }
}
