@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;600;800&display=swap');

/* ====================================================
   VARIABLES (Base / Desktop Typography)
==================================================== */
:root {
  /* Colors */
  --accent-gold: #ffffff;
  --accent-gold-hover: #d1d5db;
  --text-main: #fdfdfd;
  --text-muted: #e6e6e6;
  --text-inverse: #0f1115;

  /* Background Layers */
  --bg-dark-1: #0f1115;
  --bg-dark-2: #16191f;
  --bg-dark-3: #1c1f26;
  --bg-dark-4: #252932;

  /* Classic Typography System (Desktop Defaults) */
  --text-sm: 1rem; /* 16px */
  --text-base: 1.125rem; /* 18px */
  --text-lg: 1.5rem; /* 24px */
  --text-xl: 2rem; /* 32px */
  --text-2xl: 3rem; /* 48px */
}

/* ====================================================
   GLOBAL & RESET
==================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Heebo', sans-serif;
}

body {
  background-color: var(--bg-dark-1);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

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

ul {
  list-style-type: none;
}

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

.lang-he {
  direction: rtl;
}

/* ====================================================
   TYPOGRAPHY & UTILITIES
==================================================== */
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}

.bg-dark-1 {
  background-color: var(--bg-dark-1);
}
.bg-dark-2 {
  background-color: var(--bg-dark-2);
}
.bg-dark-3 {
  background-color: var(--bg-dark-3);
}
.bg-dark-4 {
  background-color: var(--bg-dark-4);
}

.section-padding {
  padding: 80px 20px;
}

.section-title {
  margin-bottom: 50px;
  color: var(--accent-gold);
}

.title-white {
  color: #fff;
}

/* ====================================================
   BUTTONS
==================================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-gold);
  color: var(--text-inverse);
  font-weight: 800;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--text-inverse);
}

.btn-submit {
  border: none;
  cursor: pointer;
}

/* Floating Action Buttons */
.floating-btn {
  position: fixed;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  padding: 10px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.1s ease;
  font-weight: 600;
  z-index: 1000;
}

.floating-btn:hover {
  transform: scale(1.05);
}

#btn-whatsapp {
  bottom: 40px;
  background: #25d366;
}

