/* ===== TrebolArt — Global Styles ===== */
:root {
  --green: #2D5016;
  --green-light: #3a6b1e;
  --cream: #F5F0E8;
  --cream-dark: #e8e0d0;
  --brown: #8B6914;
  --gold: #C9A227;
  --gold-light: #d4b44a;
  --white: #ffffff;
  --black: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.12);
  --shadow-lg: rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--green);
  padding: 0.8rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.5px;
}

.logo .clover {
  font-size: 1.6rem;
  color: var(--gold);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: transparent;
  color: var(--cream);
  opacity: 0.65;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-btn:hover { opacity: 0.9; }

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* ===== Hero ===== */
.hero {
  margin-top: 60px;
  position: relative;
  background: linear-gradient(135deg, var(--green) 0%, #1a3a0c 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '🍀';
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-tagline {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--cream);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-clover-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.5;
}

/* ===== Section Titles ===== */
.section { padding: 4rem 0; }

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-divider {
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.6rem;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.painting-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.painting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-lg);
}

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

.card-body {
  padding: 1.2rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.15rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0.6rem 0;
}

.card-sold {
  display: inline-block;
  background: #c0392b;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.btn-buy {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--cream);
  padding: 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
}

.btn-buy:hover { background: var(--green-light); }

.btn-buy.sold-out {
  background: #999;
  pointer-events: none;
}

/* ===== About ===== */
.about-section { background: var(--white); }

.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
}

.about-content p { margin-bottom: 1rem; }

.about-clover {
  font-size: 3rem;
  display: block;
  margin: 1.5rem auto 1rem;
  color: var(--green);
}

/* ===== How to Buy ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-card {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: #666;
}

.bizum-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #666;
}

.bizum-logo {
  display: inline-block;
  background: #05c3dd;
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* ===== Contact ===== */
.contact-section { background: var(--white); }

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner p {
  margin-bottom: 1rem;
  color: #555;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}

.btn-whatsapp-contact {
  display: inline-block;
  background: #25D366;
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0;
  transition: background var(--transition);
}

.btn-whatsapp-contact:hover { background: #1fb855; }

.delivery-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--brown);
  border-left: 4px solid var(--gold);
}

/* ===== Footer ===== */
.footer {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  opacity: 0.95;
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3rem 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .painting-card img { height: 180px; }
  .card-body { padding: 0.8rem; }
  .card-title { font-size: 0.95rem; }
  .card-price { font-size: 1.05rem; }
  .btn-buy { font-size: 0.8rem; padding: 0.55rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .painting-card img { height: 220px; }
  .steps-grid { grid-template-columns: 1fr; }
}
