/*
Theme Name: Balogh Attila Child Theme
Theme URI: http://nautilusepitesz.hu/
Description: A custom Elementor Child Theme for Balogh Attila Építész Stúdió based on Hello Elementor parent theme.
Author: Antigravity
Author URI: https://gemini.google.com
Template: hello-elementor
Version: 1.0.15
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: balogh-attila-child
*/
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Premium Dark Theme Color System (Charcoal & Warm Wood) */
  --bg-dark: #0A0A0B;
  --bg-surface: #121214;
  --bg-surface-elevated: #1A1A1D;
  --bg-navbar: rgba(10, 10, 11, 0.85);
  
  --primary-wood: #D4A373;       /* Warm cedar timber accent */
  --primary-wood-hover: #C59664;
  --primary-wood-rgb: 212, 163, 115;
  --secondary-wood: #A67C52;     /* Muted darker wood tone */
  
  --text-primary: #F3F4F6;       /* Crisp off-white */
  --text-secondary: #A1A1AA;     /* Soft zinc gray */
  --text-muted: #71717A;         /* Darker zinc gray for helper text */
  
  --border-color: #242427;       /* Elegant thin border */
  --border-hover: #3F3F46;
  
  /* Signature Blending & Colors */
  --signature-invert: 1;
  --signature-blend: screen;
  
  /* Fonts */
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Josefin Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout constraints */
  --max-width: 1440px;
}

/* --- Base Resets & Global Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Bulletproof Global Typography Lock */
body, html, p, h1, h2, h3, h4, h5, h6, span, a, div, li, input, textarea, select, button {
  font-family: 'Josefin Sans', 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

/* WordPress & Elementor layout structural elements background override to force Premium Dark Theme */
body,
#page,
#content,
.site,
.site-content,
main.site-main,
.site-main,
article.post,
article.page,
.entry-content,
.elementor {
  background-color: var(--bg-dark) !important;
  background: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Force light color on Elementor / WordPress headings inside the dark theme */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.entry-title {
  color: var(--text-primary) !important;
  font-family: var(--font-heading) !important;
}

/* Default styling for text blocks, paragraph text, list items, etc. */
.elementor-text-editor,
.elementor-text-editor p,
.elementor-text-editor span,
.elementor-text-editor li,
.entry-content p,
.entry-content li {
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
}

/* Elementor Buttons Global Override to match premium theme buttons */
.elementor-button,
.elementor-button-wrapper .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--primary-wood) !important;
  padding: 1.1rem 2.2rem !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: var(--transition-normal) !important;
  z-index: 1 !important;
  border-radius: 0px !important;
}

.elementor-button::before,
.elementor-button-wrapper .elementor-button::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--primary-wood) !important;
  z-index: -1 !important;
  transform: scaleX(0) !important;
  transform-origin: right !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-button:hover,
.elementor-button-wrapper .elementor-button:hover {
  color: var(--bg-dark) !important;
  border-color: var(--primary-wood) !important;
  background-color: transparent !important;
  background: transparent !important;
}

.elementor-button:hover::before,
.elementor-button-wrapper .elementor-button:hover::before {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}

.elementor-button .elementor-button-content-wrapper {
  position: relative !important;
  z-index: 2 !important;
}

.elementor-button .elementor-button-text,
.elementor-button .elementor-button-icon {
  color: inherit !important;
  transition: color 0.4s ease !important;
}

.elementor-button:hover .elementor-button-text,
.elementor-button:hover .elementor-button-icon {
  color: var(--bg-dark) !important;
}

/* Form inputs overrides for Elementor Forms / standard WordPress forms */
.elementor-field-group .elementor-field,
.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
  font-family: var(--font-body) !important;
  transition: var(--transition-fast) !important;
}

.elementor-field-group .elementor-field:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-wood) !important;
  outline: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-wood);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img, video {
  max-width: 100%;
  display: block;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.text-gradient-wood {
  background: linear-gradient(135deg, #F3F4F6 30%, var(--primary-wood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Common Components & Layouts --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-container {
    padding: 5rem 1.5rem;
  }
}

/* Premium Section Header */
.section-header {
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
}

.section-subtitle {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--primary-wood);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.section-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--primary-wood);
  margin: 2rem auto 0 auto;
}

/* Luxury Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--primary-wood);
  padding: 1.1rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-wood);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover,
input[type="button"].btn-primary:hover {
  color: var(--bg-dark) !important;
  border-color: var(--primary-wood);
  background-color: transparent !important;
  background: transparent !important;
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-wood);
  cursor: pointer;
  position: relative;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-wood);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  color: var(--text-primary);
}

.btn-secondary:hover::after {
  transform: scaleX(1);
  background-color: var(--text-primary);
}

/* --- NAVIGATION BAR --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: none;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.4) 60%, rgba(10, 10, 11, 0) 100%);
  transition: var(--transition-smooth);
}

/* Subpage header navigation solid black background lock to ensure logo and links are visible */
body:not(.home) .header-nav {
  background: #0A0A0B !important;
  background-color: #0A0A0B !important;
  border-bottom: none !important;
}

.light-theme body:not(.home) .header-nav {
  background: #0A0A0B !important;
  background-color: #0A0A0B !important;
  border-bottom: none !important;
}

.light-theme body:not(.home) .header-nav .logo {
  color: #F3F4F6 !important;
}

.light-theme body:not(.home) .header-nav .logo span {
  color: var(--primary-wood) !important;
}

.light-theme body:not(.home) .header-nav .logo .logo-light {
  display: block !important;
}

.light-theme body:not(.home) .header-nav .logo .logo-dark {
  display: none !important;
}

.light-theme body:not(.home) .header-nav .nav-link {
  color: #F3F4F6 !important;
}

.light-theme body:not(.home) .header-nav .theme-toggle-btn {
  color: #F3F4F6 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.light-theme body:not(.home) .header-nav .mobile-nav-toggle {
  color: #F3F4F6 !important;
}

/* Ensure the contact button stays gold/white on subpages (where the header is solid black) in light theme */
.light-theme body:not(.home) .header-nav .nav-menu .btn-primary {
  color: #F3F4F6 !important;
  border-color: var(--primary-wood) !important;
}

.header-nav.scrolled {
  background-color: var(--bg-navbar);
  border-bottom: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.header-nav.scrolled .nav-container {
  padding: 1rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-wood);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-wood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 101;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  transition: var(--transition-fast);
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 100;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05);
  transition: opacity 1.5s ease-in-out !important;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.85) 0%,
    rgba(10, 10, 11, 0.5) 50%,
    var(--bg-dark) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  padding: 0 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.55em;
  color: var(--primary-wood);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 4px 25px rgba(0, 0, 0, 0.95);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
  color: var(--primary-wood) !important;
  -webkit-text-fill-color: var(--primary-wood) !important;
}

.hero-actions {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.9s;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-primary {
  font-weight: 600;
}

.hero .btn-secondary {
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.2s;
}

.scroll-arrow {
  color: var(--primary-wood);
  animation: scrollBounce 2.2s ease-in-out infinite;
  display: block;
  margin-top: 0.25rem;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-wood);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.about-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* Feature grid inside about */
.about-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  margin-top: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-wood);
  font-weight: 400;
}

.spec-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.spec-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About Video Frame */
.about-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: var(--transition-smooth);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.about-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
  transition: var(--transition-smooth);
}

.about-visual:hover .about-video {
  filter: grayscale(0%) brightness(1);
}

