/* BARLE — lightweight responsive one-page website */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #232323;
  --muted: #66625c;
  --line: #dedbd3;
  --accent: #e2aa13;
  --accent-dark: #b78300;
  --header: #222222;
  --max: 1440px;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  width: 100%;
  margin: 0;
  padding: 30px max(32px, calc((100vw - var(--max)) / 2 + 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--header);
  color: #ffffff;
}
.brand {
  display: inline-block;
  width: 255px;
  background: transparent;
  overflow: hidden;
}
.brand img { width: 100%; height: auto; }

.contact {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.contact-label {
  color: #cfcfcf;
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.contact-link {
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
}
.contact-link:hover { text-decoration: underline; }
.contact-email {
  font-weight: 500;
  color: #d6d6d6;
}
.contact-name { font-weight: 500; color: #d6d6d6; }

.intro {
  max-width: 1220px;
  margin: 22px auto 34px;
  padding: 0 32px;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4.45vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lead {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.7;
}

.content-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(430px, 1.36fr) minmax(220px, .82fr);
  gap: 30px;
  align-items: stretch;
}
.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #d7d5cf;
  align-self: start;
}
.photo-card picture {
  display: block;
  width: 100%;
}
.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-left img { object-position: 50% 50%; }
.photo-right img { object-position: 50% 50%; }

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 62px);
  box-shadow: var(--shadow);
}
.content > p:first-child {
  margin-top: 0;
  font-size: 1.13rem;
  color: #484642;
}
h2 {
  margin: 46px 0 22px;
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.benefits {
  display: grid;
  gap: 18px;
}
.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: .74rem;
  font-weight: 800;
  color: var(--accent-dark);
}
.benefit h3 {
  margin: 1px 0 7px;
  font-size: 1.12rem;
}
.benefit p {
  margin: 0;
  color: var(--muted);
}

.cta {
  margin-top: 34px;
  padding: 26px;
  background: #f1eee6;
  border-radius: 14px;
}
.cta p {
  margin: 0 0 16px;
  font-weight: 700;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 800;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #1f1f1f;
  background: var(--accent);
}
.btn-primary:hover { background: #edb61d; }
.btn-secondary {
  color: var(--ink);
  background: white;
  border: 1px solid #cfcac0;
}
.btn-secondary:hover { background: #faf9f6; }

.site-footer {
  background: var(--header);
  color: white;
  text-align: center;
  padding: 48px 24px 110px;
}
.site-footer img {
  width: 170px;
  margin: 0 auto 14px;
}
.site-footer p { margin: 5px 0; }
.company-address {
  margin: 10px auto 0;
  color: #d5d5d5;
  font-style: normal;
  font-size: .95rem;
}
.footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.copyright {
  margin-top: 24px !important;
  color: #bdbdbd;
  font-size: .83rem;
}

.mobile-contact {
  display: none;
}

/* Tablet */
@media (max-width: 1050px) {
  h1 { white-space: normal; }

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .photo-card {
    min-height: 0;
  }
  .photo-left { grid-column: 1; grid-row: 2; }
  .photo-right { grid-column: 2; grid-row: 2; }
}

/* Mobile */
@media (max-width: 680px) {
  body { padding-bottom: 64px; }

  .site-header {
    padding: 20px 18px;
    align-items: center;
  }
  .brand { width: 172px; }
  .contact { display: none; }

  .intro {
    margin: 24px auto 24px;
    padding: 0 18px;
    text-align: left;
  }
  h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
    line-height: .96;
    white-space: normal;
  }
  .lead {
    margin-top: 22px;
    font-size: 1.04rem;
  }

  .content-grid {
    width: calc(100% - 28px);
    margin-bottom: 28px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .content {
    grid-column: 1;
    grid-row: 2;
    padding: 26px 22px;
    border-radius: 14px;
  }
  .photo-card {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 14px;
    background: transparent;
  }
  .photo-left {
    grid-column: 1;
    grid-row: 1;
  }
  .photo-right {
    grid-column: 1;
    grid-row: 3;
  }
  .photo-card picture {
    height: auto;
  }
  .photo-left img,
  .photo-right img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  h2 { margin-top: 34px; }
  .benefit {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
  .benefit-icon {
    width: 42px;
    height: 42px;
  }
  .cta { padding: 20px; }
  .cta-actions { display: grid; }
  .btn { width: 100%; }

  .site-footer { padding-bottom: 42px; }

  .mobile-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -4px 20px rgba(0,0,0,.14);
  }
  .mobile-contact a {
    display: grid;
    place-items: center;
    min-height: 58px;
    text-decoration: none;
    font-weight: 800;
  }
  .mobile-contact a:first-child {
    background: var(--accent);
    color: #1f1f1f;
  }
  .mobile-contact a:last-child {
    background: var(--header);
    color: white;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Desktop image behavior:
   - if image is shorter than the middle content, center it vertically
   - if image is taller than the middle content, align it to the top and crop overflow at the bottom
   - no extra background box behind the images */
@media (min-width: 681px) {
  .content-grid {
    align-items: stretch;
  }

  .photo-card {
    display: flex;
    justify-content: center;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .photo-card picture {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .photo-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Image is shorter than the available column height:
     center it vertically and give the visible image its own rounding/shadow */
  .photo-card.is-short {
    align-items: center;
    overflow: visible;
  }

  .photo-card.is-short picture {
    height: auto;
    align-items: center;
  }

  .photo-card.is-short img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  /* Image is taller than the available column height:
     crop from the bottom while keeping rounded corners */
  .photo-card.is-tall {
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .photo-card.is-tall picture {
    height: 100%;
    align-items: flex-start;
  }

  .photo-card.is-tall img {
    border-radius: 0;
    box-shadow: none;
  }
}
