/* =============================================
   JF MÓVEIS PLANEJADOS — DESIGN SYSTEM OI
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
   /* Colors */
   --gold: #C5A55A;
   --gold-light: #D4C08A;
   --gold-rgb: 197, 165, 90;
   --green: #3D4A3A;
   --green-dark: #2C3628;
   --green-rgb: 61, 74, 58;
   --white: #FFFFFF;
   --cream: #F5F5F0;
   --gray-100: #EDEDEA;
   --gray-200: #E0E0DB;
   --gray-500: #6E6E66;
   --black: #1A1A1A;
   --error: #E53E3E;

   /* Typography */
   --font-heading: 'Playfair Display', serif;
   --font-body: 'Inter', sans-serif;
   --text-xs: 0.75rem;
   --text-sm: 0.85rem;
   --text-base: 0.95rem;
   --text-lg: 1.05rem;
   --h4: 1.25rem;
   --h3: 1.5rem;
   --h2: 2rem;
   --h1: 2.5rem;

   /* Spacing & Layout */
   --space-sm: 1rem;
   --space-md: 1.5rem;
   --space-lg: 2.5rem;
   --space-xl: 4rem;
   --radius-md: 8px;
   --radius-lg: 16px;
   --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
   --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 14px;
}

body {
   font-family: var(--font-body);
   font-size: var(--text-base);
   line-height: 1.7;
   color: var(--black);
   background: var(--white);
   overflow-x: hidden;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
   border-radius: var(--radius-md);
}

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

button {
   cursor: pointer;
   font-family: inherit;
   border: none;
   background: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
   font-family: var(--font-heading);
   font-weight: 600;
   color: var(--black);
   line-height: 1.2;
}

.subtitle {
   font-family: var(--font-body);
   font-size: var(--text-sm);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.15em;
   color: var(--gold);
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-bottom: var(--space-sm);
}

.subtitle::before {
   content: '';
   width: 2rem;
   height: 1px;
   background: var(--gold);
}

.text-gold {
   color: var(--gold);
}

/* Layout */
.container {
   max-width: 1100px;
   margin: 0 auto;
   padding: 0 1.5rem;
}

section {
   padding: var(--space-xl) 0;
}

.section--cream {
   background: var(--cream);
}

.section--dark {
   background: var(--green);
   color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
   color: var(--white);
}

.section-header {
   margin-bottom: var(--space-xl);
}

.section-header.center {
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
}

/* Grid Helper */
.grid-2-cols {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.9rem 2.25rem;
   font-weight: 600;
   font-size: var(--text-sm);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   border-radius: var(--radius-md);
   transition: var(--transition);
   gap: 0.5rem;
}

.btn--primary {
   background: var(--gold);
   color: var(--white);
   border: none;
}

.btn--primary:hover {
   background: #A8893E;
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(197, 165, 90, 0.4);
}

/* Animations */
.fade-in-section {
   opacity: 0;
   transform: translateY(30px);
   transition: opacity 0.8s ease-out, transform 0.8s ease-out;
   will-change: opacity, transform;
}

.fade-in-section.is-visible {
   opacity: 1;
   transform: none;
}

/* =========================================
   HEADER
   ========================================= */
.header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   transition: var(--transition);
   padding: 1rem 0;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(10px);
   box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1100px;
   margin: 0 auto;
   padding: 0 2rem;
}

.logo {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.logo-css {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.logo-oval {
   width: 45px;
   height: 60px;
   border: 2px double var(--gold);
   border-radius: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--font-heading);
   font-size: 1.8rem;
   color: var(--gold);
}

.logo-text-wrap {
   display: flex;
   flex-direction: column;
}

.logo-text {
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 0.85rem;
   color: var(--black);
   line-height: 1;
}

.logo-sub {
   font-family: var(--font-body);
   font-weight: 400;
   font-size: 0.65rem;
   letter-spacing: 0.15em;
   color: var(--gray-500);
}

.site-logo {
   max-height: 55px;
   object-fit: contain;
   border-radius: 0;
}

.nav {
   display: flex;
   gap: 1.5rem;
   align-items: center;
}

.nav-link {
   font-size: var(--text-sm);
   font-weight: 500;
   color: var(--black);
   position: relative;
}

.nav-link::after {
   content: '';
   position: absolute;
   bottom: -4px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--gold);
   transition: width 0.3s;
}

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