/* Decorative wood corners */
.corner-accent {
  position: absolute;
  width: 25px;
  height: 25px;
  border-color: var(--primary-wood);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
  transition: var(--transition-normal);
}

.about-visual:hover .corner-accent {
  width: 35px;
  height: 35px;
}

.corner-top-left {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.project-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--primary-wood);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9) contrast(1.05) opacity(0.85);
  transition: var(--transition-smooth);
}

.project-card:hover .project-image {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1) contrast(1) opacity(1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 20, 0) 40%,
    rgba(18, 18, 20, 0.85) 100%
  );
  opacity: 0.8;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 0.95;
}

/* Quick specs badge on image */
.project-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: transparent !important;
  border: 1px solid var(--primary-wood);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-wood);
  z-index: 2;
}

.project-details {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-wood);
}

.project-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  flex-grow: 1;
}

.project-specs {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.proj-spec {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proj-spec span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.proj-spec span:last-child {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* --- CONTACT & CONSULTATION SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-header h3 {
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-wood);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.channel-item:hover .channel-icon {
  border-color: var(--primary-wood);
  box-shadow: 0 0 15px var(--glow-wood);
  transform: translateY(-2px);
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.channel-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* Contact Form */
.contact-form-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.contact-form-container:hover {
  border-color: rgba(212, 163, 115, 0.4);
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 2rem;
  }
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
}

@media (max-width: 576px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.form-group {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Floating label and input styling */
.form-input, .form-select, .form-textarea,
.contact-form-container .form-input,
.contact-form-container .form-select,
.contact-form-container .form-textarea,
.elementor-widget-nautilus_contact input[type="text"],
.elementor-widget-nautilus_contact input[type="email"],
.elementor-widget-nautilus_contact input[type="tel"],
.elementor-widget-nautilus_contact select,
.elementor-widget-nautilus_contact textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.8rem 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: auto !important;
  transition: var(--transition-normal) !important;
}

.form-textarea,
.contact-form-container .form-textarea,
.elementor-widget-nautilus_contact textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

.form-select,
.contact-form-container .form-select,
.elementor-widget-nautilus_contact select {
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23D4A373' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  padding-right: 2rem !important;
}

.form-label {
  position: absolute !important;
  left: 0 !important;
  top: 0.8rem !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: var(--transition-normal) !important;
}

/* Floating Label Animation States */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.form-select:focus ~ .form-label,
.form-select:valid ~ .form-label,
.contact-form-container .form-input:focus ~ .form-label,
.contact-form-container .form-input:not(:placeholder-shown) ~ .form-label,
.contact-form-container .form-textarea:focus ~ .form-label,
.contact-form-container .form-textarea:not(:placeholder-shown) ~ .form-label,
.contact-form-container .form-select:focus ~ .form-label,
.contact-form-container .form-select:valid ~ .form-label {
  top: -1.2rem !important;
  font-size: 0.7rem !important;
  color: var(--primary-wood) !important;
  letter-spacing: 0.15em !important;
}

.form-input:focus, .form-textarea:focus, .form-select:focus,
.contact-form-container .form-input:focus,
.contact-form-container .form-textarea:focus,
.contact-form-container .form-select:focus {
  border-bottom: 1px solid var(--primary-wood) !important;
}

/* Submit Button & States */
.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Elementor Contact Form Alignment & Dark Theme Lock --- */
/* Loopk, hogy oldalanként egyezzen a statikus kapcsolat.html stílussal */
.page .elementor-widget-form,
.page .elementor-widget-form .elementor-form-fields-wrapper,
.page .elementor-widget-form .elementor-field-group {
  max-width: 100% !important;
  margin-bottom: 0 !important;
}
.page .elementor-widget-form .elementor-field-group {
  flex: 1 1 100% !important;
  min-width: 0 !important;
}
.page .elementor-widget-form .elementor-field-group:not(.elementor-field-type-submit) {
  flex: 1 1 100% !important;
  max-width: 100% !important;
}
.page .elementor-widget-form .elementor-field-group.elementor-col-2,
.page .elementor-widget-form .elementor-field-group.elementor-column {
  max-width: 100% !important;
}
.page .elementor-widget-form .elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group {
  margin-bottom: 1.5rem !important;
}
.page .elementor-widget-form .elementor-field-textual {
  width: 100% !important;
  background: transparent !important;
  color: var(--text-primary) !important;
}
.page .elementor-widget-form .elementor-label {
  color: var(--text-secondary) !important;
  letter-spacing: 0.1em !important;
}
/* Keep Elementor widgets on dark theme to avoid accidental light surfaces */
.page .elementor-widget-wrap,
.page .elementor-widget-inner {
  background-color: transparent !important;
}

/* Prevent contact area drift from Elementor spacing defaults */
.page .contact-grid,
.page [data-elementor-type="wp-page"] .contact-grid {
  display: grid !important;
  grid-template-columns: 2fr 3fr !important;
  gap: 5rem !important;
  align-items: start !important;
}
@media (max-width: 992px) {
  .page .contact-grid,
  .page [data-elementor-type="wp-page"] .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 4rem !important;
  }
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  background-color: #080809;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: transparent;
  transition: var(--transition-normal);
}

.social-link:hover {
  border-color: var(--primary-wood);
  color: var(--primary-wood);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-wood);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-bottom-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

/* --- ANIMATIONS / SCROLL REVEALS --- */
/* Elements start hidden, and then animate with Intersection Observer */
.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.95);
}

/* Reveal active state trigger */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delay classes for grid layouts */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom wood textures / ambient light effects */
.ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.03) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- HERO DIAVETÍTÉS (SLIDESHOW) HÁTTÉR --- */
.hero-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.7) contrast(1.05);
}

.hero-slide.active {
  opacity: 1;
}

/* --- SZOLGÁLTATÁSOK RÁCS (SERVICES GRID) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card:hover {
  border-color: var(--primary-wood);
  /* transform: translateY(-5px); disabled for static elements */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  color: var(--primary-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(212, 163, 115, 0.05);
  border: 1px solid rgba(212, 163, 115, 0.1);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--primary-wood);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.4);
}

.service-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- PORTFÓLIÓ SZŰRŐ GOMBOK (FILTERS) --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.filter-btn {
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  padding: 0.8rem 2rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: var(--transition-normal) !important;
  border-radius: 0px !important;
  box-shadow: none !important;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary-wood) !important;
  color: var(--primary-wood) !important;
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.1) !important;
}

/* Card hide for filtering */
.project-card.hide {
  display: none;
}

.project-card {
  cursor: pointer;
}

/* --- PORTRAIT IMAGE ACCENT --- */
.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-visual:hover .about-portrait-img {
  filter: grayscale(0%) brightness(1.0);
}

