/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  height: 90px;
  max-width: 900px;
  margin: 0 auto;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.scrolled .logo-img {
  height: 38px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-list a:hover {
  color: #5ba4cf;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  text-align: center;
  background: #fff;
  z-index: 3;
}

.hero-bg {
  height: 50vh;
  min-height: 350px;
  position: relative;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  margin-top: -80px;
}

.hero-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16/9;
  background: #ddd;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== ABOUT ========== */
.about-section {
  padding: 50px 0 20px;
  background: #fff;
}

.about-inner {
  display: flex;
  align-items: stretch;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  direction: rtl;
}

.about-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.about-icon-img {
  width: 140px;
  height: 140px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-align: right;
}

.about-text p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.9;
  text-align: right;
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
  padding: 30px 0;
}

.product-zipper {
  background: #fff;
}

.product-pergola {
  background: #fff;
}

/* -- Overlap layout -- */
.product-overlap-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-overlap-wrap .product-carousel-wrap {
  width: 100%;
  position: relative;
}

.product-overlap-wrap .carousel {
  border-radius: 0;
  aspect-ratio: 4/3;
}

.product-overlap-wrap .carousel-btn {
  top: auto;
  bottom: 20px;
  transform: none;
  width: 38px;
  height: 38px;
  background: rgba(50, 50, 50, 0.7);
}

.product-overlap-wrap .carousel-btn.prev {
  left: 20px;
  right: auto;
}

.product-overlap-wrap .carousel-btn.next {
  left: 66px;
  right: auto;
}

/* -- Text overlay (sits on top of carousel) -- */
.product-info-overlay {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 42%;
  z-index: 5;
  background: #84573C;
  color: #fff;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1.85;
  text-align: right;
}

.product-info-overlay h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-info-overlay p,
.product-info-overlay li,
.product-info-overlay span,
.product-info-overlay strong {
  font-size: 0.78rem;
  line-height: 1.85;
  margin-bottom: 6px;
  opacity: 0.95;
}

.product-info-overlay ul,
.product-info-overlay ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-info-overlay h3,
.product-info-overlay h4,
.product-info-overlay h5,
.product-info-overlay h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-info-overlay .product-highlight {
  font-weight: 700;
  color: #fff !important;
  opacity: 1;
}

/* -- Reversed overlap (pergola / business) -- */
.product-overlap-wrap.reverse .product-info-overlay {
  right: auto;
  left: 0;
}

.product-overlap-wrap.reverse .carousel-btn.prev {
  left: auto;
  right: 66px;
}

.product-overlap-wrap.reverse .carousel-btn.next {
  left: auto;
  right: 20px;
}

/* -- Standard side-by-side layout (pergola style) -- */
.product-inner {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.product-inner.reverse {
  flex-direction: row-reverse;
}

.product-carousel-wrap {
  flex: 1;
  min-width: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.product-info p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

.product-highlight {
  font-weight: 700;
  color: #1a3a5c !important;
}

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  aspect-ratio: 16/9;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 26, 46, 0.7);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(26, 26, 46, 0.9);
}

.carousel-btn.prev {
  right: 10px;
}

.carousel-btn.next {
  left: 10px;
}

/* ========== CATEGORIES GRID ========== */
.categories-section {
  padding: 60px 0;
  background: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 535/430;
  background: #ddd;
  display: block;
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  text-align: right;
  transition: all 0.4s ease;
}

.category-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
  transition: margin-bottom 0.4s ease;
}

.category-overlay p {
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(transparent 0%, rgba(26, 42, 68, 0.88) 35%);
  padding: 30px 20px 20px;
}

.category-card:hover .category-overlay h3 {
  margin-bottom: 10px;
}

.category-card:hover .category-overlay p {
  opacity: 0.95;
  max-height: 200px;
}

/* ========== BANNER ========== */
.banner-section {
  width: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100vh;
  background: #c5c5c5;
}

.banner-image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  position: relative;
  top: -10%;
}

/* ========== BUSINESS SOLUTIONS ========== */
.business-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.business-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #2a2a3e;
}

.business-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.business-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.business-card {
  background: rgba(26, 58, 92, 0.92);
  color: #fff;
  padding: 50px 40px;
  border-radius: 10px;
  max-width: 550px;
  text-align: center;
}

.business-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.business-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 25px;
}

.business-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.business-nav .carousel-btn {
  position: static;
  transform: none;
}

