/*
Theme Name: Casa Studio
Theme URI: https://www.instagram.com/casastudio.marcenariafina/
Author: Casa Studio
Description: Tema Elementor Pro da Casa Studio. Importe os JSON em elementor/ (header, footer, home) e o kit em elementor/kit.zip. Galeria e Instagram: arraste os widgets dos plugins nas áreas marcadas.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: casastudio
*/

:root {
  --cs-ink: #1c1c1e;
  --cs-wood: #a56b3d;
  --cs-wood-deep: #8b5a32;
  --cs-gold: #e8a23d;
  --cs-sand: #e8e6e0;
  --cs-stone: #d6d3cc;
  --cs-muted: #4a4a4a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cs-sand);
  color: var(--cs-ink);
  font-family: var(--e-global-typography-text-font-family, inherit);
  -webkit-font-smoothing: antialiased;
}

.cs-site-header,
.elementor-location-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: transparent !important;
  overflow: visible !important;
  transition: transform .4s ease;
}

.cs-site-header.cs-header-hidden,
.elementor-location-header.cs-header-hidden {
  transform: translateY(-140%);
  pointer-events: none;
}

.cs-site-header .e-con,
.cs-header-bar,
.cs-header-bar .e-con,
.cs-header-bar .elementor-element,
.cs-header-bar .elementor-widget-wrap,
.cs-header-bar .elementor-widget-container {
  overflow: visible !important;
}

.cs-header-bar {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 60px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .06);
  position: relative;
  z-index: 1001;
}

.cs-header-bar .elementor-widget-shortcode,
.cs-header-bar .elementor-shortcode {
  width: 100%;
}

.cs-header-bar .cs-logo img,
.cs-header-bar .elementor-widget-image img {
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.cs-header-nav,
.cs-header-nav a,
.cs-nav-mobile,
.cs-nav-mobile a {
  font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit));
}

.cs-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 16px;
}

.cs-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cs-nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: rgba(28, 28, 30, .65);
  text-decoration: none;
  transition: color .3s;
}

.cs-nav-link:hover { color: #a56b3d; }

.cs-nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #a56b3d;
  transition: width .3s ease, left .3s ease;
}

.cs-nav-link:hover::after { width: 100%; left: 0; }

.cs-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff !important;
  background: #a56b3d;
  border-radius: 30px;
  padding: 10px 22px;
  transition: background .2s;
}

.cs-nav-cta:hover {
  background: #8b5a32;
  color: #fff !important;
}

.cs-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cs-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a56b3d;
  transition: transform .3s, opacity .3s;
}

.cs-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.cs-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.cs-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.cs-nav-mobile {
  display: none;
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 1002;
  background: rgba(28, 28, 30, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
  border-radius: 16px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .3);
}

.cs-nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cs-nav-mobile a {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
}

.cs-nav-mobile a:hover { color: #e8a23d; }

.cs-nav-mobile .cs-nav-cta {
  margin-top: 8px;
  font-size: 13px;
  padding: 14px 36px;
  letter-spacing: .8px;
}

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

.cs-fallback-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 32px 0;
  display: flex;
  justify-content: center;
}

.cs-fallback-header .cs-header-bar {
  width: 100%;
  max-width: 1100px;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cs-hero {
  background-image: url("assets/images/hero/showroom.jpg");
  background-size: cover;
  background-position: center;
}

.cs-video {
  background-image: url("assets/images/video/cover.jpg");
  background-size: cover;
  background-position: center;
}

.cs-testimonials {
  background-image: url("assets/images/testimonials/fundo.jpg");
  background-size: cover;
  background-position: center;
}

.cs-slot {
  min-height: 280px;
  border: 1px dashed rgba(165, 107, 61, .45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cs-muted);
  padding: 32px 20px;
  background: rgba(255, 255, 255, .35);
}

.cs-slot--gallery { min-height: 420px; }
.cs-slot--instagram { min-height: 240px; }

.cs-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
  text-decoration: none;
}

.cs-whatsapp:hover { transform: scale(1.06); }

.cs-whatsapp svg { display: block; }

@media (max-width: 1024px) {
  .cs-header-bar { border-radius: 40px; }

  .cs-site-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .cs-fallback-header { padding: 12px 16px 0; }

  .cs-header-bar .cs-logo img,
  .cs-header-bar .elementor-widget-image img {
    height: 56px;
    max-width: 120px;
  }

  .cs-nav-desktop { display: none; }

  .cs-menu-toggle { display: flex; }

  .cs-nav-mobile { display: flex; }

  .cs-whatsapp {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }
}