/* --- PARTNEREINK GRID --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.partner-item {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item:hover {
  color: var(--primary-wood);
  border-color: var(--primary-wood);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.15);
  transform: translateY(-4px);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 7, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  z-index: 10;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { transform: scale(0.95) translateY(20px); }
  to { transform: scale(1) translateY(0); }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 100005;
  transition: var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-wood);
  transform: rotate(90deg);
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: 100%;
}

@media (max-width: 800px) {
  .lightbox-content {
    grid-template-columns: 1fr;
  }
}

.lightbox-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: var(--bg-dark);
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

@media (max-width: 800px) {
  .lightbox-image-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

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

.lightbox-info {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .lightbox-info {
    padding: 2rem;
  }
}

.lightbox-meta {
  display: flex;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--primary-wood);
  text-transform: uppercase;
}

.lightbox-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  line-height: 1.2;
}

.lightbox-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* --- BIO AUTHOR SIGNATURE BADGE --- */
.bio-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.bio-portrait-small {
  width: 75px;
  height: 95px;
  border-radius: 0px;
  object-fit: cover;
  padding: 4px;
  border: 1px solid var(--primary-wood);
  background-color: var(--bg-surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.bio-author:hover .bio-portrait-small {
  transform: translateY(-2px);
  border-color: var(--text-primary);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

.bio-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bio-author-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.bio-author-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Force Elementor sections & Flexbox Containers containing our custom widgets/sections to be full width with no margins or padding */
.elementor-section:has(.hero, .page-header, .section-container),
.e-con:has(.hero, .page-header, .section-container) {
  width: 100% !important;
  max-width: 100% !important;
  --content-width: 100% !important;
  --container-max-width: 100% !important;
  left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.elementor-container:has(.hero, .page-header, .section-container),
.e-con-inner:has(.hero, .page-header, .section-container),
.e-con:has(.hero, .page-header, .section-container) > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  --content-width: 100% !important;
  --container-max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.elementor-section:has(.hero, .page-header, .section-container) .elementor-column,
.e-con:has(.hero, .page-header, .section-container) .elementor-column {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-section:has(.hero, .page-header, .section-container) .elementor-widget-wrap,
.e-con:has(.hero, .page-header, .section-container) .elementor-widget-wrap,
.elementor-widget:has(.hero, .page-header, .section-container),
.elementor-widget-container:has(.hero, .page-header, .section-container) {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* --- Services Page Alternating Grid & Imagery --- */
.service-detail-item.alternate-layout {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 6rem;
}

.service-detail-item.alternate-layout:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.service-image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: brightness(0.9) contrast(1.05);
}

/* --- Services Stats Section --- */
.services-stats-section {
  border-top: 1px solid var(--border-color);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--primary-wood);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--primary-wood);
  line-height: 1;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(212, 163, 115, 0.15);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* --- FAQ Accordion --- */
.faq-section {
  border-top: 1px solid var(--border-color);
  padding: 8rem 2rem;
}

.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  transition: var(--transition-normal);
}

.accordion-item:hover {
  border-color: var(--border-hover);
}

.accordion-item.active {
  border-color: var(--primary-wood);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.accordion-header {
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0 !important;
  text-transform: none !important;
}

.accordion-item.active .accordion-title {
  color: var(--primary-wood) !important;
}

.accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(135deg);
  color: var(--primary-wood);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content-inner {
  padding: 0 2.2rem 1.8rem 2.2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

/* --- Services CTA Banner --- */
.services-cta-banner {
  border-top: 1px solid var(--border-color);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 950px;
  margin: 0 auto;
  background: rgba(18, 18, 20, 0.45);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transition: var(--transition-normal);
}

.cta-container:hover {
  border-color: var(--primary-wood);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary-wood);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 !important;
}

.cta-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
  .service-detail-item.alternate-layout,
  .service-detail-item.alternate-layout:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-image-wrapper {
    height: 320px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .cta-container {
    padding: 4rem 2rem;
  }
}

/* --- Premium Site Preloader --- */
#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  visibility: visible;
  opacity: 1;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

.preloader-logo span {
  color: var(--primary-wood);
}

.preloader-bar-bg {
  width: 180px;
  height: 2px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary-wood);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* --- Core Values Section --- */
.values-section {
  border-top: 1px solid var(--border-color);
  padding: 8rem 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.value-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-wood), transparent);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  border-color: var(--border-hover);
  /* transform: translateY(-5px); disabled for static elements */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.value-icon {
  color: var(--primary-wood);
  margin-bottom: 0.5rem;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.value-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

/* --- Infinite Brand Marquee Slider --- */
.partners-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.partners-carousel-container::before,
.partners-carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.partners-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: calc(250px * 12);
  animation: marquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: var(--transition-fast);
  opacity: 0.4;
  user-select: none;
}

.partner-logo-item:hover {
  color: var(--primary-wood);
  opacity: 1;
  text-shadow: 0 0 15px rgba(212, 163, 115, 0.2);
}

/* Partner logo images */
.partner-logo-img {
  max-height: 50px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.5;
  transition: var(--transition-normal);
}

.partner-logo-item:hover .partner-logo-img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.light-theme .partner-logo-img {
  filter: invert(0.85) grayscale(100%) !important;
  opacity: 0.65 !important;
}

.light-theme .partner-logo-item:hover .partner-logo-img {
  filter: invert(0.85) grayscale(100%) !important;
  opacity: 1 !important;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.partner-text-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 6));
  }
}

/* --- Timeline Enhancements --- */
.timeline-item {
  padding-bottom: 2.5rem;
  transition: var(--transition-normal);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Hide the dots and lines since client requested: pötty nem kell */
.timeline-item::before {
  display: none !important;
}

.timeline-item:hover {
  transform: none !important;
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- PREMIUM LIGHT THEME --- */
.light-theme {
  --bg-dark: #FAF9F6;            /* Premium clean off-white */
  --bg-surface: #FFFFFF;         /* Crisp pure white for cards and surfaces */
  --bg-surface-elevated: #FDFDFB; /* Light elevated off-white */
  --bg-navbar: rgba(250, 249, 246, 0.9);
  
  --primary-wood: #A06D42;       /* Rich cedar timber for light background contrast */
  --primary-wood-hover: #8A5B34;
  --primary-wood-rgb: 160, 109, 66;
  --secondary-wood: #734F2F;
  
  --text-primary: #1F1B18;       /* High-contrast stone black */
  --text-secondary: #4A453F;     /* Darker stone gray for excellent readability */
  --text-muted: #736E67;         /* Visible muted stone gray */
  
  --border-color: #E6E2DA;       /* Clean warm gray border */
  --border-hover: #CFC9BD;
  
  /* Signature Blending & Colors */
  --signature-invert: 0;
  --signature-blend: multiply;
}

/* Light Theme Component Overrides */
.light-theme .text-gradient-wood {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
}

.light-theme .header-nav {
  background: linear-gradient(to bottom, rgba(250, 249, 246, 0.9) 0%, rgba(250, 249, 246, 0.4) 60%, rgba(250, 249, 246, 0) 100%);
}

.light-theme .header-nav.scrolled {
  background-color: var(--bg-navbar);
}

.light-theme .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.5) 0%,
    rgba(10, 10, 11, 0.2) 60%,
    rgba(10, 10, 11, 0.45) 100%
  );
}

.light-theme .hero-title,
.light-theme .hero-subtitle {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.light-theme .project-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.85) 100%
  );
}

.light-theme .project-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-color);
}

