/*
Theme Name: Divi Child — Bright Editorial Photography
Theme URI: https://photo.brandactive.online
Description: Child theme for Divi featuring a Bright Editorial Fine-Art Photography Portfolio aesthetic, bilingual BG/EN switcher, WebP dynamic media gallery, and Telegram inquiry notifications.
Author: Krasimir Kulenski
Template: Divi
Version: 1.0.0
*/

:root {
  --ed-canvas: #FAF8F5;
  --ed-sand: #F2ECE4;
  --ed-white: #FFFFFF;
  --ed-ink: #18181B;
  --ed-slate: #6E6A64;
  --ed-terracotta: #9A6B4C;
  --ed-terracotta-dark: #7E553A;
  --ed-botanical: #2C3E35;
  --ed-border: #E5DFD5;
  --ed-demo-bg: #2C3E35;
  --ed-demo-accent: #D4A373;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ed-canvas);
}

body.ed-body {
  background-color: var(--ed-canvas) !important;
  color: var(--ed-ink) !important;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Override Divi container defaults gently for bright editorial clarity */
.ed-body #main-content,
.ed-body #et-main-area,
.ed-body .et_pb_section {
  background-color: transparent;
}
.ed-body .et_pb_section {
  padding: 0 !important;
}
.ed-body .et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ed-body .et_pb_column {
  margin-bottom: 0 !important;
}

.ed-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.ed-prose {
  max-width: 580px;
  text-align: left;
}

/* Mandatory Sticky Demo Banner */
.ed-demo-bar {
  background: var(--ed-demo-bg);
  color: #FAF8F5;
  border-bottom: 2px solid var(--ed-demo-accent);
  padding: 9px 20px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.admin-bar .ed-demo-bar {
  top: 32px;
}
.ed-demo-pill {
  background: var(--ed-demo-accent);
  color: #18181B;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.ed-demo-link {
  color: #FAF8F5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-demo-link:hover {
  color: var(--ed-demo-accent);
}

/* Minimalist Editorial Header */
.ed-header {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ed-border);
  position: relative;
  z-index: 900;
}
.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.ed-brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink);
  text-decoration: none;
}
.ed-brand span {
  color: var(--ed-terracotta);
  font-style: italic;
}
.ed-nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.ed-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ed-menu li a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-slate);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ed-menu li.current-menu-item a,
.ed-menu li a:hover {
  color: var(--ed-ink);
  border-bottom-color: var(--ed-terracotta);
}
.ed-lang-switch {
  display: inline-flex;
  border: 1px solid var(--ed-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ed-white);
}
.ed-lang-switch a {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ed-slate);
  text-decoration: none;
}
.ed-lang-switch a.active {
  background: var(--ed-botanical);
  color: #FAF8F5;
}

/* Typography & Buttons */
.ed-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-terracotta);
  margin-bottom: 14px;
}
.ed-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ed-ink);
  margin: 0 0 20px;
}
.ed-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ed-ink);
  margin: 0 0 14px;
}
.ed-h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ed-ink);
  margin: 0 0 8px;
}
.ed-lead {
  font-size: 16px;
  color: var(--ed-slate);
  line-height: 1.75;
  max-width: 560px;
  text-align: left;
  margin-bottom: 28px;
}
.ed-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ed-btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.ed-btn-primary {
  background: var(--ed-botanical);
  color: #FAF8F5 !important;
}
.ed-btn-primary:hover {
  background: var(--ed-terracotta);
  color: #FFFFFF !important;
}
.ed-btn-outline {
  background: transparent;
  border-color: var(--ed-ink);
  color: var(--ed-ink) !important;
}
.ed-btn-outline:hover {
  background: var(--ed-ink);
  color: #FAF8F5 !important;
}

/* Sections */
.ed-section {
  padding: 84px 0;
}
.ed-section-sand {
  background: var(--ed-sand);
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}

/* Split Bright Editorial Hero */
.ed-hero {
  padding: 68px 0 84px;
}
.ed-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 54px;
  align-items: center;
}
@media (max-width: 900px) {
  .ed-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.ed-hero-visuals {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: end;
}
.ed-frame {
  background: var(--ed-white);
  padding: 10px;
  border: 1px solid var(--ed-border);
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.05);
}
.ed-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.ed-frame-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ed-slate);
  padding-top: 8px;
  letter-spacing: 0.04em;
}

/* Editorial Case Studies (3 Spreads) */
.ed-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .ed-stories-grid { grid-template-columns: 1fr; }
}
.ed-story-card {
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  padding: 16px;
  transition: transform 0.25s ease;
}
.ed-story-card:hover {
  transform: translateY(-3px);
}
.ed-story-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
}
.ed-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-story-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ed-terracotta);
  margin-bottom: 6px;
}
.ed-story-desc {
  font-size: 14px;
  color: var(--ed-slate);
  line-height: 1.65;
  text-align: left;
}

