/* Smart Garaje Features V2
   Scoped so homepage and pricing layouts stay unchanged.
   Loaded on feature pages and on v2 pages that show the Features menu. */

.sg-nav-features { position: relative; }

.sg-features-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: inherit;
  font: inherit;
}

.sg-features-toggle .sg-chevron {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.sg-nav-features.is-open .sg-chevron { transform: rotate(180deg); }

.sg-mega {
  position: fixed;
  z-index: 80;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 1.5rem));
  padding-top: 0.65rem;
}

.sg-mega[hidden] { display: none !important; }

.sg-mega__panel {
  background: #fff;
  border: 1px solid rgba(192, 202, 178, 0.7);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 25, 60, 0.12);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 1.25rem;
}

.sg-mega__label {
  margin: 0 0 0.65rem;
  font-family: Inter, "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #717a66;
}

html[dir="rtl"] .sg-mega__label { letter-spacing: 0; text-transform: none; font-family: Cairo, "Plus Jakarta Sans", sans-serif; font-size: 13px; }

.sg-mega__links { display: flex; flex-direction: column; gap: 0.2rem; }

.sg-mega__links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  color: #191c1e;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", Cairo, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

html[dir="rtl"] .sg-mega__links a { font-family: Cairo, "Plus Jakarta Sans", sans-serif; }

.sg-mega__links a:hover,
.sg-mega__links a[aria-current="page"] {
  background: rgba(101, 183, 30, 0.14);
  color: #1e4200;
}

.sg-mega__links .material-symbols-outlined {
  font-size: 18px;
  color: #356b00;
}

.sg-mobile-features__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: start;
}

.sg-mobile-features__panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0 0.25rem;
}

.sg-mobile-features__panel[hidden] { display: none !important; }

.sg-mobile-features__label {
  margin: 0.65rem 0 0.15rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #717a66;
}

html[dir="rtl"] .sg-mobile-features__label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-family: Cairo, sans-serif;
}

