/* Edelstein Custom Styles */

:root {
  --color-primary: #BD8040;
  --color-primary-dark: #a5703a;
  --color-neutral-900: #1a1a1a;
  --color-neutral-600: #555;
  --color-neutral-300: #ddd;
  --color-bg-light: #f9f9f9;
  --sidebar-bg: #2a2c34;
  --sidebar-width-expanded: 240px;
  --sidebar-width-collapsed: 80px;
}

/* ========== SIDEBAR ========== */

/* Desktop Sidebar */
.sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width-collapsed);
  background-color: var(--sidebar-bg);
  flex-direction: column;
  z-index: 50;
  transition: width 0.3s ease;
}

@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }

  .site-main {
    margin-left: var(--sidebar-width-collapsed);
  }

  .sidebar.expanded {
    width: var(--sidebar-width-expanded);
  }

  .sidebar.expanded ~ .site-main {
    margin-left: var(--sidebar-width-collapsed);
  }
}

.sidebar-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 0;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
  gap: 4px;
}

.sidebar-logo:hover {
  background-color: var(--color-primary-dark);
}

.logo-letter {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.7em;
  font-family: 'Montserrat', sans-serif;
  height: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  gap: 8px;
  overflow-y: auto;
}

.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
  padding-top: 16px;
  padding-bottom: 16px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.sidebar-nav-item:hover {
  color: white;
}

.sidebar-nav-item svg {
  flex-shrink: 0;
}