.light-theme .ambient-glow {
  background: radial-gradient(circle, rgba(178, 130, 91, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.light-theme footer {
  background-color: #FAF9F6;
}

.light-theme .cta-container {
  background: rgba(255, 255, 255, 0.65);
}

.light-theme .lightbox-overlay {
  background-color: rgba(250, 249, 246, 0.9);
}

.light-theme .lightbox-image-wrapper {
  background-color: var(--bg-dark);
}

.light-theme .form-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23B2825B' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
}

.light-theme .mobile-nav-toggle {
  color: var(--text-primary);
}

/* Force Elementor layout wrappers to inherit page background in light theme */
.light-theme .elementor-section,
.light-theme .e-con,
.light-theme .elementor-column,
.light-theme .elementor-column-wrap,
.light-theme .elementor-widget-wrap {
  background-color: transparent !important;
}

@media (max-width: 992px) {
  .light-theme .nav-menu {
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 101;
  padding: 0;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.light-theme .theme-toggle-btn {
  border-color: var(--border-hover) !important;
}

.theme-toggle-btn:hover {
  border-color: var(--primary-wood) !important;
  color: var(--primary-wood) !important;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.2) !important;
  transform: scale(1.05) !important;
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg) !important;
}

@media (max-width: 992px) {
  .theme-toggle-btn {
    margin-left: auto;
    margin-right: 1rem;
  }
}

/* Ensure Hero section text & buttons remain light-colored and readable over the dark video background in light theme */
.light-theme .hero-subtitle {
  color: #D4A373 !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.8) !important;
}

.light-theme .hero-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.light-theme .hero .text-gradient-wood {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.light-theme .hero-scroll-indicator {
  color: #A1A1AA !important;
}

.light-theme .hero .scroll-arrow {
  color: #D4A373 !important;
}

.light-theme .hero .btn-primary {
  color: #F3F4F6 !important;
  border-color: #D4A373 !important;
}

.light-theme .hero .btn-primary::before {
  background: #D4A373 !important;
}

.light-theme .hero .btn-primary:hover {
  color: #0A0A0B !important;
}

.light-theme .hero .btn-secondary {
  color: #D4A373 !important;
}

.light-theme .hero .btn-secondary::after {
  background-color: #D4A373 !important;
}

.light-theme .hero .btn-secondary:hover {
  color: #F3F4F6 !important;
}

.light-theme .hero .btn-secondary:hover::after {
  background-color: #F3F4F6 !important;
}

/* --- Light Theme Header Readability on Dark Hero Video (when unscrolled) --- */
.light-theme .header-nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.4) 60%, rgba(10, 10, 11, 0) 100%) !important;
}

.light-theme .header-nav:not(.scrolled) .logo {
  color: #F3F4F6 !important;
}

.light-theme .header-nav:not(.scrolled) .logo span {
  color: #D4A373 !important;
}

.light-theme .header-nav:not(.scrolled) .nav-link {
  color: #F3F4F6 !important;
}

.light-theme .header-nav:not(.scrolled) .theme-toggle-btn {
  color: #F3F4F6 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.light-theme .header-nav:not(.scrolled) .mobile-nav-toggle {
  color: #F3F4F6 !important;
}

/* Ensure the contact button inside the header menu stays gold/white when unscrolled */
.light-theme .header-nav:not(.scrolled) .nav-menu .btn-primary {
  color: #F3F4F6 !important;
  border-color: #D4A373 !important;
  background-color: transparent !important;
}

.light-theme .header-nav:not(.scrolled) .nav-menu .btn-primary::before {
  background: #D4A373 !important;
}

.light-theme .header-nav:not(.scrolled) .nav-menu .btn-primary:hover {
  color: #0A0A0B !important;
}

/* Hide short card description paragraphs in portfolio summary cards */
.project-card .project-desc {
  display: none !important;
}

/* Light Theme Menu text shadow override for readability */
.light-theme .nav-link {
  text-shadow: none !important;
}
.light-theme .header-nav:not(.scrolled) .nav-link {
  text-shadow: none !important;
}

/* --- Back to Top Button --- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  border-color: var(--primary-wood);
  color: var(--primary-wood);
  box-shadow: 0 5px 15px rgba(212, 163, 115, 0.15);
  transform: translateY(-3px);
}

.scroll-to-top-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* --- Contact Map in Column --- */
.contact-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) invert(0.9) opacity(0.85);
  transition: var(--transition-normal);
}

.contact-map iframe:hover {
  filter: grayscale(0.2) invert(0) opacity(1);
}

.light-theme .contact-map iframe {
  filter: grayscale(1) opacity(0.85);
}

.light-theme .contact-map iframe:hover {
  filter: grayscale(0.1) opacity(1);
}

/* --- Lightbox Upgrades --- */
.lightbox-image-wrapper {
  position: relative;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 18, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition-fast);
  line-height: 1;
  padding-bottom: 4px;
}

.lightbox-arrow:hover {
  background: var(--primary-wood);
  color: var(--bg-dark);
  border-color: var(--primary-wood);
}

.lightbox-arrow-left {
  left: 1.5rem;
}

.lightbox-arrow-right {
  right: 1.5rem;
}

.lightbox-fullscreen {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(18, 18, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition-fast);
}

.lightbox-fullscreen:hover {
  background: var(--primary-wood);
  color: var(--bg-dark);
  border-color: var(--primary-wood);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  z-index: 15;
  letter-spacing: 0.1em;
}

.lightbox-project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  gap: 1rem;
}

.project-nav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.project-nav-btn:hover {
  border-color: var(--primary-wood);
  color: var(--primary-wood);
}

/* Lightbox Close focus/active outline reset */
.lightbox-close,
.lightbox-close:focus,
.lightbox-close:active,
.lightbox-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Lightbox Fullscreen visual state overlay */
.lightbox-image-wrapper.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background-color: #000000;
}

.lightbox-image-wrapper.fullscreen-mode .lightbox-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SUBPAGE LAYOUTS & COMPONENTS
   ========================================================================== */

/* Subpage Header Styling */
.page-header {
  padding: 10rem 2rem 4rem 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}
.page-header-subtitle {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--primary-wood);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.page-header-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
}

