/* RELM Workshop — Turn-Key for Sale
   Clean, modern, mobile-first. Green accent for WhatsApp CTA. */

:root {
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #2d8a4e;
  --color-accent-hover: #247a42;
  --color-border: #e8e8e8;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(100% - 2rem, 960px);
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem 0.75rem;
  gap: 1rem;
}

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

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-whatsapp {
  background: var(--color-accent);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn-icon {
  font-size: 1.1em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: 3rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f5f7f6 0%, #e8f0ec 50%, #f0f5f2 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

.hero-content {
  text-align: center;
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  line-height: 0;
}

.hero-image-btn img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.hero-highlights {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.hero-highlights li {
  padding: 0.4rem 0.9rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--color-text);
}

.hero-highlights strong {
  color: var(--color-accent);
}

.btn-hero {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding-block: 3rem;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
}

.intro {
  background: #fafafa;
}

.intro-text {
  margin: 0;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  line-height: 0;
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Ideal for */
.ideal-for-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.ideal-for-list li {
  margin-bottom: 0.5rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.feature-value {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Machinery */
.machinery-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.machinery-list li {
  margin-bottom: 0.35rem;
}

.machinery-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Terms */
.terms-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.terms-list li {
  margin-bottom: 0.5rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #e8f0ec 0%, #f0f5f2 100%);
  text-align: center;
}

.cta-title {
  margin: 0 0 0.5rem;
}

.cta-text {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
}

.cta-phone {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.cta-phone a {
  font-weight: 600;
}

.btn-cta {
  padding: 0.9rem 1.75rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cta-email {
  margin: 0;
  font-size: 0.95rem;
}

.cta-email a {
  font-weight: 600;
}

/* Footer */
.footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    left: 0.5rem;
    right: 0.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-cta {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero,
  .btn-cta {
    width: 100%;
    max-width: 320px;
  }
}
