/*
Theme Name: Ivan Projetos (Preto & Dourado)
Theme URI: https://www.instagram.com/ivan_fernamdes/
Author: Ivan Fernandes
Author URI: https://www.instagram.com/ivan_fernamdes/
Description: Tema moderno para e-commerce de projetos arquitetônicos (digital), com paleta luxuosa preto/dourado/branco e layout tipo vitrine.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ivan-projetos
*/

:root{
  --bg:#0b0b10;
  --panel:#0f1018;
  --panel2:#121321;
  --text:#f5f6f8;
  --muted:#b7bcc7;
  --gold:#D4AF37;
  --gold2:#b98a2f;
  --white:#ffffff;
  --line:rgba(212,175,55,.22);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(212,175,55,.20), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(212,175,55,.12), transparent 55%),
    linear-gradient(180deg, #06060a 0%, var(--bg) 55%, #07070c 100%);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 18px}
.row{display:flex;gap:16px;flex-wrap:wrap}
.spacer{height:28px}

.topbar{
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(10,10,14,.55);
  backdrop-filter: blur(10px);
}
.topbar .container{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 18px;
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(212,175,55,.18), rgba(0,0,0,.1));
  font-size:13px;color:var(--text);
}
.badge i{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(212,175,55,.12)}

.header{
  position:sticky;top:0;z-index:50;
  background:rgba(9,9,12,.78);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header .container{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;
}
.logo{
  display:flex;align-items:center;gap:10px;
  letter-spacing:.3px;
}
.logo-mark{
  width:36px;height:36px;border-radius:12px;
  background:linear-gradient(135deg, rgba(212,175,55,.95), rgba(185,138,47,.75));
  box-shadow:0 12px 30px rgba(212,175,55,.20);
}
.logo strong{font-size:15px}
.logo span{display:block;font-size:12px;color:var(--muted)}
.nav{
  display:flex;align-items:center;gap:14px;
}
.nav a{
  padding:10px 12px;border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color:rgba(212,175,55,.22);
  background:rgba(212,175,55,.06);
}
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:11px 14px;border-radius:14px;
  border:1px solid rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.22), rgba(0,0,0,.10));
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  font-weight:700;
}
.cta:hover{transform: translateY(-1px)}
.cta:active{transform: translateY(0px)}
.cta small{font-weight:600;color:rgba(255,255,255,.85)}

.hero{
  padding:52px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
}
.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.06));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{padding:22px}
.kicker{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 10px;border-radius:999px;
  background:rgba(212,175,55,.08);
  border:1px solid rgba(212,175,55,.25);
  color:rgba(255,255,255,.92);
  font-size:13px;
}
.kicker b{color:var(--gold)}
.h1{
  font-size:44px;
  line-height:1.06;
  margin:14px 0 12px;
  letter-spacing:-.6px;
}
.p{color:var(--muted);font-size:16px;line-height:1.6;margin:0 0 18px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:12px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
}
.btn:hover{border-color:rgba(212,175,55,.22); background:rgba(212,175,55,.06)}
.btn-primary{
  border-color:rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.22), rgba(0,0,0,.10));
}
.meta{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}
.pill{
  padding:12px 12px;border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(10,10,14,.45);
}
.pill strong{display:block;font-size:13px;color:rgba(255,255,255,.88)}
.pill span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.video{
  position:relative;
  aspect-ratio: 16/9;
  background: radial-gradient(600px 350px at 30% 0%, rgba(212,175,55,.18), transparent 55%),
              rgba(255,255,255,.03);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.section{
  padding:24px 0;
}
.section h2{
  margin:0 0 10px;
  font-size:22px;
  letter-spacing:-.2px;
}
.section p{margin:0;color:var(--muted);line-height:1.6}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.product{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.06));
  overflow:hidden;
  box-shadow: 0 16px 55px rgba(0,0,0,.45);
}
.thumb{
  height:170px;
  background:
    radial-gradient(550px 250px at 20% 0%, rgba(212,175,55,.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;align-items:flex-end;justify-content:space-between;
  padding:14px;
}
.tag{
  font-size:12px;color:rgba(255,255,255,.92);
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(212,175,55,.28);
  background:rgba(212,175,55,.10);
}
.product .body{padding:14px}
.product h3{margin:0 0 8px;font-size:16px}
.spec{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.price-row{
  margin-top:12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.price{
  font-weight:900;
  color:var(--gold);
  letter-spacing:.2px;
}
.link{
  font-weight:800;
  border:1px solid rgba(255,255,255,.10);
  padding:9px 12px;border-radius:14px;
  background:rgba(255,255,255,.03);
}
.link:hover{border-color:rgba(212,175,55,.22); background:rgba(212,175,55,.06)}

.split{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:16px;
}
.about-img{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background:rgba(255,255,255,.03);
}
.about-img img{width:100%;height:100%;object-fit:cover}
.list{margin:10px 0 0;padding:0;list-style:none;color:var(--muted);line-height:1.65}
.list li{padding-left:18px;position:relative;margin:6px 0}
.list li:before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:var(--gold);
  position:absolute;left:0;top:.55em;
  box-shadow:0 0 0 4px rgba(212,175,55,.12);
}

.footer{
  padding:26px 0 40px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}
.footer a{color:rgba(255,255,255,.92)}
.footer a:hover{color:var(--gold)}
.footer .cols{
  display:grid;grid-template-columns: 1.3fr .7fr .7fr;
  gap:16px;
}
.small{font-size:12px;color:rgba(255,255,255,.65);margin-top:10px}

.notice{
  padding:12px 14px;border-radius:16px;
  border:1px solid rgba(212,175,55,.24);
  background:rgba(212,175,55,.07);
  color:rgba(255,255,255,.85);
  font-size:13px;
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .h1{font-size:36px}
  .grid{grid-template-columns: repeat(2,1fr)}
  .split{grid-template-columns:1fr}
  .footer .cols{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
  .meta{grid-template-columns:1fr}
  .nav{display:none}
}


/* WooCommerce */
.woocommerce .woocommerce-breadcrumb{color:var(--muted)}
.woocommerce .woocommerce-result-count{color:var(--muted)}
.woocommerce .woocommerce-ordering select{
  background:rgba(255,255,255,.04);
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
  padding:10px 12px;border-radius:14px;
}
.woocommerce ul.products{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 980px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 560px){.woocommerce ul.products{grid-template-columns:1fr}}

.woocommerce ul.products li.product{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.06));
  overflow:hidden;
  box-shadow: 0 16px 55px rgba(0,0,0,.45);
  padding:0!important;
}
.woocommerce ul.products li.product a{display:block}
.woocommerce ul.products li.product a img{
  width:100%;
  height:170px;
  object-fit:cover;
  margin:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(550px 250px at 20% 0%, rgba(212,175,55,.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin:0;
  padding:14px 14px 6px;
  font-size:16px;
  color:var(--text);
}
.woocommerce ul.products li.product .price{
  padding:0 14px 12px;
  color:var(--gold);
  font-weight:900;
}
.woocommerce ul.products li.product .button{
  margin:0 14px 14px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.22), rgba(0,0,0,.10));
  color:var(--text)!important;
  font-weight:800;
}
.woocommerce a.button:hover{filter:brightness(1.05)}
.woocommerce div.product{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.06));
  box-shadow: var(--shadow);
  padding:18px;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.woocommerce div.product .summary .price{
  color:var(--gold);
  font-size:22px;
  font-weight:900;
}
.woocommerce div.product form.cart .button{
  padding:12px 14px;border-radius:14px;
  border:1px solid rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.22), rgba(0,0,0,.10));
  font-weight:900;
}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error{
  border-radius:16px;
  border:1px solid rgba(212,175,55,.24);
  background:rgba(212,175,55,.07);
  color:rgba(255,255,255,.88);
}
.woocommerce table.shop_table{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}
.woocommerce input, .woocommerce textarea, .woocommerce select{
  background:rgba(255,255,255,.04);
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
  padding:10px 12px;
  border-radius:14px;
}