/* --- Belsőépítészet Process / Strengths Styling --- */
.interior-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .interior-process {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.process-card-dark {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.process-card-dark:hover {
  border-color: var(--primary-wood);
  /* transform: translateY(-5px); disabled for static elements */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Építészet Process Timeline --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 4rem 0;
}

@media (max-width: 992px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.process-step {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.process-step:hover {
  border-color: var(--primary-wood);
  /* transform: translateY(-5px); disabled for static elements */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(212, 163, 115, 0.15);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-weight: 600;
}

/* --- Rólunk Biography Page-Specific Styles --- */
.bio-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .bio-detail-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  border-left: none;
  padding-left: 0;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  display: none !important;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-wood);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Marquee Partner Logos inside Rólunk page */
.partner-logo-item {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 2rem;
}
.partner-sinus {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.3em;
}
.partner-sticky {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-wood) !important;
}
.partner-koelner span {
  border: 1px solid var(--border-color);
  padding: 0.3rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.partner-energet {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--primary-wood);
}
.partner-crocs {
  font-weight: 400;
  letter-spacing: 0.4em;
}
.partner-nautilus {
  border-left: 2px solid var(--primary-wood);
  border-right: 2px solid var(--primary-wood);
  padding: 0 1.2rem;
  font-weight: 600;
}

/* --- Szolgáltatások Detailed Layouts --- */
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin: 4rem 0;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5rem;
}

.service-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Alternating orders for preview */
.service-detail-item:nth-child(even) .service-detail-left {
  order: 2;
}
.service-detail-item:nth-child(even) .service-image-wrapper {
  order: 1;
}

@media (max-width: 992px) {
  .service-detail-item {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
  }
  .service-detail-item:nth-child(even) .service-detail-left,
  .service-detail-item:nth-child(even) .service-image-wrapper {
    order: 0 !important;
  }
}

.service-detail-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail-icon {
  color: var(--primary-wood);
  margin-bottom: 0.5rem;
}

.service-detail-left ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.service-detail-left li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.service-detail-left li::before {
  content: '—';
  color: var(--primary-wood);
  position: absolute;
  left: 0;
  top: 0;
}




/* Navigation link styling adjustments - Remove all text-shadows to prevent blurriness */
.header-nav .nav-link,
.header-nav a,
.nav-link,
.logo,
.light-theme .nav-link,
.light-theme .logo {
  text-shadow: none !important;
}

/* Elementor Lightbox Overrides to prevent lila/purple states */
.elementor-lightbox,
.elementor-lightbox .elementor-video-container {
  background-color: rgba(10, 10, 11, 0.95) !important;
}
.light-theme .elementor-lightbox {
  background-color: rgba(250, 249, 246, 0.95) !important;
}
.elementor-lightbox .dialog-close-button,
.elementor-lightbox .elementor-swiper-button,
.elementor-lightbox .dialog-header,
.elementor-lightbox .elementor-slideshow-navigation,
.elementor-lightbox .dialog-close-button i,
.elementor-lightbox .elementor-swiper-button i {
  color: var(--text-primary) !important;
  fill: var(--text-primary) !important;
}
.elementor-lightbox .dialog-close-button:hover,
.elementor-lightbox .elementor-swiper-button:hover,
.elementor-lightbox .dialog-close-button:hover i,
.elementor-lightbox .elementor-swiper-button:hover i {
  color: var(--primary-wood) !important;
  fill: var(--primary-wood) !important;
}
/* Focus/Active outline resets */
.elementor-lightbox button:focus,
.elementor-lightbox a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Global transparency and border removals for project-card layouts to fit transparent captions */
.project-card,
.project-details,
.portfolio-grid .project-card,
.portfolio-grid .project-details {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hide project description from card layouts on the grid. It only displays inside the lightbox modal. */
.project-card .project-desc,
.portfolio-grid .project-card .project-desc {
  display: none !important;
}

/* --- Dynamic Logo Switching (Light/Dark themes) --- */
/* By default (dark theme / unscrolled), show light logo, hide dark logo */
.logo .logo-dark,
.preloader-logo .logo-dark {
  display: none !important;
}
.logo .logo-light,
.preloader-logo .logo-light {
  display: block !important;
}

/* Light theme adjustments */
/* 1. Header scrolled (solid light travertine background) -> show dark logo (HOMEPAGE ONLY) */
.light-theme.home .header-nav.scrolled .logo .logo-light,
.light-theme body.home .header-nav.scrolled .logo .logo-light {
  display: none !important;
}
.light-theme.home .header-nav.scrolled .logo .logo-dark,
.light-theme body.home .header-nav.scrolled .logo .logo-dark {
  display: block !important;
}

/* 2. Footer (solid white background in light theme) -> show dark logo */
.light-theme footer .logo .logo-light {
  display: none !important;
}
.light-theme footer .logo .logo-dark {
  display: block !important;
}

/* 3. Preloader (light travertine background in light theme) -> show dark logo */
.light-theme .preloader-logo .logo-light {
  display: none !important;
}
.light-theme .preloader-logo .logo-dark {
  display: block !important;
}


/* Compliance logo visibility by theme */
.logo-dark-theme-only {
  display: block !important;
}
.logo-light-theme-only {
  display: none !important;
}
.light-theme .logo-dark-theme-only {
  display: none !important;
}
.light-theme .logo-light-theme-only {
  display: block !important;
}

/* --- EXPLICIT OWNER MODIFICATIONS & UI CORRECTIONS --- */

/* 1. Remove border around images and hide corner accent lines */
.about-visual,
.about-visual img,
.project-image-wrapper,
.project-card,
.project-card img {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.corner-accent {
  display: none !important;
}

/* 2. Remove border from the project badges and adjust contrast dynamically */
.project-badge {
  border: none !important;
  background-color: rgba(10, 10, 11, 0.8) !important;
  color: #FAF9F6 !important;
  font-weight: 500 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.35rem 0.75rem !important;
}

.light-theme .project-badge,
.light-theme body .project-badge {
  background-color: rgba(255, 255, 255, 0.85) !important;
  color: #0C0C0E !important;
}

/* 3. Force button layout and prevent pink/lila close/toggle button backgrounds */
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--primary-wood) !important;
  padding: 1.1rem 2.2rem !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: var(--transition-normal) !important;
  z-index: 1 !important;
  border-radius: 0 !important;
}

.btn-primary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--primary-wood) !important;
  z-index: -1 !important;
  transform: scaleX(0) !important;
  transform-origin: right !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover,
input[type="button"].btn-primary:hover {
  color: var(--bg-dark) !important;
  border-color: var(--primary-wood) !important;
  background-color: transparent !important;
  background: transparent !important;
}

.btn-primary:hover::before {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}

/* Force mobile navigation toggles and lightbox close buttons to not be pink/purple */
.mobile-nav-toggle,
#mobile-toggle,
.lightbox-close,
.elementor-lightbox .dialog-close-button,
.elementor-lightbox .dialog-close-button i,
button.mobile-nav-toggle,
button#mobile-toggle {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
  fill: var(--text-primary) !important;
  outline: none !important;
}

.mobile-nav-toggle:hover,
#mobile-toggle:hover,
.lightbox-close:hover,
.elementor-lightbox .dialog-close-button:hover,
.elementor-lightbox .dialog-close-button:hover i {
  color: var(--primary-wood) !important;
  fill: var(--primary-wood) !important;
}

/* Light theme: mobile slide-out panel gets a DARK background so links remain white and readable */
@media (max-width: 992px) {
  .light-theme .nav-menu {
    background-color: #0A0A0B !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
  }

  .light-theme .nav-menu .nav-link {
    color: #F3F4F6 !important;
  }

  .light-theme .nav-menu .nav-link:hover,
  .light-theme .nav-menu .nav-link.active {
    color: var(--primary-wood) !important;
  }

  /* Mobile hamburger icon: white on homepage (transparent dark hero), white on subpages (dark header) */
  .light-theme .mobile-nav-toggle,
  .light-theme #mobile-toggle,
  .light-theme button.mobile-nav-toggle {
    color: #F3F4F6 !important;
    fill: #F3F4F6 !important;
  }

  .light-theme .mobile-nav-toggle:hover,
  .light-theme #mobile-toggle:hover {
    color: var(--primary-wood) !important;
    fill: var(--primary-wood) !important;
  }

  /* Theme toggle button inside mobile panel should also be white */
  .light-theme .nav-menu .theme-toggle-btn {
    color: #F3F4F6 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
}

/* 4. Fix mobile timeline hover rule to ensure it does not translate or animate */
.timeline-item:hover {
  transform: none !important;
  padding-left: 0 !important;
  color: inherit !important;
  background: transparent !important;
}

/* 5. Mobile Lightbox modal fix - make container scrollable to prevent photos & text from sliding off screen */
.lightbox-container {
  position: relative !important;
  width: 90% !important;
  max-width: 1100px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 768px) {
  .lightbox-content {
    grid-template-columns: 1fr !important;
  }
  .lightbox-info {
    padding: 1.5rem !important;
  }
  .lightbox-image-wrapper {
    aspect-ratio: 4 / 3 !important;
  }
}

/* 6. Responsive Grids for Subpages to prevent text overflow */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .editorial-grid div[style*="border-left"] {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 2rem !important;
  }
}

.mood-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .mood-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* 7. Timeline / Process numbers overlapping fix on mobile */
@media (max-width: 768px) {
  .process-step-num {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.8rem !important;
    text-align: left !important;
  }
  
  .process-step {
    padding: 2rem 1.5rem !important;
  }
}

