/* ------------------------------------------------------------------
   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);
}

.brand__icon {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand--sm {
  font-size: 16px;
}

.brand--sm .brand__icon {
  width: 32px;
  height: 32px;
}

.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: 28px;
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero__services li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
}

.hero__services .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
}

.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: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 28, 32, 0.9);
  visibility: hidden;
}

.lightbox.is-open {
  visibility: visible;
}

.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;
}

/* Motion ----------------------------------------------------------- */

.btn,
.nav a,
.link,
.product__more,
.product,
.feature,
.contact__card,
.hero__services li,
.gallery__item a,
.gallery__item img,
.brand {
  transition: color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.25s ease,
              transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.brand:hover {
  opacity: 0.75;
}

.product:hover,
.feature:hover,
.contact__card:hover,
.hero__services li:hover {
  border-color: #c9d1d6;
}

.product:hover,
.feature:hover,
.contact__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 58, 66, 0.07);
}

.gallery__item a:hover {
  border-color: #c9d1d6;
  box-shadow: 0 4px 16px rgba(43, 58, 66, 0.1);
}

.gallery__item a:hover img {
  transform: scale(1.03);
}

/* entrance: hero content rises once on load */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__inner > *,
.page-hero__inner > * {
  animation: rise 0.55s ease both;
}

.hero__inner > *:nth-child(1),
.page-hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2),
.page-hero__inner > *:nth-child(2) { animation-delay: 0.14s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.23s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.32s; }

/* reveal on scroll: the class is only added by JS, so without it
   everything stays visible */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* lightbox fade */

.lightbox {
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox img {
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.lightbox.is-open img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 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;
  }

  .hero__services li {
    font-size: 13px;
    padding: 6px 12px;
  }

  .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;
  }
}
