/*
 * SAMRI Creative Website Stylesheet
 *
 * Design com variáveis, layout responsivo e drawer mobile.
 * Inclui:
 * - Logo maior com fundo sutil, padding e shadow
 * - Hover do menu com degradê e sublinhado animado
 * - Ajustes de responsividade (sem cortes no mobile)
 * - Drawer acessível no mobile
 */

/* ================= Root variables ================= */
:root {
  --color-purple: #6a0dad;
  --color-pink: #ff007f;
  --color-green: #39ff14;
  --color-blue: #13c7ec;
  --color-light: #f2f1eb;
  --color-dark: #100f0d;

  --grad-main: linear-gradient(90deg, var(--color-purple), var(--color-pink));
  --grad-alt:  linear-gradient(90deg, var(--color-blue), var(--color-green));

  --container-max-width: 1200px;
  --transition: all 0.3s ease;
}

/* ================= Global resets ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;          /* evita corte lateral no mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ================= Container ================= */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* ================= Header ================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 5%;
  gap: 1rem;
}

/* Logo maior + fundo sutil */
header .logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; }
header .logo img{
  height: 68px;               /* desktop */
  width: auto;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: box-shadow .25s ease, transform .2s ease;
}
@media (hover:hover){
  header .logo:hover img{
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  }
}
@media (max-width: 1024px){
  header .logo img{ height: 58px; padding: 5px 9px; }
}
@media (max-width: 600px){
  header .logo img{ height: 46px; padding: 4px 8px; border-radius: 10px; }
}

/* Navegação desktop base */
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a {
  font-weight: 600;
  padding: .25rem 0;
  display: inline-block;
  color: var(--color-dark);
  transition: var(--transition);
}

/* CTA no header */
.nav-cta {
  margin-left: 1rem;
  padding: 0.6rem 1.2rem;
  background-image: var(--grad-alt);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(0.9); }

/* Idioma (desktop) */
.language-switch { margin-left: 1rem; font-size: .95rem; }
.language-switch a { color: var(--color-dark); margin-left: .5rem; font-weight: 600; transition: var(--transition); }
.language-switch a:hover { color: var(--color-purple); }
.language-switch a.active { text-decoration: underline; }

/* ===== Hover do menu com degradê + sublinhado animado (desktop) ===== */
@media (min-width: 901px){
  .primary-nav a, header nav ul li a {
    position: relative;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
  }
  .primary-nav a::after, header nav ul li a::after {
    content: "";
    position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px;
    background: var(--grad-main);
    transition: width 0.25s ease;
  }
  .primary-nav a:hover, header nav ul li a:hover {
    color: transparent;
    background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text;
  }
  .primary-nav a:hover::after, header nav ul li a:hover::after { width: 100%; }
}

/* ================= Hero ================= */
.hero {
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}
.hero::before{
  content:""; position:absolute; inset:0; background: rgba(0,0,0,0.40); z-index:0;
}
.hero .hero-content{
  position: relative; z-index:1; max-width: 800px; margin: 0 auto;
  display:flex; flex-direction:column; gap:1.5rem;
}
.hero h1{ font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.2; }
.hero p { font-size: clamp(1rem, 2.6vw, 1.25rem); margin-bottom: 1.5rem; }