/* Light theme partner boxes styling to prevent blending into white background */
.light-theme .partner-item {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

/* --- PARTNER LOGO SYSTEM & THEME INTEGRATION --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.partner-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: var(--transition-normal);
}

.partner-item:hover {
  border-color: var(--primary-wood);
  transform: translateY(-3px);
}

.partner-logo-img {
  max-height: 60px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
  transition: var(--transition-normal);
}

.partner-item:hover .partner-logo-img {
  filter: grayscale(0%) opacity(1);
}

/* Light Theme Variables & Enhancements */
.light-theme {
  --bg-dark: #FAFAFA !important;
  --bg-surface: #FFFFFF !important;
  --bg-surface-elevated: #F4F4F5 !important;
  --bg-navbar: rgba(250, 250, 250, 0.95) !important;
  --text-primary: #18181B !important;
  --text-secondary: #52525B !important;
  --text-muted: #71717A !important;
  --border-color: #E4E4E7 !important;
}

.light-theme .partner-logo-img {
  filter: grayscale(100%) contrast(1.2) opacity(0.85);
}

.light-theme .partner-item:hover .partner-logo-img {
  filter: grayscale(0%) opacity(1);
}

/* Compliance Banner Box Background Glitch Removal */
.compliance-logo-wrapper,
.compliance-logo-wrapper img,
.eu-banner img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Remove Border Box around Kapcsolat Link in Nav Menu */
.nav-menu li a.nav-link[href*="kapcsolat"],
.nav-menu li:last-child a.nav-link {
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0.8rem !important;
}

/* --- MOBILE RESPONSIVE FIXES --- */

/* 1. Contact Form 1-column layout on mobile */
@media (max-width: 768px) {
  .form-group-row {
    flex-direction: column !important;
    display: flex !important;
    gap: 1.5rem !important;
  }
}

/* 2. Scroll margin top offset for sticky header navigation */
html {
  scroll-behavior: smooth;
}

section[id],
div[id],
form[id],
.contact-section,
.portfolio-section,
.about-section,
.services-section {
  scroll-margin-top: 100px;
}

/* 3. Portfolio filter buttons mobile wrapping & spacing */
@media (max-width: 768px) {
  .portfolio-filters,
  .filter-container,
  .filter-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 0.8rem !important;
    padding: 0 0.5rem !important;
  }

  .filter-btn {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.9rem !important;
    letter-spacing: 0.15em !important;
    white-space: nowrap !important;
  }
}


/* ==========================================================================
   GLOBAL BUTTON & PORTFOLIO NAVIGATION OVERRIDES (PINK BUTTON GLITCH FIX)
   ========================================================================== */

