/*
Theme Name:  Muki Child Theme
Theme URI:   https://sagimuki.co.il
Description: Child theme for sagimuki.co.il — MUKI JUDO official website
Author:      Sagi Muki
Template:    hello-elementor
Version:     1.0.0
Text Domain: muki-child-theme
*/

/* === DESIGN TOKENS === */
:root {
  --color-navy:       #0A1628;
  --color-judo-blue:  #1B3A6B;
  --color-teal:       #00B4D8;
  --color-red:        #C0392B;
  --color-red-hover:  #a93226;
  --color-gold:       #F4C542;
  --color-white:      #FFFFFF;
  --color-light-bg:   #F5F5F5;
  --color-text-muted: rgba(255,255,255,0.7);

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Heebo', sans-serif;

  --radius-card:   12px;
  --radius-button: 6px;
  --shadow-card:   0 4px 20px rgba(0,0,0,0.12);

  --container-max: 1200px;
  --container-pad: 1.25rem;
  --header-height: 72px;
}

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

html { direction: rtl; font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-navy);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

/* === UTILITY === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-heading); font-size: 1.5rem;
  font-weight: 900; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-white); white-space: nowrap;
}
.site-logo .logo-muki { color: var(--color-teal); }

.site-nav { display: none; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
  color: rgba(255,255,255,0.85); transition: color 0.2s ease;
  position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute;
  inset-block-end: -4px; inset-inline-start: 0;
  width: 0; height: 2px;
  background: var(--color-teal); transition: width 0.25s ease;
}
.nav-menu a:hover { color: var(--color-white); }
.nav-menu a:hover::after { width: 100%; }

.btn-cta-header {
  display: inline-flex; align-items: center;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-heading); font-size: 0.875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-white); background-color: var(--color-red);
  border: 2px solid var(--color-red); border-radius: var(--radius-button);
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.btn-cta-header:hover {
  background-color: var(--color-red-hover); border-color: var(--color-red-hover);
  transform: translateY(-1px);
}

.hamburger {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 6px;
  background: none; border: none; cursor: pointer; z-index: 1100;
}
.hamburger .bar {
  display: block; width: 100%; height: 2px;
  background-color: var(--color-white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset-block-start: var(--header-height); inset-inline: 0;
  background-color: var(--color-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem var(--container-pad);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
  z-index: 999;
}
.mobile-nav.is-open {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s;
}
.mobile-nav .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; }
.mobile-nav .nav-menu a {
  display: block; width: 100%; padding: 0.875rem 0;
  font-size: 1.0625rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.mobile-nav .nav-menu a::after { display: none; }
.mobile-nav .btn-cta-header { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9375rem; color: var(--color-text-muted);
  max-width: 28ch; margin-bottom: 0;
}
.footer-col h3 {
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-teal); margin-bottom: 1rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav-list a {
  font-size: 0.9375rem; color: var(--color-text-muted); transition: color 0.2s ease;
}
.footer-nav-list a:hover { color: var(--color-white); }

.footer-contact address {
  font-style: normal; display: flex; flex-direction: column; gap: 0.75rem;
}
.footer-contact address p,
.footer-contact address a {
  font-size: 0.9375rem; color: var(--color-text-muted);
  margin-bottom: 0; transition: color 0.2s ease;
}
.footer-contact address a:hover { color: var(--color-white); }
.footer-contact .address-label {
  font-weight: 600; color: rgba(255,255,255,0.85);
  font-size: 0.875rem; margin-bottom: 0.125rem;
}

.footer-social { display: flex; gap: 0.875rem; margin-top: 1.25rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  background-color: var(--color-teal); border-color: var(--color-teal);
  color: var(--color-white);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem; text-align: center;
  font-size: 0.875rem; color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr; }
}
@media (min-width: 992px) {
  :root { --container-pad: 2.5rem; }
  .site-nav { display: flex; align-items: center; gap: 2.5rem; }
  .hamburger { display: none; }
  .footer-grid { grid-template-columns: 1.75fr 1fr 1fr 1.25fr; }
}
@media (min-width: 1200px) {
  :root { --container-pad: 3rem; }
}

/* ============================================================
   ELEMENTOR OVERRIDES — force our header/footer to win
   ============================================================ */
body .site-header,
html body .site-header {
  position: fixed !important;
  inset-block-start: 0 !important;
  inset-inline: 0 !important;
  z-index: 1000 !important;
  height: var(--header-height) !important;
}
