/* Origa Earth - Premium CSS with Theme Switching & Bento Grids */

/* ===== CSS CUSTOM PROPERTIES (THEMES) ===== */
:root,
[data-theme="light"] {
  --primary-bg: #FCFBF8;
  --primary-text: #212529;
  --secondary-text: #555555;
  --accent-color: #E2725B;
  --accent-dark: #c9614a;
  --heading-color: #5C4033;
  --border-color: #EAEAEA;
  --surface-bg: #FFFFFF;
  --surface-hover-bg: #F8F8F8;
  --footer-bg: #333333;
  --footer-text: #A9A9A9;
  --footer-text-light: #f2f2f2;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --transition-duration: 0.3s;
}

[data-theme="dark"] {
  --primary-bg: #1a1a1a;
  --primary-text: #E8E8E8;
  --secondary-text: #B0B0B0;
  --accent-color: #F08570;
  --accent-dark: #E07860;
  --heading-color: #D4A574;
  --border-color: #3a3a3a;
  --surface-bg: #2a2a2a;
  --surface-hover-bg: #353535;
  --footer-bg: #0d0d0d;
  --footer-text: #808080;
  --footer-text-light: #E8E8E8;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.5);
  --shadow-dark: rgba(0, 0, 0, 0.7);
  --transition-duration: 0.3s;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: 'Noto Sans JP', 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  transition: background-color var(--transition-duration) ease,
              color var(--transition-duration) ease;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Georgia', serif;
  color: var(--heading-color);
  transition: color var(--transition-duration) ease;
  font-weight: 600;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

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

/* ===== NAVBAR & HEADER ===== */
.navbar-default {
  background-color: var(--primary-bg);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: background-color var(--transition-duration) ease,
              border-color var(--transition-duration) ease;
}

.navbar-fixed-top {
  margin-bottom: 0;
}

.navbar-default .navbar-brand {
  color: var(--heading-color);
  font-weight: bold;
  font-size: 1.5em;
  font-family: 'Noto Serif JP', serif;
  transition: color var(--transition-duration) ease;
}

.navbar-default .navbar-nav > li > a {
  color: var(--primary-text);
  transition: color var(--transition-duration) ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--accent-color);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
  color: var(--accent-color);
}

.navbar-toggles {
  display: flex !important;
  gap: 15px;
  align-items: center;
}

.theme-toggle,
.language-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--primary-text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-duration) ease;
  font-weight: 600;
}

.theme-toggle:hover,
.language-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--surface-hover-bg);
}

.language-toggle {
  border: 2px solid var(--border-color);
}

/* ===== BUTTONS ===== */
.btn {
  transition: all var(--transition-duration) ease;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
}

.btn-primary-custom {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #FFFFFF;
}

.btn-primary-custom:hover,
.btn-primary-custom:active,
.btn-primary-custom.active {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.btn-default {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--primary-text);
}