/* ========== CONTACT ========== */
.contact-section {
  padding: 0;
  background: #fff;
}

.contact-hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.contact-section h2 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.contact-form-wrap {
  padding: 50px 0 60px;
  background: #fff;
}

.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.form-group.floating {
  position: relative;
}

.form-group.floating input,
.form-group.floating select {
  width: 100%;
  padding: 18px 14px 8px;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group.floating select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}

.form-group.floating label {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #999;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group.floating input:focus,
.form-group.floating select:focus {
  outline: none;
  border-bottom-color: #84573C;
}

.form-group.floating input:focus + label,
.form-group.floating input:not(:placeholder-shown) + label,
.form-group.floating select:focus + label,
.form-group.floating select:valid + label {
  top: 4px;
  transform: none;
  font-size: 0.72rem;
  color: #84573C;
}

.form-privacy {
  margin-bottom: 20px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.privacy-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.privacy-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #84573C;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-label a {
  color: #84573C;
  text-decoration: underline;
}

.btn-submit {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 30px;
  background: #84573C;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #6d4731;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 40px;
  direction: rtl;
}

.footer-logo-img {
  height: 45px;
  width: auto;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col ul li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-recaptcha-notice {
  width: 100%;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-recaptcha-notice small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-recaptcha-notice a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.footer-recaptcha-notice a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-self: flex-end;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #fff;
}

/* ========== INNER PAGES ========== */
.page-content {
  padding: 60px 20px;
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 30px;
  text-align: right;
}

.page-body {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: right;
}

.page-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 30px 0 15px;
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 25px 0 10px;
}

.page-body p {
  margin-bottom: 15px;
}

.page-body ul,
.page-body ol {
  padding-right: 25px;
  margin-bottom: 15px;
  list-style: disc;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  color: #84573C;
  text-decoration: underline;
}

.page-body a:hover {
  color: #6e4832;
}

/* ========== RECAPTCHA BADGE HIDE ========== */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  padding: 18px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-consent a {
  color: #5ba4cf;
  text-decoration: underline;
}

.cookie-accept-btn {
  background: #84573C;
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
  font-family: inherit;
}

.cookie-accept-btn:hover {
  background: #6e4832;
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 50px;
  }

  .about-inner {
    flex-direction: column;
    align-items: center;
  }

  .about-icon-img {
    width: 90px;
    height: 90px;
  }

  .about-section {
    padding: 40px 0;
  }

  .product-inner,
  .product-inner.reverse {
    flex-direction: column;
  }

  .banner-image {
    height: 40vh;
  }

  .contact-hero {
    height: 25vh;
    min-height: 160px;
  }

  .product-section {
    padding: 30px 0;
  }

  .product-overlap-wrap,
  .product-overlap-wrap.reverse {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
    max-width: 100%;
  }

  .product-overlap-wrap .product-info-overlay,
  .product-overlap-wrap.reverse .product-info-overlay {
    position: static !important;
    transform: none !important;
    translate: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    z-index: auto !important;
    opacity: 1 !important;
    order: 2;
  }

  .product-overlap-wrap .product-carousel-wrap,
  .product-overlap-wrap.reverse .product-carousel-wrap {
    width: 100%;
    margin: 0;
    order: 1;
  }

  .product-overlap-wrap .carousel,
  .product-overlap-wrap.reverse .carousel {
    aspect-ratio: 4/3;
    border-radius: 0;
  }

  .product-overlap-wrap .carousel-btn.prev,
  .product-overlap-wrap .carousel-btn.next,
  .product-overlap-wrap.reverse .carousel-btn.prev,
  .product-overlap-wrap.reverse .carousel-btn.next {
    left: auto;
    right: auto;
  }

  .product-overlap-wrap .carousel-btn.next,
  .product-overlap-wrap.reverse .carousel-btn.next {
    right: 15px;
  }

  .product-overlap-wrap .carousel-btn.prev,
  .product-overlap-wrap.reverse .carousel-btn.prev {
    right: 60px;
  }

  .header-inner {
    flex-direction: row;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-list.open {
    display: flex;
  }

  .main-nav {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-columns {
    gap: 40px;
  }

  .footer-social {
    align-self: center;
  }

  .footer-col.footer-legal ul {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 38px;
  }


  .form-row {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    aspect-ratio: 16/9;
  }

  .business-card {
    padding: 30px 20px;
  }

}