/* Base */
:root {
  --bg: #ecebe6;
  --ink: #233241;
  --muted: #6b7b89;
  --teal: #2d5e6a;
  --card: #ffffff;
  --accent: #3a6ea5;
  --ring: rgba(0, 0, 0, 0.06);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.5;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.container {
  width: min(98%);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  border-bottom: 1px solid #d7d7cf;
  background: var(--bg);
  position: relative;
  z-index: 3; /* keep nav above hero */
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.nav__toggle {
  display: none;
  width: 36px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav__bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #5a6a77;
  border-radius: 2px;
}
.nav__bar + .nav__bar {
  margin-top: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 100px; /* room for oversized logo */
  text-decoration: none;
}
.brand__logo {
  width: 96px;
  height: 96px;
  position: absolute;
  left: 0;
  bottom: -70px; /* move slightly further down */
  z-index: 2;
}
.brand__name {
  font-weight: 700;
  font-size: 14px;
  color: #274b55;
}
.nav {
  display: flex;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  font-size: 13px;
  color: #5a6a77;
}
.nav a:hover {
  color: #233241;
}

/* Hero */
.hero {
  position: relative;
  background: transparent;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: -30px; /* align with logo offset */
  width: 96px;
  height: 96px;
  background: url('./images/icon.png') center/contain no-repeat;
  transform: translateX(16px);
  opacity: 0; /* placeholder to reserve overlap space if needed */
  pointer-events: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  height: 100%;
  background: url('./images/mountain_.jpg') center/cover no-repeat;
  filter: contrast(0.95);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  min-height: calc(440px + 6cm);
  display: grid;
  grid-template-columns: max-content;
  justify-content: end;
  align-content: center;
  row-gap: 6px;
  padding: 0;
  text-align: left;
}
.hero__title {
  font-size: 56px;
  line-height: 1.02;
  margin: 0;
  padding-right: 150px;
  padding-bottom: 150px;
  color: #653f21;
  text-shadow: none;
  font-family: Oswald, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  letter-spacing: -2px;
}
.hero__break-d {
  display: inline; /* desktop: no forced break */
}
.hero__tag {
  margin-top: -150px;
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  font-size: 25px;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 24px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  background: #eff3f6;
  border: 1px solid #d2dbe3;
  color: #233241;
}
.btn-primary:hover {
  filter: brightness(0.98);
}
/* caret inside buttons */
.btn .btn-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #233241; /* down arrow by default */
  position: relative;
  top: -1px; /* nudge slightly upward inside the button */
  transition: transform 0.15s ease-in-out;
}
.btn[aria-expanded='true'] .btn-caret {
  transform: rotate(180deg); /* up arrow when open */
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 1px 0 #e1e1db, 0 8px 24px -12px var(--ring);
}
.card--teal {
  background: #2b4d57;
  color: #e9f2f5;
}
.card__title {
  margin: 0 0 10px;
  font-weight: 700;
}
.card__body p {
  margin: 0 0 10px;
  color: #d8e7ec;
}

/* About */
.about__text {
  display: contents;
}
.about {
  padding: 10px 0;
}
#section-utitars,
#section-ima {
  margin: 2px auto; /* equal top/bottom spacing, keep horizontal centering */
}
#section-utitars + #section-ima {
  margin-top: -8px; /* prevent double spacing between these sections */
}
#section-utitars .card {
  border-radius: 0;
}
#section-ima .card {
  border-radius: 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 16px;
  grid-template-areas:
    'image body'
    'cta body';
}
.about__image {
  border-radius: 4px;
  height: 220px;
  object-fit: cover;
}
.about__text .card__body {
  grid-area: body;
}
.about__image {
  grid-area: image;
}
.about__cta {
  grid-area: cta;
  margin-top: 0;
}
.about__icons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.about__icons img {
  width: 26px;
  height: 26px;
}
.about__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.about__store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.about__store img {
  width: 22px;
  height: 22px;
}
.about__social {
  display: flex;
  gap: 10px;
}
.about__social .icon img,
.promo__social .icon img {
  width: 28px;
  height: 28px;
}
.social__label {
  font-size: 12px;
  color: #cfe3e9;
  margin-right: 6px;
}

/* Promo strip */
.promo {
  padding: 14px 0;
}
.promo .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}
.promo__text h3 {
  margin: 0 0 10px;
}
.promo__subtitle {
  margin: 0 0 12px;
  color: #5a6a77;
}
.promo__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.promo__store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.promo__store img {
  width: 22px;
  height: 22px;
}
.promo__social {
  display: flex;
  gap: 12px;
  opacity: 0.9;
}
.promo__social .social__label {
  color: #5a6a77;
}
.promo__icons {
  display: flex;
  gap: 14px;
}
.promo__icons .icon img {
  width: 28px;
  height: 28px;
}
.promo__image {
  border-radius: 6px;
  height: 220px;
  object-fit: cover;
  flex: 0 0 260px;
}