/* Filterable Asymmetrical Editorial Gallery & Contact Sheet */
.ed-gallery-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.ed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ed-filter-btn {
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  color: var(--ed-slate);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ed-filter-btn.active,
.ed-filter-btn:hover {
  background: var(--ed-botanical);
  border-color: var(--ed-botanical);
  color: #FAF8F5;
}
.ed-view-toggle {
  border-left: 1px solid var(--ed-border);
  padding-left: 12px;
  display: flex;
  gap: 6px;
}
.ed-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.ed-gal-item {
  grid-column: span 4;
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ed-gal-item.wide {
  grid-column: span 8;
}
@media (max-width: 900px) {
  .ed-gal-item, .ed-gal-item.wide { grid-column: span 6; }
}
@media (max-width: 600px) {
  .ed-gal-item, .ed-gal-item.wide { grid-column: span 12; }
}
.ed-gallery-grid.contact-sheet .ed-gal-item,
.ed-gallery-grid.contact-sheet .ed-gal-item.wide {
  grid-column: span 3;
  padding: 8px;
}
@media (max-width: 800px) {
  .ed-gallery-grid.contact-sheet .ed-gal-item,
  .ed-gallery-grid.contact-sheet .ed-gal-item.wide {
    grid-column: span 6;
  }
}
.ed-gal-item.hidden {
  display: none;
}
.ed-gal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24, 24, 27, 0.06);
}
.ed-gal-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ed-sand);
}
.ed-gal-item.wide .ed-gal-thumb {
  aspect-ratio: 16 / 9;
}
.ed-gallery-grid.contact-sheet .ed-gal-thumb {
  aspect-ratio: 1 / 1;
}
.ed-gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ed-gal-item:hover .ed-gal-thumb img {
  transform: scale(1.03);
}
.ed-gal-meta {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.ed-gal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ed-ink);
}
.ed-gal-exif {
  font-size: 11px;
  color: var(--ed-slate);
  white-space: nowrap;
}

/* Packages & Services */
.ed-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .ed-pricing-grid { grid-template-columns: 1fr; }
}
.ed-price-card {
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ed-price-card.featured {
  border-color: var(--ed-terracotta);
  box-shadow: 0 18px 40px rgba(154, 107, 76, 0.08);
}
.ed-price-tag {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--ed-botanical);
  margin: 10px 0 16px;
}
.ed-price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  color: var(--ed-slate);
}
.ed-price-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ed-border);
}

/* 4-Step Process */
.ed-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .ed-process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .ed-process-grid { grid-template-columns: 1fr; }
}
.ed-step {
  border-top: 2px solid var(--ed-terracotta);
  padding-top: 16px;
}
.ed-step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ed-terracotta);
  line-height: 1;
  margin-bottom: 8px;
}

/* About & Gear */
.ed-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 850px) {
  .ed-about-grid { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.ed-faq-item {
  border-bottom: 1px solid var(--ed-border);
  padding: 18px 0;
}
.ed-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ed-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ed-faq-a {
  display: none;
  padding-top: 10px;
  font-size: 15px;
  color: var(--ed-slate);
  max-width: 600px;
}
.ed-faq-item.open .ed-faq-a {
  display: block;
}

/* Contact Form Box */
.ed-contact-box {
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 42px;
}
@media (max-width: 850px) {
  .ed-contact-box { grid-template-columns: 1fr; padding: 26px; }
}
.ed-form {
  display: grid;
  gap: 16px;
}
.ed-form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 580px) {
  .ed-form-2 { grid-template-columns: 1fr; }
}
.ed-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-slate);
  margin-bottom: 6px;
}
.ed-form input,
.ed-form select,
.ed-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--ed-canvas);
  border: 1px solid var(--ed-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ed-ink);
}
.ed-form input:focus,
.ed-form select:focus,
.ed-form textarea:focus {
  outline: none;
  border-color: var(--ed-terracotta);
  background: var(--ed-white);
}
.ed-hp { display: none !important; }
.ed-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.ed-status.ok {
  display: block;
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
}
.ed-status.err {
  display: block;
  background: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* Lightbox */
.ed-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10000;
  padding: 24px;
}
.ed-lightbox.open { display: flex; }
.ed-lightbox img {
  max-height: 78vh;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.ed-lb-caption {
  color: #FAF8F5;
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}
.ed-lb-close, .ed-lb-prev, .ed-lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #FAF8F5;
  border: none;
  cursor: pointer;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-lb-close { top: 20px; right: 24px; }
.ed-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ed-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Editorial Footer */
.ed-footer {
  background: var(--ed-sand);
  border-top: 1px solid var(--ed-border);
  padding: 40px 0;
  font-size: 13px;
  color: var(--ed-slate);
}
.ed-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