.nav-link:hover::after,
.nav-link.active-link::after {
   width: 100%;
}

/* Mobile Menu */
.menu-toggle {
   display: none;
   flex-direction: column;
   gap: 5px;
   cursor: pointer;
   padding: 5px;
}

.menu-toggle span {
   width: 25px;
   height: 2px;
   background: var(--black);
   transition: var(--transition);
}

@media(max-width: 900px) {
   .nav {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      flex-direction: column;
      justify-content: flex-start;
      padding: 3rem 2rem;
      box-shadow: var(--shadow);
      transition: left 0.4s ease;
      z-index: 999;
   }

   .nav.active {
      left: 0;
   }

   .menu-toggle {
      display: flex;
   }

   .nav-link {
      font-size: 1.2rem;
   }
}

/* =========================================
   CUSTOM HERO
   ========================================= */
.hero-custom {
   position: relative;
   width: 100%;
   height: 100vh;
   min-height: 600px;
   background: #111;
   overflow: hidden;
}

.hero-bg-img {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   background-image: url('../assets/img/hero-kitchen-fhd.png');
   background-size: cover;
   background-position: center right;
   z-index: 1;
}

.hero-curved-overlay {
   position: absolute;
   top: 0;
   bottom: 0;
   left: 0;
   width: 55%;
   background: linear-gradient(135deg, rgba(20, 40, 29, 0.98) 0%, rgba(20, 40, 29, 0.85) 100%);
   z-index: 2;
   border-right: 2px solid rgba(197, 165, 90, 0.5);
   border-radius: 0 45% 45% 0 / 0 50% 50% 0;
   display: flex;
   align-items: center;
   padding: 0 5%;
   backdrop-filter: blur(3px);
}

.hero-content-box {
   max-width: 480px;
   margin-left: 8%;
   margin-top: 90px;
}

.hero-logo {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   margin-bottom: 2rem;
}

.hero-brand-name {
   color: var(--gold);
   letter-spacing: 4px;
   font-size: 0.85rem;
   margin-top: 0.8rem;
}

.hero-title {
   color: white;
   font-size: 3.2rem;
   font-family: var(--font-heading);
   line-height: 1.1;
   margin-bottom: 1.2rem;
}

.hero-subtitle {
   color: rgba(255, 255, 255, 0.8);
   font-size: 1.05rem;
   line-height: 1.6;
   margin-bottom: 2.5rem;
}

.hero-btn {
   display: inline-flex;
   align-items: center;
   gap: 0.8rem;
   padding: 1rem 2rem;
   border: 1px solid var(--gold);
   color: var(--gold);
   font-size: 0.85rem;
   letter-spacing: 1px;
   font-weight: 600;
   text-transform: uppercase;
   transition: all 0.3s;
   border-radius: var(--radius-md);
}

.hero-btn:hover {
   background: var(--gold);
   color: #14281D;
   box-shadow: 0 4px 20px rgba(197, 165, 90, 0.3);
}

/* =========================================
   SIDE CARDS (Services & Blog)
   ========================================= */
.side-card {
   display: flex;
   align-items: center;
   background: var(--white);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow);
   overflow: hidden;
   transition: var(--transition);
   cursor: pointer;
   border: 1px solid transparent;
   height: 100%;
}

.side-card:hover {
   transform: translateY(-5px);
   box-shadow: var(--shadow-hover);
   border-color: rgba(197, 165, 90, 0.3);
}