.sg-mobile-features__panel a {
  display: block;
  padding: 0.35rem 0;
  color: #191c1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.sg-footer-features { display: flex; flex-direction: column; gap: 0.45rem; }

.sg-footer-features a { text-decoration: none; }

/* Feature pages */
.sg-features-page { overflow-x: clip; }

.sg-h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sg-h2 {
  margin: 0.35rem 0 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sg-lead { font-size: 18px; line-height: 1.7; color: #414a38; }

html[dir="rtl"] .sg-h1,
html[dir="rtl"] .sg-h2 { letter-spacing: 0; line-height: 1.45; font-family: Cairo, "Plus Jakarta Sans", sans-serif; }
html[dir="rtl"] .sg-lead { line-height: 1.85; }

@media (min-width: 1024px) {
  .sg-h1 { font-size: 48px; line-height: 1.15; letter-spacing: -0.025em; }
  .sg-h2 { font-size: 36px; line-height: 1.25; }
  html[dir="rtl"] .sg-h1,
  html[dir="rtl"] .sg-h2 { line-height: 1.45; letter-spacing: 0; }
}

.sg-features-page :focus-visible {
  outline: 2px solid #356b00;
  outline-offset: 3px;
}

.sg-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: 13px;
  color: #414a38;
}

.sg-crumb a { color: #356b00; text-decoration: none; font-weight: 600; }
.bg-inverse-surface .sg-crumb,
.bg-inverse-surface .sg-crumb [aria-current="page"] { color: #eff1f3; }
.bg-inverse-surface .sg-crumb a { color: #87dc43; }
.sg-crumb a:hover { text-decoration: underline; }
.sg-crumb [aria-current="page"] { color: #191c1e; font-weight: 600; }

.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: #356b00;
  font-family: Inter, "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .sg-eyebrow {
  font-family: Cairo, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.sg-frame {
  background: #fff;
  border-radius: 1.15rem;
  padding: 0.55rem;
  box-shadow: 0 16px 40px rgba(15, 25, 60, 0.1);
  border: 1px solid rgba(224, 227, 229, 0.9);
}

.sg-frame img,
.sg-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
}

.sg-hero-stage { position: relative; }
.sg-hero-float {
  position: absolute;
  width: min(58%, 420px);
  inset-inline-start: -2%;
  bottom: -7%;
  z-index: 2;
}

.sg-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

.sg-flow__step {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 25, 60, 0.04);
  border: 1px solid rgba(224, 227, 229, 0.8);
  min-width: 0;
}

.sg-flow__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 183, 30, 0.16);
  color: #1e4200;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sg-flow__step:last-child .sg-flow__num {
  background: #65b71e;
  color: #1e4200;
}

.sg-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.sg-card {
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.35rem;
  border: 1px solid rgba(224, 227, 229, 0.9);
  box-shadow: 0 1px 2px rgba(15, 25, 60, 0.04);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sg-card--muted { background: #f2f4f6; }
.sg-card--dark {
  background: #2d3133;
  color: #eff1f3;
  border-color: transparent;
}
.sg-card--dark p,
.sg-card--dark .sg-card__text { color: rgba(239, 241, 243, 0.82); }
.sg-card--dark .sg-pill { background: rgba(135, 220, 67, 0.16); color: #87dc43; }

.sg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(101, 183, 30, 0.16);
  color: #1e4200;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.sg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #356b00;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.sg-card--dark .sg-link { color: #87dc43; }
.sg-link:hover { text-decoration: underline; }
html[dir="rtl"] .sg-link .material-symbols-outlined { transform: scaleX(-1); }

.sg-eco {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.sg-eco__item {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(224, 227, 229, 0.9);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sg-eco__icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: rgba(101, 183, 30, 0.16);
  color: #265100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sg-problems,
.sg-benefits,
.sg-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sg-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.sg-split__copy ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sg-split__copy li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.sg-split__copy li .material-symbols-outlined {
  color: #356b00;
  font-size: 18px;
  margin-top: 0.15rem;
}

.sg-faq__item { border-bottom: 1px solid rgba(192, 202, 178, 0.7); }

.sg-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.05rem 0;
  cursor: pointer;
  text-align: start;
  color: #191c1e;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sg-faq__btn .material-symbols-outlined { transition: transform 0.2s ease; color: #356b00; }
.sg-faq__item.is-open .sg-faq__btn .material-symbols-outlined { transform: rotate(180deg); }

.sg-faq__panel { padding: 0 0 1.1rem; color: #414a38; }
.sg-faq__panel[hidden] { display: none !important; }
.sg-faq__panel p { margin: 0; line-height: 1.7; }

.sg-questions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sg-questions span {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  background: #e8f6d4;
  color: #1e4200;
  border-radius: 1rem;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
}

html[dir="rtl"] .sg-questions span { align-self: flex-end; }

.sg-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 768px) {
  .sg-problems,
  .sg-benefits { grid-template-columns: 1fr 1fr; }
  .sg-eco { grid-template-columns: 1fr 1fr; }
  .sg-flow { grid-template-columns: 1fr 1fr; }
  .sg-related { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .sg-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sg-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sg-span-8 { grid-column: span 8; }
  .sg-span-7 { grid-column: span 7; }
  .sg-span-6 { grid-column: span 6; }
  .sg-span-5 { grid-column: span 5; }
  .sg-span-4 { grid-column: span 4; }
  .sg-split { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .sg-split--flip { grid-template-columns: 1.05fr 1fr; }
  .sg-split--flip .sg-split__copy { order: 2; }
  .sg-problems { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sg-problems--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-hero-stage { margin-bottom: 2.5rem; }
}

@media (max-width: 1023px) {
  .sg-hero-float { position: static; width: 100%; margin-top: 1rem; }
}

@media (max-width: 860px) {
  .sg-mega__panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-features-toggle .sg-chevron,
  .sg-faq__btn .material-symbols-outlined { transition: none; }
}