.btn-default:hover {
  background-color: var(--surface-hover-bg);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ===== HERO SECTIONS ===== */
.hero-banner {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 50px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-banner h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
  font-weight: 700;
}

.hero-banner h2 {
  font-size: 2em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  font-weight: 500;
}

.hero-banner .btn {
  padding: 12px 30px;
  font-size: 1.1em;
  margin: 10px;
}

.hero-section {
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
  padding: 120px 0;
  position: relative;
  margin-top: 50px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-section h1,
.hero-section p {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-section .lead {
  font-size: 1.4em;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SECTION SPACING ===== */
.section-spacing {
  padding: 80px 0;
  transition: background-color var(--transition-duration) ease;
}

.container {
  transition: background-color var(--transition-duration) ease;
}

/* ===== BENTO GRID LAYOUT ===== */
.studio-intro {
  display: grid;
  gap: 40px;
}

.studio-intro .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.studio-intro .col-md-4,
.studio-intro .col-sm-6 {
  grid-column: span 4;
}

.studio-intro .col-sm-12 {
  grid-column: span 12;
}

/* Featured images with rounded corners */
.studio-intro img {
  border-radius: 14px;
  box-shadow: 0 4px 15px var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-intro img:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

/* Feature cards */
.studio-intro-feature {
  text-align: center;
  padding: 30px;
  background-color: var(--surface-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-duration) ease;
  animation: slideInLeft 0.6s ease-out;
}

.studio-intro-feature:hover {
  box-shadow: 0 8px 20px var(--shadow-medium);
  transform: translateY(-4px);
  background-color: var(--surface-hover-bg);
}

.studio-intro-feature svg {
  width: 64px;
  height: 64px;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: color var(--transition-duration) ease;
}

.studio-intro-feature h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.studio-intro-feature p {
  color: var(--secondary-text);
  line-height: 1.6;
}

/* ===== WORKSHOP CARDS (BENTO STYLE) ===== */
.workshop-card {
  border: 1px solid var(--border-color);
  background-color: var(--surface-bg);
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

.workshop-card:hover {
  box-shadow: 0 12px 28px var(--shadow-medium);
  transform: translateY(-8px);
}

.workshop-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.workshop-card:hover img {
  transform: scale(1.08);
}

.workshop-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workshop-card h3 {
  font-size: 1.4em;
  margin: 0 0 12px 0;
  color: var(--heading-color);
}

.workshop-card p {
  color: var(--secondary-text);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.workshop-card .btn {
  align-self: flex-start;
  margin-top: 15px;
}

/* ===== CLASS CARDS ===== */
.class-card {
  border: 1px solid var(--border-color);
  padding: 28px;
  margin-bottom: 28px;
  background-color: var(--surface-bg);
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all var(--transition-duration) ease;
  border-radius: 12px;
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px var(--shadow-medium);
  background-color: var(--surface-hover-bg);
}

.class-card h3 {
  color: var(--heading-color);
  margin: 0 0 15px 0;
  font-size: 1.5em;
}

.class-card p {
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.class-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.class-card ul li {
  margin-bottom: 12px;
  color: var(--secondary-text);
  padding-left: 24px;
  position: relative;
}

.class-card ul li:before {
  content: '•';
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.class-card strong {
  color: var(--heading-color);
  font-weight: 700;
}

.class-card .btn {
  margin-top: 20px;
}

/* ===== GALLERY GRID (BENTO) ===== */
.gallery-item {
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--surface-bg);
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all var(--transition-duration) ease;
}

.gallery-item:hover {
  box-shadow: 0 10px 28px var(--shadow-medium);
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 14px 14px 0 0;
}

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

.gallery-text {
  padding: 20px;
  background-color: var(--surface-bg);
  text-align: center;
  border-radius: 0 0 14px 14px;
}

.gallery-text h4 {
  font-family: 'Noto Serif JP', serif;
  color: var(--heading-color);
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.gallery-text p {
  color: var(--secondary-text);
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
}

/* ===== COMMISSIONS SECTION ===== */
.commissions-section {
  background-color: var(--surface-hover-bg);
  padding: 100px 0;
  text-align: center;
  transition: background-color var(--transition-duration) ease;
  border-radius: 16px;
  margin: 40px 0;
}

.commissions-section h2 {
  color: var(--heading-color);
  margin-bottom: 20px;
  font-size: 2.2em;
}

.commissions-section p {
  color: var(--secondary-text);
  margin-bottom: 30px;
}

.process-step {
  margin-bottom: 40px;
}

.process-step .icon {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.process-step svg {
  transition: transform 0.3s ease;
}

.process-step:hover svg {
  transform: scale(1.1);
}

.process-step h4 {
  font-family: 'Noto Serif JP', serif;
  color: var(--heading-color);
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1.2em;
}

.process-step p {
  color: var(--secondary-text);
  font-size: 0.95em;
}

/* ===== TESTIMONIALS ===== */
.testimonial-carousel {
  background-color: var(--surface-bg);
  padding: 40px;
  border-radius: 12px;
  transition: all var(--transition-duration) ease;
}

.testimonial-carousel .item {
  text-align: center;
  padding: 30px;
  opacity: 0;
  transition: opacity var(--transition-duration) ease;
}

.testimonial-carousel .item.active {
  opacity: 1;
}

.testimonial-carousel p {
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: var(--primary-text);
}

.testimonial-carousel .author {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1em;
}

.carousel-indicators li {
  background-color: var(--border-color);
  border-color: var(--border-color);
  transition: all var(--transition-duration) ease;
}

.carousel-indicators .active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* ===== BLOG GRID ===== */
.blog-post-card {
  background-color: var(--surface-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-duration) ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card:hover {
  box-shadow: 0 10px 28px var(--shadow-medium);
  transform: translateY(-8px);
}

.blog-post-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover img {
  transform: scale(1.08);
}

.blog-post-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-card h3 {
  font-size: 1.3em;
  margin: 0 0 12px 0;
  color: var(--heading-color);
  flex-grow: 0;
}

.blog-post-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--secondary-text);
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-post-card a.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all var(--transition-duration) ease;
}

.blog-post-card a.read-more:hover {
  color: var(--accent-dark);
  transform: translateX(4px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  padding: 80px 0 40px 0;
  color: var(--heading-color);
  margin-top: 50px;
}

.section-header h2 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 2.5em;
  animation: slideInLeft 0.6s ease-out;
}

.section-header p {
  color: var(--secondary-text);
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-title {
  font-size: 2.8em;
  color: var(--heading-color);
  margin: 60px 0 40px 0;
  text-align: center;
  font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-light);
  padding: 50px 0 0 0;
  margin-top: 80px;
  transition: background-color var(--transition-duration) ease;
}

footer h4 {
  font-family: 'Noto Serif JP', serif;
  color: var(--footer-text-light);
  margin-bottom: 20px;
  font-size: 1.3em;
}

footer p {
  color: var(--footer-text);
  line-height: 1.7;
  font-size: 0.95em;
}

footer a {
  color: var(--footer-text);
  transition: color var(--transition-duration) ease;
}

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

footer .list-unstyled li {
  margin-bottom: 10px;
}

footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

footer address {
  font-style: normal;
  line-height: 1.8;
  color: var(--footer-text);
  margin-bottom: 10px;
}

footer address abbr {
  text-decoration: none;
  margin-right: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-banner {
    height: 450px;
    margin-top: 60px;
  }

  .hero-banner h1 {
    font-size: 2.2em;
  }

  .hero-banner h2 {
    font-size: 1.2em;
  }

  .hero-banner .btn {
    padding: 10px 20px;
    font-size: 0.9em;
    display: block;
    width: 80%;
    margin: 10px auto;
  }

  .hero-section {
    padding: 80px 0;
    margin-top: 60px;
  }

  .hero-section h1 {
    font-size: 2em;
  }

  .hero-section .lead {
    font-size: 1em;
  }

  .section-spacing {
    padding: 60px 0;
  }

  .studio-intro .col-md-4,
  .studio-intro .col-sm-6,
  .studio-intro .col-sm-12 {
    grid-column: span 12;
  }

  .blog-post-card img,
  .workshop-card img {
    height: 200px;
  }

  .section-title {
    font-size: 1.8em;
  }

  .navbar-toggles {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
    margin-top: 10px;
  }

  .theme-toggle,
  .language-toggle {
    padding: 10px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    height: 350px;
  }

  .hero-banner h1 {
    font-size: 1.8em;
  }

  .hero-banner h2 {
    font-size: 1em;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 1.5em;
    margin: 40px 0 30px 0;
  }

  .section-header {
    padding: 40px 0 20px 0;
  }

  .studio-intro img {
    margin-bottom: 20px;
  }

  .commissions-section {
    padding: 60px 20px;
  }

  .process-step .icon {
    font-size: 36px;
  }

  .class-card,
  .blog-post-card,
  .workshop-card {
    margin-bottom: 20px;
  }

  footer {
    padding: 30px 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.lead {
  font-size: 1.25em;
  font-weight: 300;
  line-height: 1.8;
  color: var(--secondary-text);
}

.col-md-12,
.col-sm-12 {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-4 {
  width: 33.333%;
}

.col-md-6 {
  width: 50%;
}

.col-md-3 {
  width: 25%;
}

.col-sm-6 {
  width: 50%;
}

.col-sm-offset-2 {
  margin-left: 16.666%;
}

.col-sm-8 {
  width: 66.666%;
}

.col-lg-12 {
  width: 100%;
}

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

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive utilities */
@media (max-width: 991px) {
  .col-md-3 { width: 50%; }
  .col-md-4 { width: 50%; }
  .col-md-6 { width: 100%; }
}

@media (max-width: 767px) {
  .col-sm-6,
  .col-sm-8 { width: 100%; }
  .col-sm-offset-2 { margin-left: 0; }
}

/* ===== PRIVATE EVENTS SECTION ===== */
.private-events-section {
  background-color: var(--surface-hover-bg);
  text-align: center;
  border-radius: 16px;
  transition: all var(--transition-duration) ease;
}

.private-events-section h2 {
  color: var(--heading-color);
  font-size: 2em;
  margin-bottom: 20px;
}

.private-events-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--secondary-text);
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== SMOOTH PAGE TRANSITIONS ===== */
main {
  animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
  .navbar-toggles,
  .theme-toggle,
  .language-toggle {
    display: none !important;
  }
}