/* ====================================================
   HEADER & NAVIGATION
==================================================== */
header {
  background-color: var(--bg-dark-2);
  color: var(--text-main);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.menu-toggle {
  display: none;
}

/* ====================================================
   SECTIONS
==================================================== */

/* --- Hero --- */
.hero {
  background: linear-gradient(
      to bottom,
      rgba(22, 25, 31, 0.8),
      rgba(15, 17, 21, 0.8)
    ),
    url('/abstract-dark-background.jpg') center/cover;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  text-align: right;
}

.text-hero-title {
  font-size: 62px;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-brand h1 {
  font-weight: 800;
  line-height: 1.1;
}

.hero-tagline {
  color: var(--accent-gold);
  letter-spacing: 5px;
}

.hero-brand::after {
  content: '';
  width: 100%;
  max-width: 320px; /* Changed to max-width to prevent overflow */
  height: 3px;
  background: var(--bg-dark-4);
  margin-top: 10px;
  border-radius: 2px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 40px;
}

.hero-text .lead {
  font-weight: 500;
  line-height: 1.6;
}

.hero-text p {
  color: var(--text-muted);
}

.hero-buttons {
  padding-top: 50px;
  text-align: right;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.video-warp {
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-video {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* --- About --- */
.about-content {
  align-items: center;
  color: var(--text-muted);
}

.about-content p {
  margin-bottom: 15px;
}

.about-spacer {
  margin-top: 20px;
}

/* --- Services --- */
.services-intro {
  text-align: right;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-dark-4);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, border-color 0.3s;
  border-bottom: 4px solid transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid var(--accent-gold);
}

.service-card h3 {
  color: var(--text-main);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  flex-grow: 1;
}

.read-more {
  color: var(--accent-gold);
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
}

/* --- FAQ --- */
.list-faq {
  max-width: 800px;
  margin: 0 auto;
}

.list-faq .faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: right;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  background: var(--bg-dark-4);
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 3.5rem 1.4rem 1.4rem;
  direction: rtl;
  margin-bottom: 2px;
  border-radius: 4px 4px 0 0;
}

.faq-icon {
  position: absolute;
  width: 2rem;
  top: 50%;
  right: 1rem;
  stroke: var(--accent-gold);
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background: var(--bg-dark-4);
  font-weight: 300;
  color: var(--text-muted);
  text-align: right;
  border-radius: 0 0 4px 4px;
  margin-bottom: 10px;
  direction: rtl;
}

.faq-answer p {
  padding: 1.5rem 0;
}

.rotated {
  transform: translateY(-50%) rotate(45deg);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid var(--bg-dark-4);
  background-color: var(--bg-dark-1);
  color: var(--text-main);
  border-radius: 4px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.contact-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.contact-item-last {
  margin-bottom: 30px;
}

.contact-item a:hover {
  color: var(--accent-gold);
}

/* --- Address Reveal --- */
.align-start {
  align-items: flex-start !important;
}

.address-reveal-wrapper {
  display: flex;
  flex-direction: column;
}

.reveal-btn {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease;
  user-select: none;
}

.reveal-btn:hover {
  color: var(--accent-gold);
}

.hidden-address {
  display: none;
  margin-top: 8px;
  color: var(--text-main);
  padding-right: 10px;
  border-right: 2px solid var(--accent-gold);
}

.hidden-address.show {
  display: block;
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-links {
  display: flex;
  gap: 20px;
  font-size: 28px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-gold);
}

/* --- Footer --- */
footer {
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 1px solid var(--bg-dark-4);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: right;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-muted);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--bg-dark-4);
  padding-top: 20px;
  color: var(--text-muted);
}

/* ====================================================
   ARTICLE PAGES
==================================================== */

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

.article-section {
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-section h2 {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.article-section h3 {
  color: var(--text-main);
  margin: 40px 0 15px;
}

.article-section p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-section strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-list {
  margin-bottom: 30px;
  padding-right: 20px;
}

.article-list li {
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
}

.article-list li::before {
  content: '•';
  color: var(--accent-gold);
  position: absolute;
  right: -20px;
  font-size: 1.2em;
  line-height: 1.2;
}

.article-faq {
  margin-bottom: 30px;
}

.article-faq dt {
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
}

.article-faq dd {
  color: var(--text-muted);
  margin-bottom: 15px;
  padding-right: 15px;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb a i {
  margin-left: 5px;
  font-size: 0.9em;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-current {
  color: var(--accent-gold);
}

.breadcrumb-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ====================================================
   MEDIA QUERIES (Classic Breakpoints)
==================================================== */

/* --- Laptops & Small Desktops (max-width: 1150px) --- */
@media (max-width: 1150px) {
  :root {
    --text-2xl: 2.5rem; /* Scaled down slightly */
  }

  .nav-links {
    gap: 15px;
  }

  .hero {
    height: auto;
    min-height: 80vh;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero-grid {
    gap: 30px;
  }
  .hero-brand::after {
    max-width: 250px;
  }

  .section-padding {
    padding: 60px 20px;
  }
  .contact-grid {
    gap: 30px;
  }
}

/* --- Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --text-sm: 0.9375rem; /* 15px */
    --text-base: 1.0625rem; /* 17px */
    --text-lg: 1.25rem; /* 20px */
    --text-xl: 1.75rem; /* 28px */
    --text-2xl: 2.25rem; /* 36px */
  }

  .text-hero-title {
    font-size: 50px;
  }

  .hero-grid,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand::after {
    max-width: 200px;
  }
  .hero-buttons {
    justify-content: center;
    flex-direction: row;
  }

  .menu-toggle {
    display: block;
    color: var(--accent-gold);
    font-size: 24px;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark-2);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid var(--bg-dark-4);
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li a {
    display: block;
    width: 100%;
  }

  .section-padding {
    padding: 50px 20px;
  }

  .article-container {
    padding: 120px 20px 60px;
  }
  .article-section {
    padding: 25px;
  }
}

/* --- Mobile Phones (max-width: 440px) --- */
@media (max-width: 440px) {
  :root {
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.5rem; /* 24px */
    --text-2xl: 2rem; /* 32px */
  }

  .text-hero-title {
    font-size: 40px;
  }

  /* Fixes horizontal overflow by stacking buttons */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%; /* Forces buttons to fit neatly inside screen */
  }

  .section-padding {
    padding: 40px 15px;
  }
  .article-container {
    padding: 100px 15px 50px;
  }
}

/* --- Extra Small Phones (max-width: 360px) --- */
@media (max-width: 360px) {
  :root {
    --text-sm: 0.8rem; /* 12.8px */
    --text-base: 0.95rem; /* 15.2px */
    --text-lg: 1.05rem; /* 16.8px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.75rem; /* 28px */
  }

  .text-hero-title {
    font-size: 32px;
  }

  .section-padding {
    padding: 40px 10px;
  }

  /* Give the FAQ text breathing room so it doesn't push off-screen */
  .list-faq .faq-question {
    padding: 1rem 3rem 1rem 1rem;
  }

  .article-container {
    padding: 90px 10px 40px;
  }
  .article-section {
    padding: 15px;
  }
}