a.button,
button,
input[type="submit"],
input[type="button"],
.button,
.btn,
a.btn,
.button.alt,
a.button.alt,
button.alt,
input.button.alt,
.portfolio_post_previous a,
.portfolio_post_next a,
.portfolio_next a,
.portfolio_prev a,
.portfolio_next_prev_wrapper a,
.elementor-post-navigation__next a,
.elementor-post-navigation__prev a,
.elementor-post-navigation__link,
.post-navigation a,
.nav-links a,
.nav-previous a,
.nav-next a,
.single-portfolio-navigation a,
.project-navigation a,
.next-post a,
.prev-post a {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text-primary, #FDFDFB) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2)) !important;
  border-radius: var(--radius-sm, 4px) !important;
  padding: 0.75rem 1.6rem !important;
  font-family: var(--font-body, 'Roboto', sans-serif) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

/* Hover State for Buttons & Portfolio Navigation */
a.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.btn:hover,
a.btn:hover,
.button.alt:hover,
a.button.alt:hover,
button.alt:hover,
input.button.alt:hover,
.portfolio_post_previous a:hover,
.portfolio_post_next a:hover,
.portfolio_next a:hover,
.portfolio_prev a:hover,
.portfolio_next_prev_wrapper a:hover,
.elementor-post-navigation__next a:hover,
.elementor-post-navigation__prev a:hover,
.elementor-post-navigation__link:hover,
.post-navigation a:hover,
.nav-links a:hover,
.nav-previous a:hover,
.nav-next a:hover,
.single-portfolio-navigation a:hover,
.project-navigation a:hover,
.next-post a:hover,
.prev-post a:hover {
  background: var(--primary-wood, #C59664) !important;
  background-color: var(--primary-wood, #C59664) !important;
  color: #0A0A0B !important;
  border-color: var(--primary-wood, #C59664) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(197, 150, 100, 0.25) !important;
}

/* Light Theme Overrides for Buttons */
.light-theme a.button,
.light-theme button,
.light-theme input[type="submit"],
.light-theme input[type="button"],
.light-theme .button,
.light-theme .portfolio_post_previous a,
.light-theme .portfolio_post_next a,
.light-theme .portfolio_next a,
.light-theme .portfolio_prev a,
.light-theme .elementor-post-navigation__next a,
.light-theme .elementor-post-navigation__prev a,
.light-theme .post-navigation a,
.light-theme .nav-links a {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #18181B !important;
  border: 1px solid #E4E4E7 !important;
}

.light-theme a.button:hover,
.light-theme button:hover,
.light-theme input[type="submit"]:hover,
.light-theme input[type="button"]:hover,
.light-theme .button:hover,
.light-theme .portfolio_post_previous a:hover,
.light-theme .portfolio_post_next a:hover,
.light-theme .portfolio_next a:hover,
.light-theme .portfolio_prev a:hover,
.light-theme .elementor-post-navigation__next a:hover,
.light-theme .elementor-post-navigation__prev a:hover,
.light-theme .post-navigation a:hover,
.light-theme .nav-links a:hover {
  background: #18181B !important;
  background-color: #18181B !important;
  color: #FFFFFF !important;
  border-color: #18181B !important;
}


/* ==========================================================================
   PARTNER LOGOS & GRID REDESIGN (REMOVE WHITE CARDS & APPLY DRAPP COLOR TINT)
   ========================================================================== */

.partners-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 2.5rem 2rem !important;
  align-items: center !important;
  justify-items: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 3rem 0 !important;
  width: 100% !important;
}

.partner-item,
.light-theme .partner-item {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 1.2rem 1rem !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.partner-item:hover,
.light-theme .partner-item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-4px) !important;
}

/* Warm Drapp / Nautilus Line Tint for Partner Logos & Text */
.partner-logo-img {
  max-height: 55px !important;
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: sepia(0.5) hue-rotate(340deg) saturate(1.2) opacity(0.85) !important;
  transition: all 0.3s ease !important;
}

.light-theme .partner-logo-img {
  filter: sepia(0.5) hue-rotate(340deg) saturate(1.2) opacity(0.85) !important;
}

.partner-item:hover .partner-logo-img,
.light-theme .partner-item:hover .partner-logo-img {
  filter: sepia(0) opacity(1) drop-shadow(0 4px 15px rgba(197, 150, 100, 0.3)) !important;
}

.partner-text-name,
.partner-logo-item {
  color: var(--primary-wood, #C59664) !important;
  transition: all 0.3s ease !important;
}

.partner-item:hover .partner-text-name,
.partner-item:hover .partner-logo-item {
  color: var(--primary-wood-light, #D4A373) !important;
  text-shadow: 0 0 12px rgba(197, 150, 100, 0.3) !important;
}


/* ==========================================================================
   PROJECT IMAGE FULL COVERAGE & ZERO BOTTOM GAP FIX
   ========================================================================== */

.project-card,
.portfolio-grid .project-card,
.elementor-widget-nautilus-portfolio .project-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  background: var(--bg-surface, #121214) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
  border-radius: var(--radius-sm, 4px) !important;
}

.light-theme .project-card,
.light-theme .portfolio-grid .project-card {
  background: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
}

/* Force image wrapper to stretch flush with zero inline white gap at bottom */
.project-image-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 11 !important;
  overflow: hidden !important;
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Stretch image 100% width and height with object-fit cover and vertical-align bottom */
.project-image,
.project-image-wrapper img,
.project-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  vertical-align: bottom !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

/* Compact project details to eliminate empty white space below image */
.project-details,
.portfolio-grid .project-details {
  padding: 1.2rem 1.4rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  flex-grow: 1 !important;
  justify-content: center !important;
  background: transparent !important;
}

.project-badge {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 5 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #18181B !important;
  padding: 0.4rem 1rem !important;
  font-family: var(--font-heading) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.light-theme .project-badge {
  background: #FFFFFF !important;
  color: #18181B !important;
  border: 1px solid #E4E4E7 !important;
}


/* ==========================================================================
   LIGHTBOX & MODAL CONTROLS REDESIGN (FIX BULKY WHITE BOX ARROWS & CLOSE BUTTON)
   ========================================================================== */

/* Universal Reset for Modal / Lightbox / Swiper / Slick Close & Nav Buttons */
.lightbox-close,
.modal-close,
.project-modal-close,
.dialog-close-button,
.elementor-lightbox .dialog-close-button,
.light-theme .lightbox-close,
.light-theme .modal-close,
.light-theme .dialog-close-button {
  position: absolute !important;
  top: 1.2rem !important;
  right: 1.2rem !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(10, 10, 11, 0.75) !important;
  background-color: rgba(10, 10, 11, 0.75) !important;
  color: #FDFDFB !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  font-family: inherit !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100005 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lightbox-close:hover,
.modal-close:hover,
.project-modal-close:hover,
.dialog-close-button:hover,
.light-theme .lightbox-close:hover,
.light-theme .modal-close:hover {
  background: var(--primary-wood, #C59664) !important;
  background-color: var(--primary-wood, #C59664) !important;
  color: #0A0A0B !important;
  border-color: var(--primary-wood, #C59664) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

/* Ensure Close Button has a visible '×' character if text content is missing */
.lightbox-close::before,
.modal-close::before,
.project-modal-close::before {
  content: '×' !important;
  display: block !important;
  font-size: 1.6rem !important;
  line-height: 1 !important;
  color: inherit !important;
}

/* Redesign Prev/Next Arrows: Sleek Floating Dark Glass Circles with Gold Arrows */
.lightbox-prev,
.lightbox-next,
.modal-prev,
.modal-next,
.swiper-button-prev,
.swiper-button-next,
.slick-prev,
.slick-next,
.elementor-swiper-button-prev,
.elementor-swiper-button-next,
.light-theme .lightbox-prev,
.light-theme .lightbox-next,
.light-theme .modal-prev,
.light-theme .modal-next,
.light-theme .swiper-button-prev,
.light-theme .swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  background: rgba(10, 10, 11, 0.7) !important;
  background-color: rgba(10, 10, 11, 0.7) !important;
  color: var(--primary-wood, #C59664) !important;
  border: 1px solid rgba(197, 150, 100, 0.35) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100004 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  font-size: 1.2rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.modal-prev:hover,
.modal-next:hover,
.swiper-button-prev:hover,
.swiper-button-next:hover,
.slick-prev:hover,
.slick-next:hover,
.light-theme .lightbox-prev:hover,
.light-theme .lightbox-next:hover,
.light-theme .modal-prev:hover,
.light-theme .modal-next:hover {
  background: var(--primary-wood, #C59664) !important;
  background-color: var(--primary-wood, #C59664) !important;
  color: #0A0A0B !important;
  border-color: var(--primary-wood, #C59664) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 25px rgba(197, 150, 100, 0.4) !important;
}

/* Force Lightbox Container Backdrop */
.lightbox-container,
.modal-container {
  background-color: var(--bg-surface, #121214) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
  border-radius: var(--radius-sm, 4px) !important;
  overflow: hidden !important;
}

.light-theme .lightbox-container,
.light-theme .modal-container {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
}


/* ==========================================================================
   WORDPRESS ADMIN BAR OFFSET & HEADER SEARCH OVERLAY FIX
   ========================================================================== */

/* Fix Header Navigation Offset when Logged-in WP Admin Bar is Present */
body.admin-bar .header-nav {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .header-nav {
    top: 46px !important;
  }
}

/* Fix Empty White Box Search Toggle & Header Search Form Glitch */
.search-toggle,
.site-search-toggle,
.header-search-toggle,
.elementor-search-form__toggle,
.search-submit,
button.search-submit,
.widget_search input[type="submit"],
.search-form input[type="submit"],
.header-search-btn {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--primary-wood, #C59664) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2)) !important;
  border-radius: var(--radius-sm, 4px) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.light-theme .search-toggle,
.light-theme .site-search-toggle,
.light-theme .header-search-toggle,
.light-theme .elementor-search-form__toggle,
.light-theme .search-submit,
.light-theme button.search-submit,
.light-theme .header-search-btn {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #18181B !important;
  border: 1px solid #E4E4E7 !important;
}

/* Fix Search Overlay Container & Search Popup Cards */
.search-overlay,
.site-search-popup,
.search-modal,
.header-search-modal,
.elementor-search-form__container,
.search-form {
  background: var(--bg-surface, #121214) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
  border-radius: var(--radius-sm, 4px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.light-theme .search-overlay,
.light-theme .site-search-popup,
.light-theme .search-modal,
.light-theme .header-search-modal,
.light-theme .elementor-search-form__container,
.light-theme .search-form {
  background: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Search Input Field Styling */
.search-form input[type="search"],
.search-form input[type="text"],
.elementor-search-form__input {
  background: transparent !important;
  color: var(--text-primary, #FDFDFB) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2)) !important;
  border-radius: 4px !important;
  padding: 0.6rem 1rem !important;
  font-family: var(--font-body, 'Roboto', sans-serif) !important;
}

.light-theme .search-form input[type="search"],
.light-theme .search-form input[type="text"],
.light-theme .elementor-search-form__input {
  color: #18181B !important;
  border: 1px solid #E4E4E7 !important;
}

/* Universal Suppression of Empty White Floating Box Elements in Header */
header button:empty,
.header-nav button:empty,
.site-header button:empty {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES (MOBILE & PHONE OPTIMIZATION)
   ========================================================================== */

/* Prevent Horizontal Overflow / Page Shifting on Mobile */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Mobile Header & Admin Bar Offset */
@media screen and (max-width: 782px) {
  body.admin-bar .header-nav {
    top: 46px !important;
  }
}

/* Mobile Menu Drawer & Toggle Optimization */
@media screen and (max-width: 992px) {
  .header-nav .nav-container {
    padding: 0.8rem 1.5rem !important;
  }
  
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #FDFDFB) !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }
  
  .light-theme .mobile-nav-toggle {
    color: #18181B !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--bg-surface, #121214) !important;
    border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 3rem 2rem !important;
    gap: 1.5rem !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10000 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
  }

  .light-theme .nav-menu {
    background-color: #FFFFFF !important;
    border-left: 1px solid #E4E4E7 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .nav-menu .nav-link {
    font-size: 1.15rem !important;
    color: var(--text-primary, #FDFDFB) !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
  }

  .light-theme .nav-menu .nav-link {
    color: #18181B !important;
  }
}

/* Mobile Portfolio Grid & Cards (Phones & Small Tablets) */
@media screen and (max-width: 768px) {
  .projects-grid,
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
  }

  .project-image-wrapper {
    aspect-ratio: 16 / 10 !important;
  }

  .project-badge {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.8rem !important;
    top: 0.8rem !important;
    left: 0.8rem !important;
  }

  .project-details,
  .portfolio-grid .project-details {
    padding: 1rem 1.2rem !important;
  }

  .project-title {
    font-size: 1.15rem !important;
  }
}

/* Mobile Partner Logos Grid */
@media screen and (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.8rem 1.2rem !important;
    padding: 2rem 0 !important;
  }

  .partner-logo-img {
    max-height: 42px !important;
    max-width: 130px !important;
  }
}

/* Mobile Lightbox / Modal Overlay Touch Adjustments */
@media screen and (max-width: 640px) {
  .lightbox-container,
  .modal-container {
    width: 94vw !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
  }

  .lightbox-content {
    grid-template-columns: 1fr !important;
  }

  .lightbox-info {
    padding: 1.5rem 1.2rem !important;
    gap: 1rem !important;
  }

  .lightbox-title {
    font-size: 1.35rem !important;
  }

  .lightbox-close,
  .modal-close {
    top: 0.8rem !important;
    right: 0.8rem !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.3rem !important;
  }

  .lightbox-prev,
  .modal-prev {
    left: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
  }

  .lightbox-next,
  .modal-next {
    right: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
  }
}


/* ==========================================================================
   THEME TOGGLE BUTTON & SEARCH OVERLAY WHITE BOX ELIMINATION FIX
   ========================================================================== */

/* Universal Reset for Theme Toggle Button - Eliminate White Square Box Completely */
.theme-toggle-btn,
#theme-toggle,
button.theme-toggle-btn,
button#theme-toggle,
.light-theme .theme-toggle-btn,
.light-theme #theme-toggle {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0.8rem 0 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--primary-wood, #C59664) !important;
  border-radius: 0 !important;
}

.theme-toggle-btn svg,
#theme-toggle svg {
  width: 22px !important;
  height: 22px !important;
  stroke: var(--primary-wood, #C59664) !important;
  fill: none !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.light-theme .theme-toggle-btn svg,
.light-theme #theme-toggle svg {
  stroke: #18181B !important;
}

.theme-toggle-btn:hover svg,
#theme-toggle:hover svg {
  transform: rotate(25deg) scale(1.15) !important;
  stroke: var(--primary-wood-light, #D4A373) !important;
}

/* Hide Unwanted Parent Theme Floating Search Overlay Cards in Header */
.header-nav .search-form,
.header-nav .search-toggle,
.header-nav .site-search-toggle,
.header-nav .header-search-btn,
.site-header .search-form,
.site-header .search-toggle,
.site-header .search-modal,
.site-header .elementor-search-form {
  display: none !important;
}


/* ==========================================================================
   NUCLEAR ELIMINATION OF TOP RIGHT HEADER BUTTONS & WHITE BOX OVERLAYS
   ========================================================================== */

/* Completely Suppress Unwanted Floating Search Overlays & Search Buttons */
#wpadminbar + header .search-form,
#wpadminbar + header .search-toggle,
.search-form,
.search-toggle,
.site-search-toggle,
.header-search-toggle,
.header-search-btn,
.elementor-search-form,
.elementor-search-form__toggle,
.elementor-search-form__container,
.search-modal,
.site-search-popup {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force Theme Toggle Button to NEVER render as a White Square Box */
.theme-toggle-btn,
#theme-toggle,
button.theme-toggle-btn,
button#theme-toggle,
.light-theme .theme-toggle-btn,
.light-theme #theme-toggle {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0.8rem 0 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--primary-wood, #C59664) !important;
  border-radius: 0 !important;
}

.theme-toggle-btn svg,
#theme-toggle svg {
  width: 22px !important;
  height: 22px !important;
  stroke: var(--primary-wood, #C59664) !important;
  fill: none !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.light-theme .theme-toggle-btn svg,
.light-theme #theme-toggle svg {
  stroke: #18181B !important;
}

/* Suppress any standalone empty white box elements in header */
header button:empty,
.header-nav button:empty,
.site-header button:empty,
.nav-container button:empty {
  display: none !important;
}


/* ==========================================================================
   PARTNER LOGOS PERFECT CENTERING & DESKTOP HAMBURGER REMOVAL FIX
   ========================================================================== */

/* 1. Hide 3-Line Hamburger Mobile Toggle on Desktop (min-width: 993px) */
@media screen and (min-width: 993px) {
  .mobile-nav-toggle,
  #mobile-toggle,
  button.mobile-nav-toggle,
  button#mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* 2. Show 3-Line Hamburger ONLY on Mobile / Tablet (max-width: 992px) & Ensure 3 Lines Are Bold & Visible */
@media screen and (max-width: 992px) {
  .mobile-nav-toggle,
  #mobile-toggle,
  button.mobile-nav-toggle,
  button#mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* 3-Line Icon SVG Visibility & Crisp Contrast Fix */
  .mobile-nav-toggle svg,
  #mobile-toggle svg,
  button.mobile-nav-toggle svg {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav-toggle svg line,
  #mobile-toggle svg line,
  .mobile-nav-toggle svg path,
  #mobile-toggle svg path {
    stroke: #FDFDFB !important;
    stroke-width: 2.2px !important;
    stroke-linecap: round !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Light theme on light background: make 3 lines dark so they are 100% visible */
  .light-theme .header-nav.scrolled .mobile-nav-toggle svg line,
  .light-theme .header-nav.scrolled #mobile-toggle svg line,
  .light-theme body:not(.home) .mobile-nav-toggle svg line,
  .light-theme body:not(.home) #mobile-toggle svg line {
    stroke: #18181B !important;
  }

  /* Light theme on dark hero video (unscrolled homepage): make 3 lines white */
  .light-theme body.home .header-nav:not(.scrolled) .mobile-nav-toggle svg line,
  .light-theme body.home .header-nav:not(.scrolled) #mobile-toggle svg line {
    stroke: #FDFDFB !important;
  }
}

/* 3. Partner Logos Perfect Centering & Grid Flex Alignment */
.partners-grid,
.partners-container,
.partners-wrapper,
.partners-flex,
.partners-carousel-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2.5rem 3rem !important;
  margin: 0 auto !important;
  padding: 3rem 1.5rem !important;
  max-width: 1200px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
  text-align: center !important;
}

.partner-item,
.partner-logo-item,
.light-theme .partner-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0.5rem 1rem !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

.partner-logo-img {
  max-height: 50px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: sepia(0.5) hue-rotate(340deg) saturate(1.2) opacity(0.85) !important;
  transition: all 0.3s ease !important;

}

.partner-item:hover .partner-logo-img {
  filter: sepia(0) opacity(1) drop-shadow(0 4px 15px rgba(197, 150, 100, 0.3)) !important;
  transform: translateY(-3px) !important;
}

/* 4. Mobile Layout Shift Prevention & Alignment Fine-Tuning (< 768px) */
@media screen and (max-width: 768px) {
  .partners-grid,
  .partners-container {
    gap: 1.8rem 1.5rem !important;
    padding: 2rem 1rem !important;
    justify-content: center !important;
  }

  .partner-logo-img {
    max-height: 40px !important;
    max-width: 125px !important;
  }

  .header-nav .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.8rem 1.2rem !important;
  }
}
