/* ELEGANT EDITORIAL DESIGN SYSTEM */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Color Palette */
:root {
  --cream: #f5f2ed;
  --tan: #e8dcc8;
  --tan-light: #f0ede8;
  --charcoal: #3a3a3a;
  --charcoal-light: #5a5a5a;
  --rust: #a85a4a;
  --rust-dark: #8b4536;
  --white: #ffffff;
  --border: #d4cec4;
}

body {
  font-family: 'Crimson Text', serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.8;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 40px;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.section-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--charcoal-light);
  max-width: 700px;
  margin-bottom: 60px;
  font-style: italic;
}

/* HEADER */
.header-editorial {
  padding: 50px 40px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-subtitle {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--charcoal-light);
  font-weight: normal;
  text-transform: uppercase;
}

/* HERO SECTION */
.hero-section {
  background: var(--cream);
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-text {
  grid-column: 1;
}

.hero-title {
  font-size: 54px;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 30px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.9;
  color: var(--charcoal-light);
  font-style: italic;
}

.hero-image {
  grid-column: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* GALLERY SECTION */
.gallery-editorial {
  padding: 100px 40px;
  background: var(--white);
}

.gallery-editorial .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--tan-light);
}

.item-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.item-3 { grid-column: span 1; }
.item-4 { grid-column: span 1; }
.item-5 { grid-column: span 1; }
.item-6 { grid-column: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 58, 58, 0.2);
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-year {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 1px;
  font-family: 'Lora', serif;
}

/* ABOUT SECTION */
.studio-about {
  padding: 120px 40px;
  background: var(--tan-light);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.about-text-column {
  padding-top: 10px;
}

.about-para {
  font-size: 17px;
  line-height: 1.9;
  color: var(--charcoal-light);
  margin-bottom: 25px;
  text-align: justify;
}

.stats-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  display: block;
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--rust);
  line-height: 1;
}

.stat-description {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--charcoal-light);
  text-transform: uppercase;
}

.about-image-column img {
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

/* CLASSES SECTION */
.classes-section {
  padding: 120px 40px;
  background: var(--white);
}

.classes-header {
  text-align: center;
  margin-bottom: 80px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.class-card {
  padding: 45px;
  background: var(--tan-light);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.class-card:hover {
  background: var(--tan);
  transform: translateY(-4px);
}

.class-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--charcoal);
  font-weight: 600;
}

.class-schedule {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--charcoal-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.class-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 30px;
  flex-grow: 1;
}

.class-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 25px;
}

.btn-class {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lora', serif;
  text-transform: uppercase;
  align-self: flex-start;
}

.btn-class:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.featured-card {
  background: var(--rust);
  border-color: var(--rust);
}

.featured-card .class-title,
.featured-card .class-schedule,
.featured-card .class-description {
  color: var(--white);
}

.featured-card .class-price {
  color: var(--tan);
}

.featured-card .btn-featured-class {
  border-color: var(--white);
  color: var(--white);
}

.featured-card .btn-featured-class:hover {
  background: var(--white);
  color: var(--rust);
}

/* WORKSHOPS SECTION */
.workshops-section {
  padding: 120px 40px;
  background: var(--cream);
}

.workshops-section .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.workshop-card {
  padding: 40px;
  border-left: 3px solid var(--rust);
  padding-left: 40px;
  background: var(--white);
  border: 3px solid transparent;
  border-left-color: var(--rust);
  transition: all 0.4s ease;
}

.workshop-card:hover {
  border-color: var(--rust);
  background: var(--tan-light);
}

.workshop-date {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--rust);
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 12px;
  display: block;
}

.workshop-title {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--charcoal);
  font-weight: 600;
}

.workshop-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-light);
}

/* CONTACT SECTION */
.contact-section {
  padding: 120px 40px;
  background: var(--white);
}

.contact-section .section-title {
  text-align: center;
  margin-bottom: 80px;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal-light);
}

.contact-link {
  color: var(--rust);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-link:hover {
  border-bottom-color: var(--rust);
}

.contact-divider {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

.contact-cta {
  text-align: center;
}

.contact-invitation {
  font-size: 24px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 30px;
  font-style: italic;
}

.btn-contact-main {
  background: var(--rust);
  color: var(--white);
  border: 2px solid var(--rust);
  padding: 14px 42px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lora', serif;
  text-transform: uppercase;
}

.btn-contact-main:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

/* MODAL */
.modal-editorial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 58, 58, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: var(--white);
  padding: 60px;
  width: 90%;
  max-width: 480px;
  border: 1px solid var(--border);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--charcoal);
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 0.6;
}

.modal-title {
  font-size: 28px;
  margin-bottom: 35px;
  color: var(--charcoal);
  font-weight: 600;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--charcoal);
  transition: all 0.3s ease;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: var(--charcoal-light);
  opacity: 0.7;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: var(--white);
}

.modal-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3a3a' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.modal-submit {
  background: var(--rust);
  color: var(--white);
  border: 2px solid var(--rust);
  padding: 14px;
  cursor: pointer;
  margin-top: 15px;
  font-family: 'Lora', serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.modal-submit:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

.success-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.success-message {
  font-size: 22px;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 12px;
}

.success-note {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-image {
    grid-column: 1;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .item-2 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

  .classes-grid,
  .workshops-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-editorial {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .modal-box {
    padding: 40px;
  }

  .about-para {
    text-align: left;
  }
}
