/* ==========================================================
   lomas — shared stylesheet
   Edit the variables below to change colours, fonts, spacing.
   ========================================================== */

:root {
  --bg: #ffffff;
  --text: #1c1c1c;          /* very dark gray, almost black */
  --text-soft: #5a5a5a;     /* secondary text */
  --line: #e8e8e8;          /* hairlines */
  --placeholder: #f4f4f2;   /* empty image holders */
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 400; }

p + p { margin-top: 1.2em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(56px, 9vw, 120px) 0; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

/* ---------- Navigation (blended with the page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}
.logo img {
  width: auto;
  height: 1.5rem;
  object-fit: contain;
  transform: translateY(-5.3px);
  opacity: 0.95;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3.5vw, 48px);
}
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 10
  px solid transparent;
  transition: border-color 0.3s ease;
}
.nav a:hover,
.nav a.active { border-bottom-color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Image placeholders ---------- */
.ph {
  background: var(--placeholder);
  color: #a3a3a0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 70%;
  transform: scale(1);
}
.ph .ph-label { padding: 0 16px; }
/* when the image loads, hide the label (see script.js) */
.ph.has-image .ph-label { display: none; }

/* ---------- Home: panoramic hero ---------- */
.hero { padding: 0; }
.hero .ph {
  width: 100%;
  aspect-ratio: 21 / 3;     /* panoramic ratio */
  min-height: 200px;
}
.hero-text {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 0;
  max-width: 820px;
  margin: 0 auto;
}
.hero-text p {
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* ---------- News ---------- */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
    transform: scale(1.1);
}
.news-content .news-grid { grid-template-columns: 1fr; }
.news-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 2.5rem;
}
.news-item { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.news-item time {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.news-item h3 { margin: 0.6rem 0; }
.news-item p { color: var(--text-soft); font-size: 0.95rem; }
.justified { text-align: justify; }

/* ---------- Video ---------- */
.video-wrap {
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
}
.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ---------- Page intro ---------- */
.page-intro { padding-bottom: 0; }
.page-intro p {
  max-width: 620px;
  margin-top: 1.2rem;
  color: var(--text-soft);
}

/* ---------- Product detail gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery .ph {
  aspect-ratio: 1 / 1;
  background: transparent;
  cursor: zoom-in;
}
.gallery .ph img { transition: transform 0.3s ease; }
.gallery .ph:hover img,
.gallery .ph:focus-visible img { transform: scale(1.05); }
.gallery-lightbox {
  border: 0;
  padding: 12px;
  max-width: 90vw;
  max-height: 90vh;
  background: #111;
}
.gallery-lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.gallery-lightbox img {
  display: block;
  max-width: calc(90vw - 24px);
  max-height: calc(90vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-lightbox-close {
  display: block;
  margin: 0 0 8px auto;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Controllers: rows of 3 ---------- */
.product-grid .product:first-child .ph img {
  object-position: 50% 50%;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.product-grid .product:first-child .ph:hover img,
.product-grid .product:first-child .ph:focus-visible img {
  transform: scale(1.05);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}
.product .ph { aspect-ratio: 5 / 5; }
.product h3 { margin-top: 1.2rem; }
.product .desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.product .price {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}
.product.soon .ph { opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.btn-row .btn { margin-top: 0; }
.btn-quiet { border-color: var(--line); color: var(--text-soft); }
.btn-quiet:hover { border-color: var(--text); }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 1px solid var(--text);
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Behind the brand ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.story + .story { margin-top: clamp(56px, 8vw, 110px); }
.story .ph { aspect-ratio: 4 / 5; }
.story.reverse .story-media { order: 2; }
.story-text p { color: var(--text-soft); }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 2.5rem;
}
.values div { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.values p { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 8vw, 120px);
}
form { display: grid; gap: 28px; }
label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 8px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus { border-bottom-color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: start; }
.form-note { font-size: 0.9rem; color: var(--text-soft); min-height: 1.4em; }

.details p { color: var(--text-soft); }
.details h3 { margin-bottom: 0.3rem; }
.details div + div { margin-top: 2rem; }
.details a { border-bottom: 1px solid var(--line); }
.details a:hover { border-bottom-color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid,
  .news-grid,
  .values,
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .story,
  .contact-grid { grid-template-columns: 1fr; }
  .story.reverse .story-media { order: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: clamp(24px, 6vw, 36px); }

  .product-grid,
  .news-grid,
  .values,
  .gallery { grid-template-columns: 1fr; }

  .news-layout { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 20px;
    padding: 8px var(--gutter) 28px;
  }
  .nav ul.open { display: flex; }
  .hero .ph { aspect-ratio: 16 / 9; }
}

/* ---------- Small extras ---------- */
.consent { font-size: 0.85rem; color: var(--text-soft); }
.consent a, .site-footer a { border-bottom: 1px solid var(--line); }
.consent a:hover, .site-footer a:hover { border-bottom-color: var(--text); color: var(--text); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-soft); }
.legal a { border-bottom: 1px solid var(--line); }


// New added for Netlify Contact Forms

.hidden-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