.side-card-img {
   width: 35%;
   height: 100%;
   min-height: 220px;
   flex-shrink: 0;
   overflow: hidden;
   position: relative;
}

.side-card-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 0;
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-card:hover .side-card-img img {
   transform: scale(1.08);
}

.side-card-body {
   width: 65%;
   padding: var(--space-md) var(--space-lg);
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.side-card-title {
   font-size: var(--h4);
   margin-bottom: 0.5rem;
   color: var(--black);
   transition: color 0.3s;
}

.side-card:hover .side-card-title {
   color: var(--gold);
}

.side-card-text {
   font-size: var(--text-sm);
   color: var(--gray-500);
   line-height: 1.6;
   margin-bottom: 1rem;
}

.side-card-link {
   font-size: var(--text-sm);
   font-weight: 600;
   color: var(--gold);
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-top: auto;
}

.side-card-link::after {
   content: '→';
   transition: transform 0.3s;
}

.side-card:hover .side-card-link::after {
   transform: translateX(5px);
}

/* =========================================
   PORTFOLIO GRID
   ========================================= */
.portfolio-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.5rem;
}

.portfolio-item {
   position: relative;
   border-radius: var(--radius-lg);
   overflow: hidden;
   cursor: pointer;
   aspect-ratio: 4/3;
   box-shadow: var(--shadow);
}

.portfolio-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
   transform: scale(1.1);
}

.portfolio-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
   display: flex;
   align-items: flex-end;
   padding: 1.5rem;
   opacity: 0;
   transition: opacity 0.4s;
}

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

.portfolio-overlay h3 {
   color: white;
   transform: translateY(20px);
   transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-overlay h3 {
   transform: translateY(0);
}

/* =========================================
   CONTATO (Form + Mapa)
   ========================================= */
.contato-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 3rem;
}

.contato-form-box,
.contato-info-box {
   background: var(--white);
   padding: 2.5rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow);
   border: 1px solid var(--gray-100);
}

.contato-form-box h3,
.contato-info-box h3 {
   font-size: var(--h3);
   margin-bottom: 0.5rem;
}

.form-group {
   margin-bottom: 1.2rem;
   position: relative;
}

.form-input {
   width: 100%;
   padding: 1rem 1.2rem;
   border: 1px solid var(--gray-200);
   border-radius: var(--radius-md);
   font-family: inherit;
   font-size: var(--text-sm);
   background: var(--cream);
   transition: var(--transition);
   color: var(--black);
}

.form-input:focus {
   outline: none;
   border-color: var(--gold);
   background: var(--white);
   box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.1);
}

.form-input.input-error {
   border-color: var(--error);
   background: #FEF2F2;
}

.error-msg {
   color: var(--error);
   font-size: 0.75rem;
   margin-top: 0.3rem;
   display: none;
}

textarea.form-input {
   min-height: 120px;
   resize: vertical;
}

select.form-input {
   appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E6E66' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 1.2rem center;
}

.mapa-container {
   margin-bottom: 1.5rem;
   border-radius: var(--radius-md);
   overflow: hidden;
   box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.contato-detalhes {
   display: flex;
   flex-direction: column;
   gap: 1.2rem;
}

.contato-item strong {
   font-size: var(--text-sm);
   color: var(--black);
   display: block;
   margin-bottom: 0.2rem;
}

.contato-item p {
   font-size: var(--text-sm);
   color: var(--gray-500);
   line-height: 1.5;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
   background: var(--black);
   color: rgba(255, 255, 255, 0.7);
   padding: 5rem 0 2rem;
   position: relative;
}

.footer-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 3rem;
}

.footer-title {
   color: var(--white);
   margin-bottom: 1.5rem;
   font-family: var(--font-heading);
   font-size: var(--h4);
}

.footer a {
   color: inherit;
   transition: var(--transition);
}

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

.social-icons {
   display: flex;
   gap: 1rem;
   margin-top: 1.5rem;
}