/* Produto: carrossel de imagens (galeria WooCommerce) */
.woocommerce div.product .woocommerce-product-gallery{
  position:relative;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper.ivan-carousel{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom:6px;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper.ivan-carousel::-webkit-scrollbar{
  height:10px;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper.ivan-carousel::-webkit-scrollbar-thumb{
  background:rgba(212,175,55,.22);
  border-radius:999px;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper.ivan-carousel .woocommerce-product-gallery__image{
  min-width:100%;
  scroll-snap-align:start;
}
.ivan-carousel-nav{
  position:absolute;
  inset:auto 12px 12px auto;
  display:flex;
  gap:10px;
  z-index:5;
}
.ivan-carousel-btn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.28);
  background:rgba(0,0,0,.35);
  color:var(--text);
  font-weight:900;
  font-size:20px;
  cursor:pointer;
  backdrop-filter: blur(8px);
}
.ivan-carousel-btn:hover{background:rgba(212,175,55,.10)}


/* Mobile menu + overlay */
.ivan-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  opacity:0;pointer-events:none;
  transition: opacity .25s ease;
  z-index:60;
}
.ivan-overlay.open{opacity:1;pointer-events:auto}
.ivan-mobile-menu{
  position:fixed;
  top:0;right:0;bottom:0;
  width:min(420px, 92vw);
  transform: translateX(105%);
  transition: transform .28s ease;
  z-index:70;
  background:rgba(9,9,12,.92);
  border-left:1px solid rgba(255,255,255,.08);
  overflow:auto;
}
.ivan-mobile-menu.open{transform: translateX(0)}
html.ivan-lock, html.ivan-lock body{overflow:hidden}

/* Header scrolled micro-interaction */
.header.is-scrolled{border-bottom-color:rgba(212,175,55,.22)}
.header.is-scrolled .container{padding-top:10px;padding-bottom:10px}

/* Reveal animations */
[data-reveal]{opacity:0;transform: translateY(16px);transition: opacity .55s ease, transform .55s ease}
[data-reveal].is-visible{opacity:1;transform: translateY(0)}

/* Improve tap targets and prevent mobile overflow */
body{overflow-x:hidden}
.btn, .cta, .badge{touch-action:manipulation}
.nav a{white-space:nowrap}

/* Better hero typography on small screens */
@media (max-width: 420px){
  .h1{font-size:30px}
  .card-inner{padding:18px}
  .btn{width:100%;justify-content:center}
  .cta{width:100%}
  .topbar .container{gap:10px}
}
