/*
Theme Name: Una Maslov Art
Theme URI: https://unamaslov.com
Author: Una Maslov Studio
Description: Custom WordPress theme for artist Una Maslov. Warm, emotional design for selling original oil paintings through inquiry-based model. Bilingual RU/EN, SEO-optimized, with corporate art section and interactive room visualizer.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: una-maslov
Tags: art, portfolio, gallery, artist, paintings, bilingual
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: #E8C8A9; color: #2C2420; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: #FAF7F2;
  color: #2C2420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }

/* ========== CSS VARIABLES ========== */
:root {
  --accent: #C1440E;
  --accent-hover: #A83A0B;
  --bg: #FAF7F2;
  --bg-white: #ffffff;
  --bg-warm: #FDF0E2;
  --bg-card: #ffffff;
  --border: #EDE6DD;
  --border-light: #E0D5CA;
  --text: #2C2420;
  --text-body: #7A6B5D;
  --text-muted: #9B8B7E;
  --text-light: #A09487;
  --text-faint: #B5A89D;
  --text-dark-bg: #C1A68A;
  --footer-bg: #2C2420;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Libre Baskerville', Georgia, serif;
  --max-w: 1240px;
  --radius: 6px;
  --shadow-card: 0 14px 40px rgba(44,36,32,.09);
  --shadow-btn: 0 6px 20px rgba(193,68,14,.22);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
.accent { font-style: italic; color: var(--accent); }

.section-tag {
  font-family: var(--sans);
  font-weight: 500; font-size: 11px;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; width: 20px; height: 1.5px; background: var(--accent); }

.body-text {
  font-family: var(--sans); font-weight: 300;
  font-size: 15px; color: var(--text-body);
  line-height: 1.8;
}

/* ========== LAYOUT ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 28px; }
.section--white { background: var(--bg-white); }
.section--warm { background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border-radius: 4px; transition: all .3s;
  text-decoration: none;
}
.btn--primary {
  padding: 12px 28px;
  background: var(--accent); border: none;
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.btn--outline {
  padding: 11px 28px;
  background: transparent; border: 1.5px solid var(--border-light);
  color: var(--text-body);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 28px; transition: all .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250,247,242,.96);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(193,168,138,.15);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.site-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.site-logo .accent { font-style: italic; color: var(--accent); }

.main-nav { display: flex; gap: 22px; align-items: center; }
.nav-link {
  color: var(--text-body); font-family: var(--sans); font-weight: 400;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color .3s;
}
.nav-link:hover { color: var(--accent); }

.lang-toggle {
  display: flex; border: 1.5px solid var(--border-light);
  border-radius: 20px; overflow: hidden; margin-left: 8px;
}
.lang-toggle a, .lang-toggle span {
  padding: 5px 12px; font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; transition: all .3s;
  text-decoration: none;
}
.lang-toggle .active {
  background: var(--accent); color: var(--bg);
}
.lang-toggle a:not(.active) { color: var(--text-muted); }
.lang-toggle a:not(.active):hover { color: var(--accent); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  width: 22px; height: 1.5px; background: var(--text);
  transition: .3s; display: block;
}
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(250,247,242,.98); padding: 24px 28px;
  flex-direction: column; gap: 16px;
  animation: fadeIn .3s;
}
.mobile-nav.open { display: flex; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EDE3 25%, #FDF0E2 55%, #FAF7F2 100%);
  background-size: 200% 200%;
  animation: drift 14s ease infinite;
}
.hero__blob {
  position: absolute; border-radius: 55% 45%;
  animation: breathe 8s ease-in-out infinite;
}
.hero__blob--1 { top: 12%; right: 10%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(193,68,14,.05), transparent 70%); }
.hero__blob--2 { bottom: 18%; left: 6%; width: 160px; height: 160px; border-radius: 45% 55%; background: radial-gradient(circle, rgba(42,157,143,.04), transparent 70%); animation-delay: 1.5s; }
.hero__blob--3 { top: 55%; right: 35%; width: 120px; height: 120px; border-radius: 50% 42%; background: radial-gradient(circle, rgba(233,196,106,.07), transparent 70%); animation-delay: 3s; }

.hero__content { position: relative; padding: 130px 0 70px; width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero__text { animation: fadeUp .9s; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 20px; line-height: 1.15; }
.hero__subtitle { max-width: 440px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__badges { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; }
.hero__badge {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 11px; color: var(--text-muted);
}
.hero__badge::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: .5;
}

.hero__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: fadeUp 1.1s; }
.hero__gallery-item {
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
}
.hero__gallery-item:nth-child(odd) { aspect-ratio: 4/5; }
.hero__gallery-item:nth-child(even) { aspect-ratio: 1; }
.hero__gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero__gallery-item:hover img { transform: scale(1.05); }
.hero__gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(44,36,32,.55));
  font-family: var(--sans); font-size: 10px; color: #fff; opacity: .9;
}

/* ========== COLOR STRIP ========== */
.color-strip { height: 3px; display: flex; }
.color-strip div { flex: 1; }

/* ========== STATS ========== */
.stats { text-align: center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats__number { font-size: 36px; font-weight: 400; color: var(--accent); line-height: 1; }
.stats__label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); margin-top: 6px;
}

