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

@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;

  /* 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; }
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; }

/* 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); }

/* =========================================
   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); }
.nav-link:hover { color: var(--gold); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.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%; background: var(--white); flex-direction: column; padding: 2rem; box-shadow: var(--shadow); transition: var(--transition); }
  .nav.active { left: 0; }
  .menu-toggle { display: flex; }
}

/* =========================================
   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.png'); background-size: cover; background-position: center right; z-index: 1; }
.hero-curved-overlay { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: #14281D; z-index: 2; border-right: 2px solid var(--gold); border-radius: 0 45% 45% 0 / 0 50% 50% 0; display: flex; align-items: center; padding: 0 5%; }
.hero-content-box { max-width: 480px; margin-left: 10%; }
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 2.5rem; }
.hero-brand-name { color: var(--gold); letter-spacing: 4px; font-size: 0.85rem; margin-top: 0.8rem; }
.hero-title { color: white; font-size: 2.8rem; font-family: var(--font-heading); line-height: 1.1; margin-bottom: 1.2rem; }
.hero-subtitle { color: #ccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 2.5rem; }
.hero-btn { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.8rem; border: 1px solid var(--gold); color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; text-decoration: none; transition: all 0.3s; }
.hero-btn:hover { background: var(--gold); color: #14281D; }

/* =========================================
   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); margin-bottom: var(--space-md); cursor: pointer; border: 1px solid var(--gray-100); }
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.side-card-img { width: 35%; height: 100%; min-height: 180px; flex-shrink: 0; overflow: hidden; position: relative; }
.side-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.side-card:hover .side-card-img img { transform: scale(1.05); }
.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.4rem; color: var(--black); }
.side-card-text { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; margin-bottom: 0.8rem; }
.side-card-link { font-size: var(--text-sm); font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 0.5rem; }

@media(max-width: 768px) {
  .side-card { flex-direction: column; }
  .side-card-img { width: 100%; height: 200px; }
  .side-card-body { width: 100%; padding: var(--space-md); }
}

/* =========================================
   PORTFOLIO GRID
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portfolio-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 1.2rem; opacity: 0; transition: var(--transition); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
@media(max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* =========================================
   CONTATO (Form + Mapa)
   ========================================= */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contato-form-box, .contato-info-box { background: var(--cream); padding: 2rem; border-radius: var(--radius-lg); }
.contato-form-box h3, .contato-info-box h3 { font-size: var(--h3); margin-bottom: 0.5rem; }
.form-group { margin-bottom: 1rem; }
.form-input { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-sm); background: var(--white); transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15); }
textarea.form-input { min-height: 100px; 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 1rem center; }
.mapa-container { margin-bottom: 1.5rem; border-radius: var(--radius-md); overflow: hidden; }
.contato-detalhes { display: flex; flex-direction: column; gap: 1rem; }
.contato-item strong { font-size: var(--text-sm); color: var(--black); }
.contato-item p { font-size: var(--text-sm); color: var(--gray-500); margin-top: 0.2rem; }
@media(max-width: 768px) { .contato-grid { grid-template-columns: 1fr; } }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.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: 1rem; }
.social-icons a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white); }
.social-icons a:hover { background: var(--gold); }
@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; 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; }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 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)
   ========================================= */
.inner-page-layout { display: flex; gap: 3rem; align-items: flex-start; }
.inner-page-img { width: 45%; }
.inner-page-img img { width: 100%; border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow); }
.inner-page-text { width: 55%; }
.inner-page-text h1 { font-size: var(--h2); margin-bottom: 1.2rem; }
.inner-page-text p { color: var(--gray-500); line-height: 1.8; margin-bottom: 1rem; }
.inner-page-text ul { color: var(--gray-500); line-height: 1.8; margin-bottom: 1rem; padding-left: 1.5rem; }
.inner-page-text h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .inner-page-layout { flex-direction: column; gap: 2rem; }
  .inner-page-img, .inner-page-text { width: 100%; }
}

/* =========================================
   MOBILE: Services & Blog grid
   ========================================= */
@media (max-width: 900px) {
  .hero-curved-overlay { width: 100%; border-radius: 0; border-right: none; background: rgba(20, 40, 29, 0.85); }
  .hero-content-box { margin-left: 0; }
}

/* =========================================
   MOBILE CAROUSEL (Services & Blog)
   ========================================= */
.mobile-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem; /* Espaço para a sombra e conforto */
    scrollbar-width: none; /* Esconde scrollbar no Firefox */
  }
  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-carousel > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin-bottom: 0 !important; /* Previne margin inferior dupla no carrossel */
  }
}

