/* ============================================
   LIBI ARTS - Brand Design System
   ============================================ */

/* --- CSS Custom Properties (Brand Palette) --- */
:root {
  /* Primary accent - Terracotta / Earth */
  --gold: #C1714F;
  --gold-light: #E8C4B3;
  --gold-mid: #D49A7E;
  --gold-dark: #8B4A2E;
  --gold-deep: #5A2D17;

  /* Earth tones - Ceramic palette */
  --peach: #F4CCB1;
  --tan: #E9B089;
  --orange: #DE7128;
  --sienna: #944B1B;
  --brown-deep: #4A260D;

  /* Neutrals */
  --cream: #ECE3D3;
  --cream-80: rgba(236, 227, 211, 0.8);
  --white: #FFFFFF;
  --gray-light: #F5F0EB;
  --gray: #CACACA;
  --gray-mid: #7F7E7E;
  --gray-dark: #464646;
  --near-black: #080808;

  /* Functional */
  --text-primary: var(--near-black);
  --text-secondary: var(--gray-dark);
  --text-muted: var(--gray-mid);
  --bg-primary: var(--white);
  --bg-warm: var(--gray-light);
  --bg-cream: var(--cream);
  --accent: var(--gold);
  --accent-hover: var(--gold-dark);

  /* Typography */
  --font-heading: 'Open Sans', sans-serif;
  --font-body: Georgia, Palatino, 'Book Antiqua', 'Palatino Linotype', serif;
  --font-ui: 'Open Sans', sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --container-width: 1100px;
  --gap: 24px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL support */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 48px; letter-spacing: 0.02em; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin-bottom: 1em; }

.text-accent { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: var(--section-pad) 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section--cream {
  background: var(--bg-cream);
}

/* Textured section - uses real studio worktable photo */
.section--textured {
  background: url('../images/bg-about.jpg') center / cover no-repeat fixed;
  position: relative;
}

.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.section--textured > .container {
  position: relative;
  z-index: 1;
}

/* Workshops section background */
.section--workshop {
  background: url('../images/bg-workshops.jpg') center / cover no-repeat;
  position: relative;
}

.section--workshop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.section--workshop > .container {
  position: relative;
  z-index: 1;
}

.section--dark {
  background: var(--near-black);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Gold accent line under section titles */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--gray);
}

[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 16px;
  padding-left: 0;
  padding-right: 16px;
  border-left: none;
  border-right: 1px solid var(--gray);
}

.lang-switcher button {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switcher button:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.lang-switcher button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--near-black);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream-80);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: var(--section-pad) 0;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--gold);
  color: var(--near-black);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

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

.btn--outline:hover {
  background: var(--near-black);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--near-black);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* --- Images Strip (studio atmosphere) --- */
.images-strip {
  display: flex;
  gap: 0;
  height: 160px;
  overflow: hidden;
}

.images-strip img {
  flex: 1;
  object-fit: cover;
  height: 100%;
  min-width: 0;
  transition: transform 0.5s ease;
}

.images-strip img:hover {
  transform: scale(1.05);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 16px;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-dark);
  margin-top: 12px;
}

/* --- Gallery Masonry --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

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

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.overlay-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

/* --- Features / Techniques List --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 1;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* --- Pricing Box --- */
.pricing-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.pricing-box .price {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.pricing-box .price-period {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-box .price-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

[dir="rtl"] .pricing-box .price-features {
  text-align: right;
}

.pricing-box .price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-box .price-features li::before {
  content: '\2713';
  color: var(--gold-dark);
  font-weight: 700;
  margin-right: 12px;
}

[dir="rtl"] .pricing-box .price-features li::before {
  margin-right: 0;
  margin-left: 12px;
}

/* --- Commission Section --- */
.commission-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.commission-preview img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.commission-steps {
  counter-reset: step;
  list-style: none;
  margin: 24px 0;
}

.commission-steps li {
  counter-increment: step;
  padding: 12px 0 12px 48px;
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
}

[dir="rtl"] .commission-steps li {
  padding: 12px 48px 12px 0;
}

.commission-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

[dir="rtl"] .commission-steps li::before {
  left: auto;
  right: 0;
}

/* --- Contact / Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

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

/* --- Footer --- */
.footer {
  background: var(--near-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p {
  font-size: 15px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--gold);
}

/* --- Free Trial Banner --- */
.trial-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.trial-banner h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--white);
}

.trial-banner p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --section-pad: 56px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }

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

  .commission-preview,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .menu-toggle { display: block; }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 40px;
    --gap: 16px;
  }

  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }

  .cards-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .pricing-box {
    padding: 28px 20px;
  }

  .pricing-box .price {
    font-size: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--gray);
  padding: 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

[dir="rtl"] .faq-item summary::after {
  margin-left: 0;
  margin-right: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* --- Simple bullet list (no numbered circles) --- */
.bullet-list {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

[dir="rtl"] .bullet-list {
  padding-left: 0;
  padding-right: 24px;
}

.bullet-list li {
  padding: 6px 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: none;
}

/* --- Feature icon as SVG container --- */
.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