/* ========== GALLERY / PAINTINGS ========== */
.filter-bar { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 15px; border: 1.5px solid var(--border);
  border-radius: 20px; cursor: pointer;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  background: transparent; color: var(--text-body);
  transition: all .3s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--accent); background: var(--accent); color: var(--bg);
}

.painting-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-card);
  transition: transform .5s cubic-bezier(.23,1,.32,1), box-shadow .5s;
  cursor: pointer;
}
.painting-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.painting-card__image { overflow: hidden; position: relative; }
.painting-card__image > div { aspect-ratio: 5/6; }
.painting-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}
.painting-card:hover img { transform: scale(1.04); }

.painting-card__sold {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 12px; background: rgba(250,247,242,.92);
  border-radius: 14px; font-family: var(--sans);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}

.painting-card__info { padding: 12px 14px 16px; }
.painting-card__style {
  font-family: var(--sans); font-size: 9.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 3px;
}
.painting-card__title { font-size: 17px; margin-bottom: 1px; }
.painting-card__meta {
  font-family: var(--sans); font-size: 12px; color: var(--text-light);
}
.painting-card__palette { display: flex; gap: 3px; margin-top: 8px; }
.palette-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ========== ABOUT ========== */
.about__portrait {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.about__portrait-frame {
  position: absolute; top: 12px; left: 12px; right: -12px; bottom: -12px;
  border: 1.5px solid rgba(193,68,14,.1); border-radius: var(--radius);
  z-index: -1;
}
.style-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.style-badge {
  padding: 5px 12px; border-radius: 16px;
  background: var(--bg); font-family: var(--sans);
  font-size: 11px; color: var(--text-body);
  border: 1px solid var(--border);
}

/* ========== CORPORATE ========== */
.corporate-card {
  padding: 22px; background: var(--bg-white);
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all .4s;
}
.corporate-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(193,68,14,.06);
}
.corporate-card__icon { font-size: 28px; margin-bottom: 12px; color: var(--accent); }
.corporate-card__desc { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.corporate-trust {
  font-family: var(--sans); font-size: 12px;
  color: var(--text-light); font-style: italic; max-width: 500px;
}

/* ========== VISUALIZER ========== */
.visualizer__canvas {
  aspect-ratio: 16/10; border-radius: 8px; overflow: hidden;
  position: relative; border: 2px dashed var(--border);
  background: linear-gradient(135deg, var(--border), var(--border-light));
}
.visualizer__canvas--has-photo { border-style: solid; }
.visualizer__upload {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
}
.visualizer__upload-icon { font-size: 36px; color: var(--text-dark-bg); margin-bottom: 8px; }
.visualizer__painting {
  position: absolute; cursor: grab; box-shadow: 0 8px 32px rgba(0,0,0,.35);
  border: 6px solid #fff;
}
.visualizer__painting:active { cursor: grabbing; }
.visualizer__sidebar { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.visualizer__thumb {
  display: flex; gap: 8px; padding: 6px; border-radius: 4px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.visualizer__thumb.active { border-color: var(--accent); background: rgba(193,68,14,.04); }
.visualizer__thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; }

/* ========== REVIEWS ========== */
.review-card {
  padding: 22px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.review-card__stars { display: flex; gap: 2px; margin-bottom: 10px; color: #E9C46A; font-size: 14px; }
.review-card__text { font-style: italic; font-size: 15px; line-height: 1.7; color: #4A3F37; margin-bottom: 14px; }
.review-card__author { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.review-card__city { font-family: var(--sans); font-size: 11px; color: var(--text-light); }
.review-card__painting { font-family: var(--sans); font-size: 10px; color: var(--text-dark-bg); font-style: italic; }

/* ========== BLOG / JOURNAL ========== */
.post-card {
  padding: 22px; background: var(--bg-white);
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: all .4s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(44,36,32,.06);
}
.post-card__tag {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.post-card__title { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.post-card__desc { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.post-card__link {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}

/* ========== NEWSLETTER ========== */
.newsletter { text-align: center; }
.newsletter__form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }

/* ========== FORMS ========== */
.form-field {
  width: 100%; padding: 12px 14px;
  background: var(--bg-white); border: 1.5px solid var(--border-light);
  border-radius: 4px; color: var(--text);
  font-family: var(--sans); font-size: 14px;
  outline: none; transition: border-color .3s;
}
.form-field:focus { border-color: var(--accent); }
.form-field::placeholder { color: var(--text-faint); }
textarea.form-field { resize: vertical; }

/* ========== CONTACT ========== */
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg-white);
  border-radius: 5px; border: 1px solid var(--border); margin-bottom: 8px;
}
.contact-item__icon { font-size: 15px; color: var(--accent); width: 26px; text-align: center; }
.contact-item__label {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint);
}
.contact-item__value { font-family: var(--sans); font-size: 13px; color: #4A3F37; }

/* ========== FOOTER ========== */
.site-footer { padding: 40px 28px 18px; background: var(--footer-bg); color: var(--text-dark-bg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer__title {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.footer__link {
  display: block; font-family: var(--sans); font-size: 12px;
  color: #8B7B6E; text-decoration: none; margin-bottom: 5px; transition: color .3s;
}
.footer__link:hover { color: #FAF7F2; }
.footer__bottom {
  padding-top: 14px; border-top: 1px solid rgba(193,168,138,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-family: var(--sans); font-size: 10.5px; color: #6B5B4E;
}

/* ========== MODAL / OVERLAY ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(44,36,32,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; animation: fadeIn .3s;
}
.modal {
  max-width: 820px; width: 100%;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-white); max-height: 92vh;
}
.modal--inquiry { max-width: 480px; background: var(--bg); padding: 32px; }
.modal__close {
  position: absolute; top: 10px; right: 10px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer;
  font-size: 14px; color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
}
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal__image img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.modal__content { padding: 28px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; position: relative; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero__grid, .grid-2, .modal__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4, .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2rem; }
  .modal__image { max-height: 250px; overflow: hidden; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
}

/* Hero placeholder when no paintings */
.hero-placeholder {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; aspect-ratio:3/4; border-radius:12px;
  background:linear-gradient(135deg,#F5EDE3 0%,#E8DDD3 40%,#FDF0E2 100%);
  position:relative; overflow:hidden;
  grid-column: 1 / -1;
}
.hero-placeholder::before {
  content:'UM'; font-size:140px; font-weight:300;
  color:rgba(193,68,14,.06); font-family:var(--serif);
  font-style:italic; line-height:1;
}
.hero-placeholder::after {
  content:'Fine Art · Oil on Canvas';
  font-family:var(--sans); font-size:11px; letter-spacing:3px;
  text-transform:uppercase; color:rgba(155,139,126,.5);
  margin-top:16px;
}

/* Contact logo icons */
.contact-item__icon-img {
  mix-blend-mode: multiply;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Prints & Merch interactivity */
#prints .grid-2 > div { transition: transform .3s, box-shadow .3s; }
#prints .grid-2 > div:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(44,36,32,.08); }
