/* ------------------------------------------------------------------
   TwigCode landing page
   ------------------------------------------------------------------ */

:root {
  --green: #2f8f5c;
  --green-dark: #257449;
  --ink: #2b3a42;
  --text: #333b40;
  --muted: #6b7680;
  --line: #e2e6e9;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --radius: 6px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

/* Header ----------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

/* the logo file has the wordmark under the symbol; crop to the symbol only */
.brand img {
  width: 72px;
  height: 36px;
  object-fit: cover;
  object-position: center 18%;
}

.brand--sm {
  font-size: 16px;
}

.brand--sm img {
  width: 56px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .material-symbols-outlined {
  font-size: 28px;
}

/* Hero ------------------------------------------------------------- */

.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  max-width: 720px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections --------------------------------------------------------- */

.section {
  padding: 72px 0;
  scroll-margin-top: 68px; /* keep anchored headings clear of the sticky header */
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.section__head {
  margin-bottom: 40px;
}

.section__head h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.section__head p {
  color: var(--muted);
}

/* Products --------------------------------------------------------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.product__logo {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
}

.product__logo img,
.product__logo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__body {
  flex: 1;
  min-width: 0;
}

.product h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.product h3 small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.product__brief {
  margin-bottom: 16px;
  font-size: 15px;
}

.product__brief li {
  position: relative;
  padding-right: 16px;
  margin-bottom: 4px;
}

.product__brief li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.tag .material-symbols-outlined {
  font-size: 16px;
}

.tag--available {
  background: #e8f4ed;
  color: var(--green-dark);
}

.tag--soon {
  background: #eef0f2;
  color: var(--muted);
}

.product__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.product__more:hover {
  color: var(--green-dark);
}

.product__more .material-symbols-outlined {
  font-size: 18px;
}

/* Contact ---------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact__card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #e8f4ed;
  color: var(--green-dark);
}

.contact__icon .material-symbols-outlined {
  font-size: 22px;
}

.contact__card h4 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.contact__value[dir="ltr"] {
  text-align: right;
}

.contact__value--address {
  font-size: 15px;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.link:hover {
  color: var(--green);
}

.link .material-symbols-outlined {
  font-size: 18px;
}

.link--wa {
  color: #1f9d55;
}

.link--wa:hover {
  color: #167a41;
}

/* Product pages ---------------------------------------------------- */

.page-hero {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.page-hero__logo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-hero h1 small {
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
}

.page-hero__text {
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature .material-symbols-outlined {
  display: block;
  font-size: 28px;
  color: var(--green);
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery__item {
  margin: 0;
}

.gallery__item a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.gallery__item figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.cta {
  border-top: 1px solid var(--line);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.cta p {
  color: var(--muted);
}

/* Lightbox --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 28, 32, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox__close .material-symbols-outlined {
  font-size: 32px;
}

/* Footer ----------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive ------------------------------------------------------- */

@media (max-width: 900px) {
  .products {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav .btn {
    margin-top: 8px;
    justify-content: center;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .product {
    flex-direction: column;
  }

  .page-hero__inner {
    flex-direction: column;
    gap: 20px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero h1 small {
    display: block;
    font-size: 18px;
  }

  .features,
  .gallery {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