.nav-label {
  margin-left: 16px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar.expanded .nav-label {
  opacity: 1;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.sidebar-nav-item:hover::before {
  transform: scaleY(1);
}

.sidebar-footer {
  padding: 16px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.language-dropdown {
  position: relative;
}

.language-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: none;
  padding: 4px 8px;
  border-radius: 4px;
  width: 100%;
  position: relative;
  gap: 8px;
}

.language-dropdown-toggle:hover {
  color: white;
}

.language-current {
  min-width: 32px;
  text-align: center;
}

.language-chevron {
  position: absolute;
  right: 8px;
  transition: all 0.3s ease;
  opacity: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar.expanded .language-chevron {
  opacity: 1;
}

.language-dropdown-toggle[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 8px;
  transform: translateY(10px);
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 30px 0;
  margin-bottom: 0;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

@media (max-height: 720px) {
  .language-dropdown-menu {
    flex-direction: row;
    top: auto;
    bottom: 50px;
    gap: 0;
    padding: 10px 0 0 0;
  }
}

.language-dropdown-menu.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-dropdown-item {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s ease;
  padding: 6px 0;
  text-align: left;
  border-radius: 0;
  border: none;
  display: block;
  flex-shrink: 0;
  width: 100%;
  line-height: 1.2;
}

.language-dropdown-item:hover {
  color: white;
  background-color: transparent;
  border-color: transparent;
}

.lang-code {
  display: block;
}

.mobile-language-switcher {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.mobile-language-link {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.mobile-language-link:hover {
  color: white;
}

.mobile-language-link.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ========== MOBILE MENU ========== */

@keyframes slideInMenu {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutMenu {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1201;
  background: rgba(220, 220, 220, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .mobile-header {
    display: block;
  }
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 1203;
  background: none;
  border: none !important;
  border-top: none !important;
  color: white;
  cursor: pointer;
  padding: 8px;
  width: 48px;
  height: 48px;
}

.mobile-menu-toggle .menu-icon,
.mobile-menu-toggle .close-icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .menu-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.mobile-menu-toggle .close-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.mobile-menu-toggle.open .menu-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.mobile-menu-toggle.open .close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  z-index: 1202;
  background-color: var(--sidebar-bg);
  border: none !important;
  border-top: none !important;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 0;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  gap: 8px;
  border: none !important;
  border-top: none !important;
}

.mobile-nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: center;
}

.mobile-nav-item:hover {
  color: white;
}

.mobile-nav-item span {
  font-size: 16px;
  letter-spacing: 0.1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

/* ========== BODY LAYOUT ========== */

html {
  background-color: #BD8040;
  margin: 0;
  padding: 0;
  border: none;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #BD8040;
  margin: 0;
  padding: 0;
  border: none;
}

.site-main {
  flex: 1;
}

@media (max-width: 767px) {
  .site-main {
    margin-top: 72px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #BD8040;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: none;
}

.site-header.scrolled {
  background: #BD8040;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-branding {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.site-branding .custom-logo {
  height: 60px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-neutral-900);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu .current-menu-item > a {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-neutral-900);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  border-top: none !important;
  margin-top: 0;
  padding-top: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 10;
}

/* Hero Background Animation */
.hero-section {
  background-color: #BD8040 !important;
}

.hero-bg-animate {
  z-index: 3 !important;
  clip-path: inset(0 100% 0 0);
}

.hero-bg-animate.loaded {
  animation: slideInFromLeft 2s ease-out forwards;
}

.hero-bg-animate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

@keyframes slideInFromLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

.scroll-indicator-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  animation: scroll-bounce 2s infinite;
}

.scroll-indicator-dot::after {
  content: '';
  width: 4px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* Services Section */
.services-section {
  background: white;
}

/* Materials Grid */
.materials-section {
  background-color: var(--color-bg-light);
}

.material-card {
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-8px);
}

/* Footer */
.site-footer {
  background-color: var(--color-neutral-900);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-widgets {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets .widget {
  margin-bottom: 0;
}

.footer-widgets .widget-title {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-widgets a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-widgets a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

/* Footer takes full width and stays in place */
.site-footer {
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer .container {
    max-width: none;
    margin-left: var(--sidebar-width-collapsed);
    margin-right: 0;
    padding: 0 2rem;
  }
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--color-neutral-900);
}

.post-title a:hover {
  color: var(--color-primary);
}

.post-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.post-excerpt {
  color: var(--color-neutral-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--color-primary-dark);
  gap: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: 4px;
  min-width: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers a {
  color: var(--color-neutral-900);
}

.page-numbers a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-numbers .current {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.page-numbers .dots {
  border: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 128, 64, 0.3);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}



.no-posts {
  text-align: center;
  padding: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    width: 100%;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-menu {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer brand (logo, name, description) centered in its column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.footer-brand .footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-brand .brand-name {
  letter-spacing: 0.9em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand .brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
  color: #fff;
  max-width: 26rem;
}

@media (min-width: 768px) {
  /* ensure the brand block is top-aligned but horizontally centered within its column */
  .site-footer .container > div > .footer-brand {
    justify-self: center;
    align-self: start;
  }
}

/* Make the left (brand) column a bit wider so Quick Links shifts right */
@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr; /* make brand column wider to push quick links further right */
  }
}

/* Base footer grid layout (mobile first) */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .site-footer .footer-grid {
    gap: 4rem;
    grid-template-columns: 1.8fr 1fr 1fr;
  }
}

/* Footer bottom row (copyright left, socials right) */
.site-footer .footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #fff;
  gap: 1rem;
}

.site-footer .footer-bottom-row .footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
}

/* Ensure copyright container and socials are vertically aligned */
.site-footer .footer-copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer .footer-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

@media (min-width: 768px) {
  /* keep the footer bottom on one line on desktop and ensure socials sit at the right */
  .site-footer .footer-bottom-row {
    flex-wrap: nowrap;
  }

  .site-footer .footer-socials {
    margin-left: auto;
  }

  .site-footer .footer-copyright {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1rem;
  }
}

.site-footer .footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0; /* remove rounded corners */
  color: #fff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.site-footer .footer-social-link:hover {
  border-color: #fff;
  background-color: rgba(255,255,255,0.06);
}

/* Keep SVG icons the same size inside smaller boxes */
.site-footer .footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* make sure SVGs render as block so centering is consistent */
.site-footer .footer-social-link svg {
  display: block;
}

/* Force exact vertical alignment between copyright text and social icons */
.site-footer .footer-bottom-row {
  align-items: center; /* ensure row centers children */
}

@media (max-width: 472px) {
  .site-footer .footer-bottom-row {
    align-items: flex-start !important;
  }
}

.site-footer .footer-copyright p {
  line-height: 32px; /* match social box height so baselines align */
}

.site-footer .footer-socials {
  display: flex;
  align-items: center; /* ensure icons align vertically */
}

/* Force footer bottom row to occupy full width of its container and keep items on one line */
.site-footer .footer-bottom-row {
  width: 100%;
}

.site-footer .footer-bottom-row > * {
  flex: 0 0 auto; /* prevent children from stretching */
}

@media (min-width: 768px) {
  .site-footer .footer-bottom-row {
    flex-wrap: nowrap; /* keep on single line */
  }

  .site-footer .footer-copyright {
    order: 1;
  }

  .site-footer .footer-socials {
    order: 2;
    margin-left: auto; /* push socials to the far right */
  }
}

/* Inner wrapper that contains both copyright and socials in one flex row */
.site-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* Ensure both children stay on the same horizontal line and don't wrap */
.site-footer .footer-bottom-inner > * {
  flex: 0 0 auto;
}

/* Mobile layout at 473px breakpoint - stack copyright and socials vertically */
@media (max-width: 472px) {
  .site-footer .footer-bottom-row {
    flex-direction: column;
  }

  .site-footer .footer-bottom-inner {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer .footer-copyright {
    text-align: left;
  }

  .site-footer .footer-socials-desktop {
    display: none !important;
  }

  .site-footer .footer-socials-mobile {
    display: flex !important;
    width: 100%;
    margin-top: 1rem;
  }
}

/* Desktop layout - show desktop socials and hide mobile ones */
@media (min-width: 473px) {
  .site-footer .footer-socials-desktop {
    display: flex !important;
  }

  .site-footer .footer-socials-mobile {
    display: none !important;
  }
}

/* Align all footer columns to the top so Contact matches Quick Links vertically */
@media (min-width: 768px) {
  .site-footer .container {
    align-items: start;
  }

  /* fallback in case inline grid styles override alignment */
  .site-footer .container > div {
    align-self: start;
  }
}

/* Make Quick Links and Contact stacked: heading at top (no extra top margin) then items below.
   Leave the Edelstein brand/container unchanged. */
.site-footer h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-footer .container > div:nth-child(2),
.site-footer .container > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .container > div:nth-child(2) ul,
.site-footer .container > div:nth-child(3) ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .container > div:nth-child(2) li,
.site-footer .container > div:nth-child(3) li {
  margin-bottom: 0.8rem;
}

/* Comments */
.comments-area {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: 8px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.comment-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 4px;
  border-left: 4px solid var(--color-primary);
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-date {
  font-size: 0.85rem;
  color: #999;
}

.comment-body {
  margin: 1rem 0;
  color: var(--color-neutral-600);
  line-height: 1.6;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(189, 128, 64, 0.1);
}

label {
  display: block;
  font-weight: 500;
  color: var(--color-neutral-900);
}

.file-input-label {
  color: #e0e0e0;
  font-size: 0.95rem;
  display: block;
  margin: 0 0 0.5rem 0;
  transform: none;
}

/* Blockquotes */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  font-style: italic;
  color: var(--color-neutral-600);
}

/* Code */
code {
  background: var(--color-bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

pre {
  background: var(--color-bg-light);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-300);
}

th {
  background: var(--color-bg-light);
  font-weight: 600;
}

tr:hover {
  background: rgba(189, 128, 64, 0.05);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.contact-section {
  background-image: url(../img/contact-bg.webp) !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #f9f9f9 !important;
  position: relative;
}

@media (max-width: 767px) {
  .contact-section {
    background-attachment: scroll;
    background-size: cover;
  }
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-page #contact.contact-section {
  background-color: transparent !important;
  background-image: none !important;
  position: relative;
}

.contact-page #contact.contact-section::before {
  display: none !important;
}

.contact-page #contact.contact-section::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 600px;
  background-image: url(../img/contact-bg.webp);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  transform: scaleY(-1);
  pointer-events: none;
  display: none;
}

@media (max-width: 767px) {
  .contact-page #contact.contact-section::after {
    display: block;
    position: fixed;
    top: auto;
    bottom: 0;
    height: 100%;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
  }
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.wpcf7-form {
  background-color: rgba(42, 44, 52, 0.93);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  color: #fff;
  border-radius: 12px;

}



.wpcf7 label {
  display: block;
  margin-bottom: -0.95rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #e0e0e0;
  letter-spacing: 0.05em;
}

.wpcf7 input[type="text"], 
.wpcf7 input[type="email"], 
.wpcf7 input[type="file"], 
.wpcf7 textarea {
    width: 100%;
    padding: 0.5rem;
    background-color: #404040;
    color: #fff;
    border: none;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="file"]::placeholder,
.wpcf7 textarea::placeholder {
  color: #888;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="file"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #BD8040;
  background-color: #454545;
}

.wpcf7 textarea {
  resize: none;
  height: 100px;
  overflow-y: auto;
  line-height: 1.4;
}

.wpcf7 textarea.auto-expand {
  height: auto;
}

.wpcf7 input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
  color: #888;
}

.wpcf7 input[type="file"]::file-selector-button {
  background: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 15C3 17.8284 3 19.2426 3.87868 20.1213C4.75736 21 6.17157 21 9 21H15C17.8284 21 19.2426 21 20.1213 20.1213C21 19.2426 21 17.8284 21 15" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 16V3M12 3L16 7.375M12 3L8 7.375" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
  background-size: contain;
  background-color: transparent;
  color: transparent;
  border: none;
  padding: 0 0.5rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  width: 16px;
  height: 16px;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
  opacity: 0.8;
}



.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 0.6rem;
  background-color: #BD8040;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
   margin-top: 0.75rem;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #a5703a;
  transform: translateY(-2px);
}

.wpcf7-form span.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 form .wpcf7-response-output {
  border: none !important;
  background-color: transparent !important;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: 400;
  font-size: 0.9rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  display: block !important;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.wpcf7 form.submitting .wpcf7-response-output {
  display: none !important;
}

.wpcf7 input[type="submit"].wpcf7-hidden-in-message {
  display: none !important;
}

.wpcf7 form.submitting input[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

.wpcf7 .required::after {
  content: ' *';
  color: #BD8040;
}

@media (max-width: 768px) {
  .site-footer > .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .site-footer > .container > div:last-child {
    flex-direction: column !important;
    gap: 1.5rem;
    align-items: flex-start !important;
  }
}

/* ========== COMPLETED WORKS PAGE ========== */

.page-completed-works .completed-works-hero {
  position: relative;
  text-align: left;
}

.page-completed-works .completed-works-hero a {
  font-size: 0.95rem;
  font-weight: 500;
}

.page-completed-works .completed-works-hero h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.page-completed-works .completed-works-hero p {
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
}



.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.gallery-pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-pagination button:hover {
  background-color: #f5f5f5;
}

.gallery-pagination span {
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.gallery-pagination span.active {
  background-color: #BD8040;
  color: white;
}

.gallery-pagination span:not(.active):hover {
  background-color: #f5f5f5;
}

.gallery-pagination .page-number {
  padding: 8px 15px;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.gallery-pagination .page-number.active {
  background-color: #BD8040;
  color: white;
}

.gallery-pagination .page-number:not(.active):hover {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .page-completed-works .completed-works-hero {
    padding: 40px 20px !important;
  }

  .page-completed-works .completed-works-hero h1 {
    font-size: 2rem;
  }

  .page-completed-works .completed-works-hero p {
    font-size: 1rem;
  }

  .completed-works-gallery {
    padding: 40px 20px !important;
  }

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

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

.section-content-fade {
  opacity: 0;
}

.section-content-fade.visible {
  animation: fadeInContent 0.8s ease-in-out forwards;
}

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

.treatment-card.fade-in-card {
  opacity: 0;
}

.treatment-card.fade-in-card.visible {
  animation: fadeInCard 0.8s ease-in-out forwards;
}

.material-item.fade-in-item,
.sink-item.fade-in-item {
  opacity: 0;
}

.material-item.fade-in-item.visible,
.sink-item.fade-in-item.visible {
  animation: fadeInCard 0.8s ease-in-out forwards;
}

.material-item:hover {
  transform: translateY(-10px);
}

@media (max-width: 767px) {
  .section-content-fade.visible {
    animation: none;
    opacity: 1;
  }

  .treatment-card.fade-in-card.visible {
    animation: none;
    opacity: 1;
  }

  .material-item.fade-in-item.visible,
  .sink-item.fade-in-item.visible {
    animation: none;
    opacity: 1;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}
