/*
Theme Name: MyTheme
Theme URI: https://pressy.dev/
Description: אתר צלם שמיים — גלרייה, אודות, צור קשר
Author: Idan
Version: 1.0
Text Domain: mytheme
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0a0a0f;
  color: #e8e8f0;
  direction: rtl;
  line-height: 1.7;
}

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

a { color: #a8c8ff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ffffff; }

/* =============================================
   HEADER & NAV
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 200, 255, 0.15);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-branding span {
  color: #a8c8ff;
}

#primary-menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

#primary-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ccd6f6;
  letter-spacing: 1px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: #a8c8ff;
  border-bottom-color: #a8c8ff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  margin: 6px 0;
  transition: all 0.3s;
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
#page { padding-top: 70px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg,
.hero-bg-next {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
}

.hero-bg {
  z-index: 0;
  opacity: 1;
}

.hero-bg-next {
  z-index: 0;
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,20,0.3) 0%,
    rgba(10,10,20,0.5) 60%,
    rgba(10,10,20,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid rgba(255,255,255,0.7);
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: all 0.4s;
  backdrop-filter: blur(4px);
}

.hero-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 1.8rem;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: #8892b0;
  max-width: 500px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #a8c8ff, #667eea);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  padding: 100px 40px;
  background: #0d0d1a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,30,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =============================================
   ABOUT SECTION / PAGE
   ============================================= */
.about-section {
  padding: 100px 40px;
  background: #0a0a0f;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(168,200,255,0.3);
  border-radius: 12px;
  z-index: -1;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-text .about-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #a8c8ff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-text p {
  color: #8892b0;
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #a8c8ff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #8892b0;
  letter-spacing: 1px;
  margin-top: 6px;
  display: block;
}

/* =============================================
   CONTACT SECTION / PAGE
   ============================================= */
.contact-section {
  padding: 100px 40px;
  background: #0d0d1a;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 50px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #a8c8ff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px 18px;
  color: #e8e8f0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a8c8ff;
  box-shadow: 0 0 0 3px rgba(168,200,255,0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

/* Contact info */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.contact-info-item {
  text-align: center;
}

.contact-info-item .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-info-item p {
  color: #8892b0;
  font-size: 0.95rem;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #070710;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  text-align: center;
}

#site-footer p {
  color: #4a5568;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

#site-footer a {
  color: #667eea;
}

/* =============================================
   PAGE HERO (for inner pages)
   ============================================= */
.page-hero {
  height: 300px;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a3e 50%, #0d0d2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168,200,255,0.1) 0%, transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-close { top: 20px; right: 20px; font-size: 1.5rem; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* Scroll-reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FORM SUCCESS MESSAGE
   ============================================= */
.form-success {
  display: none;
  background: rgba(100,220,150,0.1);
  border: 1px solid rgba(100,220,150,0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #64dc96;
  margin-top: 20px;
  font-size: 1rem;
}

/* =============================================
   SKIP LINK (ACCESSIBILITY)
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #a8c8ff;
  color: #0a0a0f;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* =============================================
   ACTIVE MENU ITEM
   ============================================= */
#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a {
  color: #a8c8ff;
  border-bottom-color: #a8c8ff;
}

/* =============================================
   HERO BTN (reusable)
   ============================================= */
.about-text .hero-btn {
  background: transparent;
  color: #a8c8ff;
  border-color: rgba(168,200,255,0.5);
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 10px 28px;
}
.about-text .hero-btn:hover {
  background: rgba(168,200,255,0.1);
  color: #ffffff;
  border-color: #a8c8ff;
}

/* =============================================
   GALLERY — masonry-like feel
   ============================================= */
.gallery-item:nth-child(3n+1) { grid-row: span 1; }
.gallery-item:nth-child(3n+2) { }
.gallery-item:nth-child(4)    { aspect-ratio: 16/9; }
.gallery-item:nth-child(6)    { aspect-ratio: 3/4; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  #site-header { padding: 0 20px; }

  #primary-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: rgba(10,10,20,0.97);
    flex-direction: column;
    padding: 30px;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #primary-menu.open { display: flex; }

  .menu-toggle { display: block; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::before { display: none; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .gallery-section,
  .about-section,
  .contact-section { padding: 60px 20px; }

  .contact-form { padding: 30px 20px; }

  .about-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