/* ================= Botões genéricos ================= */
.btn{ display:inline-block; padding:.8rem 1.6rem; border-radius:30px; font-weight:700; text-align:center; cursor:pointer; transition:var(--transition); }
.btn-primary{ background-image: var(--grad-main); color:#fff; }
.btn-secondary{ background-image: var(--grad-alt);  color:#fff; }
.btn-primary:hover, .btn-secondary:hover{ filter: brightness(0.9); }

/* ================= Services / About Values ================= */
.services{ background-color: var(--color-light); text-align:center; padding: 4rem 1rem; }
.services h2{ font-size: 2rem; margin-bottom: 2rem; }
.services p{ text-align: center; }

.service-cards{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.service-card{
  background:#fff; border-radius:10px; padding:2rem 1.5rem;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  transition: var(--transition);
}
.service-card:hover{ transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,.1); }
.service-card .icon{
  width:60px; height:60px; border-radius:50%; background-image: var(--grad-main);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.5rem; font-weight:700;
}
.service-card h3{ font-size:1.25rem; margin-bottom:.5rem; }
.service-card p{ font-size:.95rem; color:#333; }

/* “Nossos Valores” / Bullets com check */
.about{ background:#fff; padding: 4rem 1rem; }
.about h2{ text-align:center; margin-bottom:2rem; font-size:2rem; }
.about-content{ display:flex; flex-wrap:wrap; gap:2rem; align-items:center; justify-content:center; }
.about-text{ flex:1 1 300px; min-width:300px; }

.about-values{
  flex:1 1 300px; min-width:300px;
  background-color: var(--color-light);
  border-radius: 10px; padding: 1.5rem;
  margin: 1.5rem auto;                /* centraliza quando usado em outras páginas */
  max-width: 640px;
}
.about-values h3{ margin-bottom: 1rem; }
.value-item{ display:flex; align-items:flex-start; gap:.75rem; margin-bottom:1rem; }
.value-item .check{
  width: 24px; height: 24px; border-radius: 50%;
  background-image: var(--grad-main);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:.9rem;
}
.value-item p{ margin:0; font-size:.95rem; color:#333; }

/* ================= Portfolio ================= */
.portfolio{ background-color: var(--color-light); padding:4rem 1rem; text-align:center; }
.portfolio h2{ font-size:2rem; margin-bottom:2rem; }
.portfolio-items{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }
.portfolio-item{
  background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.05); transition:var(--transition);
}
.portfolio-item:hover{ transform: translateY(-4px); box-shadow:0 8px 16px rgba(0,0,0,.1); }
.portfolio-item img{ width:100%; height:180px; object-fit:cover; }
.portfolio-item .portfolio-content{ padding:1rem; text-align:left; }
.portfolio-item h3{ margin-bottom:.5rem; font-size:1.1rem; }
.portfolio-item p{ font-size:.9rem; color:#333; }

/* ================= Blog ================= */
.blog{ background:#fff; padding:4rem 1rem; text-align:center; }
.blog h2{ font-size:2rem; margin-bottom:2rem; }
.blog-posts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }
.blog-post{
  background: var(--color-light); border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.05); transition:var(--transition);
}
.blog-post:hover{ transform: translateY(-4px); box-shadow:0 8px 16px rgba(0,0,0,.1); }
.blog-post img{ width:100%; height:180px; object-fit:cover; }
.blog-post .blog-content{ padding:1rem; text-align:left; }
.blog-post h3{ margin-bottom:.5rem; font-size:1.1rem; }
.blog-post p{ font-size:.9rem; color:#333; }

/* ================= Contact ================= */
.contact-section{ background: var(--color-light); padding:4rem 1rem; }
.contact-container{ display:flex; flex-wrap:wrap; gap:2rem; justify-content:center; }
.contact-form{
  flex:1 1 360px; background:#fff; padding:2rem; border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.contact-form h3{ margin-bottom:1.5rem; }
.contact-form .form-group{ margin-bottom:1rem; }
.contact-form label{ display:block; margin-bottom:.5rem; font-weight:600; font-size:.9rem; }
.contact-form input, .contact-form textarea{
  width:100%; padding:.75rem; border:1px solid #ddd; border-radius:5px; font-size:.9rem;
}
.contact-form textarea{ height:120px; resize:vertical; }
.contact-form button{
  margin-top:1rem; background-image: var(--grad-main); border:none; color:#fff;
  padding:.8rem 1.6rem; font-weight:700; border-radius:30px; cursor:pointer; transition:var(--transition);
}
.contact-form button:hover{ filter:brightness(0.9); }

.contact-info{
  flex:1 1 300px; background:#fff; padding:2rem; border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.05); display:flex; flex-direction:column; gap:1rem;
}
.contact-info h3{ margin-bottom:.5rem; }
.contact-info p{ font-size:.95rem; }
.contact-info a{ color: var(--color-purple); word-break: break-word; }

/* ================= CTA Section ================= */
.cta-section{
  padding:4rem 1rem; background-image: var(--grad-main);
  color:#fff; text-align:center;
}
.cta-section h2{ font-size:2rem; margin-bottom:1rem; }
.cta-section p{ font-size:1.1rem; margin-bottom:1.5rem; }
.cta-section .btn{
  background:#fff; color: var(--color-purple); font-weight:700;
  padding:.8rem 1.6rem; border-radius:30px; transition: var(--transition);
}
.cta-section .btn:hover{ background: var(--color-light); }

/* ================= Footer ================= */
footer{
  background-color: var(--color-dark); color: var(--color-light);
  padding: 3rem 1rem; margin-top: auto;
}
footer .footer-container{
  max-width: var(--container-max-width); margin:0 auto;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:2rem;
}
footer h4{ margin-bottom:1rem; font-size:1.1rem; }
footer ul{ list-style:none; font-size:.95rem; }
footer ul li{ margin-bottom:.5rem; }
footer a{ color: var(--color-light); transition: var(--transition); }
footer a:hover{ color: var(--color-green); }
footer .social-icons{ display:flex; gap:.5rem; }
footer .social-icons a{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; background: var(--color-purple);
  color:#fff; font-size:1rem; transition: var(--transition);
}
footer .social-icons a:hover{ background: var(--color-pink); }

/* ================= WhatsApp Floating ================= */
.whatsapp-button{
  position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px;
  background: var(--color-green); border-radius: 50%;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.3rem;
  z-index: 100; box-shadow: 0 4px 8px rgba(0,0,0,.2); transition: var(--transition);
}
.whatsapp-button:hover{ filter: brightness(0.9); }
@media (max-width: 600px){ .whatsapp-button{ right:16px; bottom:16px; } }

/* ================= Responsive tweaks ================= */
@media (max-width: 768px){
  nav ul{ gap:1rem; }
  .nav-cta{ padding:.5rem 1rem; }
}

/* ================= Drawer (mobile) ================= */
.menu-toggle{
  display:none; width:44px;height:44px;border:0;background:transparent;cursor:pointer;
}
.menu-toggle .bar{ display:block; width:24px; height:2px; background:#111; margin:5px auto; transition: transform .25s, opacity .25s; }

/* Drawer base */
.drawer{
  position:fixed; top:0; right:-86vw; width:min(86vw,420px); height:100dvh;
  background:#fff; box-shadow:-10px 0 30px rgba(0,0,0,.15);
  padding:1rem 1.25rem; z-index:1001; transition:right .28s ease; overflow:auto;
}
.drawer[aria-hidden="false"]{ right:0; }
.drawer-close{
  position:absolute; top:.25rem; right:.5rem; border:0; background:transparent;
  font-size:2rem; line-height:1; cursor:pointer;
}
.drawer-nav ul{ list-style:none; margin:2.5rem 0 1rem; padding:0; display:flex; flex-direction:column; gap:.9rem; }
.drawer-nav a{ text-decoration:none; color:#111; }
.drawer-extra{ margin-top:1rem; }

/* PT/EN dentro do drawer (mobile) */
@media (max-width: 900px){
  .drawer .language-switch{
    display:flex !important; justify-content:center; align-items:center;
    gap:.5rem; margin:.25rem 0 .25rem; font-weight:600;
  }
  .drawer .language-switch a{ text-decoration:none; color:#111; padding:.25rem .4rem; border-radius:6px; }
  .drawer .language-switch a.active{ background:#f2f2f2; }
}

/* Backdrop */
.drawer-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:1000; }
body.drawer-open{ overflow:hidden; }
body.drawer-open .drawer-backdrop{ display:block; }
body:not(.drawer-open) .drawer-backdrop{ display:none; }

/* Desktop vs Mobile */
@media (max-width: 900px){
  .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  /* Esconde navegação/idioma/CTA no header; versões ficam no drawer */
  .primary-nav, .language-switch, .nav-cta{ display:none; }
}
@media (min-width: 901px){
  .drawer, .drawer-backdrop { display:none !important; }
}

/* Ícone vira X quando aberto */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