.social-icons a {
   width: 42px;
   height: 42px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   color: var(--white);
   transition: all 0.3s;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
   background: var(--gold);
   border-color: var(--gold);
   transform: translateY(-3px);
}

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
   position: fixed;
   bottom: 25px;
   right: 25px;
   width: 60px;
   height: 60px;
   background: #25D366;
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
   z-index: 1000;
   animation: pulse 2s infinite;
   transition: transform 0.3s;
}

.whatsapp-float:hover {
   transform: scale(1.1);
}

.whatsapp-float svg {
   width: 32px;
   height: 32px;
}

@keyframes pulse {
   0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
   }

   70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
   }
}

/* =========================================
   INNER PAGES (Side-by-side layout & Utils)
   ========================================= */
.breadcrumb {
   font-size: var(--text-sm);
   color: var(--gray-500);
   margin-bottom: 2rem;
   display: flex;
   gap: 0.5rem;
   align-items: center;
}

.breadcrumb a {
   color: var(--black);
   font-weight: 500;
   transition: color 0.2s;
}

.breadcrumb a:hover {
   color: var(--gold);
   text-decoration: underline;
}

.inner-page-layout {
   display: flex;
   gap: 4rem;
   align-items: center;
}

.inner-page-img {
   width: 45%;
}

.inner-page-img img {
   width: 100%;
   border-radius: var(--radius-lg);
   object-fit: cover;
   box-shadow: var(--shadow);
}

.inner-page-text {
   width: 55%;
}

.inner-page-text h1 {
   font-size: var(--h1);
   margin-bottom: 1.5rem;
}

.inner-page-text p {
   color: var(--gray-500);
   line-height: 1.8;
   margin-bottom: 1.2rem;
   font-size: 1.05rem;
}

.inner-page-text ul {
   color: var(--gray-500);
   line-height: 1.8;
   margin-bottom: 1.5rem;
   padding-left: 1.2rem;
   font-size: 1.05rem;
}

.inner-page-text li {
   margin-bottom: 0.5rem;
}

.inner-page-text h3 {
   margin-top: 2rem;
   margin-bottom: 1rem;
   font-size: var(--h3);
}

.cta-section {
   padding: 4rem 0;
}

.cta-section h2 {
   font-size: var(--h2);
   margin-bottom: 0.5rem;
}

/* =========================================
   MEDIA QUERIES (Responsividade)
   ========================================= */
@media (max-width: 1024px) {
   .hero-title {
      font-size: 2.8rem;
   }

   .inner-page-layout {
      gap: 2.5rem;
   }
}

@media (max-width: 900px) {
   .hero-curved-overlay {
      width: 100%;
      border-radius: 0;
      border-right: none;
      background: rgba(20, 40, 29, 0.85);
      backdrop-filter: none;
      padding-top: 80px;
   }

   .hero-content-box {
      margin-left: 0;
      margin-top: 30px;
   }

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

   .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .side-card {
      flex-direction: column;
      height: auto;
   }

   .side-card-img {
      width: 100%;
      height: 250px;
   }

   .side-card-body {
      width: 100%;
      padding: 2rem;
   }
}

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

   .footer-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
   }

   .footer-grid .logo {
      justify-content: center;
   }

   .social-icons {
      justify-content: center;
   }

   .inner-page-layout {
      flex-direction: column;
      align-items: flex-start;
   }

   .inner-page-img,
   .inner-page-text {
      width: 100%;
   }

   .inner-page-text h1 {
      font-size: var(--h2);
   }
}

@media (max-width: 480px) {
   :root {
      --space-xl: 3rem;
   }

   .hero-title {
      font-size: 2.2rem;
   }

   .hero-subtitle {
      font-size: 0.95rem;
   }

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

   .side-card-img {
      height: 200px;
   }

   .contato-form-box,
   .contato-info-box {
      padding: 1.5rem;
   }
}