/* Feature hero */
.feature {
  padding: 12px 0 14px; /* reduce bottom space below #section-ima */
}
.feature__flex {
  display: flex;
  flex-direction: row;
  gap: 0px;
}
.feature__container {
  padding: 20px;
  width: 50%;
  margin: 10px;
  border-radius: 3px;
}
.feature__container2 {
  padding: 20px;
  width: 90%;
  color: rgb(255, 255, 255);
  margin: 10px;
  border-radius: 3px;
}

.feature__media {
  position: relative;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1508193638397-1c4234db14d8?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px; /* allows shrinking/expanding with content */
}
.feature__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* dim only the image */
  pointer-events: none;
}
.feature__overlay {
  position: relative;
  padding: 18px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.feature__title {
  padding: 20px;
  margin: 0px;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
}
.feature__title span {
  font-weight: 600;
  font-size: 16px;
  display: block;
  opacity: 0.95;
}
.feature__subtitle {
  font-size: 14px;
  margin-top: 4px;
}
.feature__cards {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
}
.stack {
  width: 220px;
}
.stack__card {
  background: #28424b;
  color: #dceaf0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
}

/* How section */
.how {
  padding: 12px 0;
}
.how__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 14px;
}
.how__image {
  border-radius: 6px;
  height: 200px;
  object-fit: cover;
}
.how h2 {
  margin: 0 0 6px;
}

/* Mission */
.mission {
  padding: 6px 0 28px;
}
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 14px;
}
.mission__image {
  border-radius: 6px;
  height: 200px;
  object-fit: cover;
}
.mission h2 {
  margin: 0 0 8px;
}
.mission h2 span {
  font-weight: 600;
  font-size: 16px;
  display: block;
  color: #546a75;
}

/* Footer */
.site-footer {
  border-top: 1px solid #d7d7cf;
  background: #eef2f4;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align footer content to the left */
  gap: 12px 18px;
  padding: 12px 0;
  flex-wrap: wrap; /* allow icons to break line on small screens */
}
.footer__icons {
  display: flex;
  gap: 12px;
  margin-left: 0; /* no push to right */
}
.footer__icons img {
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero__title {
    font-size: 42px;
  }
}
@media (max-width: 640px) {
  .hero__break-d {
    display: block; /* mobile: force line break */
  }
  .nav__toggle {
    display: inline-block;
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    box-shadow: 0 8px 24px -12px var(--ring);
    border: 1px solid #e1e1db;
    border-radius: 6px;
    padding: 8px 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
  }
  .nav.is-open {
    display: flex;
  }
  .hero__inner {
    transform: translate(0cm, -2.5cm); /* move right 1cm, up 1cm on phones */
    min-height: calc(440px + 5.5cm);
  }

  .hero__title {
    padding-right: 0;
    padding-bottom: 0;
  }

  .hero__tag {
    margin-top: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'body'
      'image'
      'cta';
  }
  .promo .card {
    flex-direction: column;
    align-items: stretch;
  }
  .promo__image {
    width: 100%;
    height: auto; /* avoid overflow on small screens */
    flex: 0 0 auto; /* remove fixed basis when stacked */
    max-width: 100%;
    align-self: center; /* center within column layout */
  }
  .feature__container {
    width: 100%;
    margin: 0;
  }
  .feature__cards {
    position: static;
    margin: 10px 10px 0;
  }
  .how__grid {
    grid-template-columns: 1fr;
  }
  .mission__grid {
    grid-template-columns: 1fr;
  }
  .feature__title {
    transform: none;
  }
  .feature__flex {
    flex-direction: column;
  }
  .feature__container2 {
    width: 100%;
  }
}

/* Dropdown (replaces modal) */
.dropdown {
  display: none; /* toggled with .is-open */
  margin-top: 10px;
}
.dropdown.is-open {
  display: block;
}
.dropdown__content {
  background: transparent; /* no panel background */
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
/* Wider two-column layout inside dropdown */
.dropdown .feature__flex {
  gap: 24px;
}
.dropdown .feature__container2 {
  width: auto; /* override 90% */
  margin: 0; /* remove inner margins */
  flex: 1 1 50%; /* two wide columns */
}

/* Ensure dropdown can use the full overlay width */
.feature__overlay > .dropdown {
  margin-top: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* toggled via .is-open */
  z-index: 10;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.modal__dialog {
  position: relative;
  width: min(900px, 92%);
  margin: 40px auto;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.modal__content {
  padding: 16px;
  background: rgb(19, 45, 34); /* opaque panel over image */
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #eef2f4;
  color: #233241;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
