/*
Theme Name: SpoolCraft
Theme URI: https://spoolcraft.com.br
Author: SpoolCraft
Description: Tema personalizado para a SpoolCraft — produtos personalizados em impressão 3D. Site institucional com portfólio de projetos.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: spoolcraft
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sc-bg);
  color: var(--sc-navy);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--sc-navy);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.sc-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.sc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--sc-border);
  position: sticky; top: 0; z-index: 100;
}
/* Keep the sticky header below the WP admin bar instead of under it (logged-in users only). */
body.admin-bar .sc-header { top: 46px; }
@media screen and (min-width: 783px) {
  body.admin-bar .sc-header { top: 32px; }
}
.sc-header__brand { display: flex; align-items: center; gap: 10px; }
.sc-header__brand svg { display: block; }
.sc-header__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.sc-header__wordmark strong { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--sc-navy); }
.sc-header__wordmark span { font-size: 9.5px; letter-spacing: 1.3px; color: #8A8378; text-transform: uppercase; }

.sc-nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 26px; height: 26px; background: none; border: none; padding: 0;
}
.sc-nav-toggle span { display: block; height: 2px; background: var(--sc-navy); border-radius: 2px; }

.sc-nav { display: none; }
/* wp_nav_menu() always wraps items in a <ul>, which would otherwise be
   the nav's only flex child (all <li>s stacking vertically as normal
   block content instead of lining up with the flex rules below).
   display:contents makes the <ul> transparent so its <li>s become the
   actual flex items, in both the mobile dropdown and the desktop row. */
.sc-nav > ul { display: contents; }
/* Scoped to below the desktop breakpoint so a lingering .is-open class
   (menu opened on a narrow window, then resized wider) can never override
   the desktop row layout further down — .is-open has higher specificity
   than the plain .sc-nav rule in the desktop media query. */
@media (max-width: 959px) {
  .sc-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--sc-border); box-shadow: 0 12px 24px rgba(18,59,92,0.08);
  }
  .sc-nav.is-open a {
    display: block; padding: 16px 20px; font-size: 15px; font-weight: 500; border-top: 1px solid var(--sc-border);
  }
}
.sc-header__cta { display: none; }

@media (min-width: 960px) {
  .sc-header { padding: 0 48px; height: 88px; }
  .sc-nav-toggle { display: none; }
  .sc-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 36px;
    background: none; border: none; box-shadow: none;
  }
  .sc-nav a { padding: 0; border: none; font-size: 15px; font-weight: 500; }
  .sc-nav a:hover { color: var(--sc-accent); }
  .sc-header__cta {
    display: inline-block; background: var(--sc-accent); color: #fff; font-size: 14px;
    font-weight: 600; padding: 12px 24px; border-radius: 999px;
  }
  .sc-header__cta:hover { filter: brightness(0.93); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sc-hero {
  padding: 48px 20px 56px; position: relative; overflow: hidden;
}
.sc-hero__glow {
  position: absolute; top: -100px; right: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,118,12,0.10) 0%, rgba(242,118,12,0) 70%);
  pointer-events: none;
}
.sc-hero__inner { position: relative; z-index: 1; }
.sc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(242,118,12,0.10);
  color: var(--sc-accent); font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.sc-hero h1 { font-size: 32px; line-height: 1.2; font-weight: 700; margin-bottom: 18px; }
.sc-hero__lead { font-size: 16px; line-height: 1.6; color: var(--sc-ink-soft); margin-bottom: 28px; max-width: 560px; }
.sc-hero__actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 320px; }
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: filter .15s ease, background .15s ease;
}
.sc-btn--primary { background: var(--sc-accent); color: #fff; }
.sc-btn--primary:hover { filter: brightness(0.93); }
.sc-btn--outline { background: transparent; color: var(--sc-navy); border-color: var(--sc-navy); }
.sc-btn--outline:hover { background: rgba(18,59,92,0.06); }
.sc-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.sc-btn--outline-light:hover { background: rgba(255,255,255,0.1); }

.sc-chips { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.sc-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.sc-chip svg { flex-shrink: 0; }

.sc-hero__visual { position: relative; height: 260px; max-width: 380px; }
.sc-hero__ph {
  position: absolute; border-radius: 20px; box-shadow: 0 16px 32px rgba(18,59,92,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.sc-hero__ph--a { top: 20px; left: 0; width: 220px; height: 220px; background: linear-gradient(135deg,#F8E4CE,#EFB27E); }
.sc-hero__ph--b { top: 0; right: 0; width: 120px; height: 120px; background: linear-gradient(135deg,#E2ECF2,#B7CCDC); }
.sc-hero__badge {
  position: absolute; bottom: 0; right: 10px; width: 88px; height: 80px; border-radius: 14px; background: #fff;
  box-shadow: 0 10px 20px rgba(18,59,92,0.12); display: flex; align-items: center; justify-content: center;
}
.sc-ph-icon { opacity: .55; }
.sc-ph-label { font-size: 12px; color: var(--sc-navy); opacity: .75; font-style: italic; }

@media (min-width: 960px) {
  .sc-hero { padding: 90px 48px 100px; }
  .sc-hero__inner { display: flex; align-items: center; gap: 64px; }
  .sc-hero__copy { flex: 1 1 0; max-width: 600px; }
  .sc-hero h1 { font-size: 48px; }
  .sc-hero__lead { font-size: 18px; }
  .sc-hero__actions { flex-direction: row; max-width: none; }
  .sc-chips { flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .sc-hero__visual { flex: 1 1 0; max-width: 560px; height: 440px; margin: 0; }
  .sc-hero__ph--a { top: 40px; left: 40px; width: 380px; height: 380px; }
  .sc-hero__ph--b { top: 0; right: 0; width: 210px; height: 210px; }
  .sc-hero__badge { width: 120px; height: 110px; right: 30px; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.sc-section { padding: 56px 20px; }
.sc-section--white { background: #fff; }
.sc-section--tint { background: var(--sc-bg-alt); }
.sc-section--navy { background: var(--sc-navy); text-align: center; }
.sc-section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sc-section__head .sc-eyebrow { margin-bottom: 10px; }
.sc-section__head h2 { font-size: 26px; margin-bottom: 12px; }
.sc-section__head p { font-size: 14.5px; color: var(--sc-ink-soft); line-height: 1.6; }

@media (min-width: 960px) {
  .sc-section { padding: 100px 48px; }
  .sc-section__head { margin-bottom: 56px; }
  .sc-section__head h2 { font-size: 36px; }
  .sc-section__head p { font-size: 16px; }
}

/* ==========================================================================
   Portfolio grid
   ========================================================================== */
.sc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .sc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px) { .sc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; } }

.sc-card {
  background: #fff; border: 1px solid var(--sc-border); border-radius: 16px; overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.sc-card:hover { box-shadow: 0 14px 30px rgba(18,59,92,0.14); transform: translateY(-3px); }
.sc-card__media {
  position: relative; height: 180px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; background-size: cover; background-position: center;
}
.sc-card__media.sc-tint-a { background: linear-gradient(135deg,#F8E4CE,#EFB27E); }
.sc-card__media.sc-tint-b { background: linear-gradient(135deg,#E2ECF2,#B7CCDC); }
.sc-card__tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); padding: 5px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
}
.sc-card__body { padding: 18px 20px; }
.sc-card__body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.sc-card__body a { font-size: 13px; font-weight: 600; color: var(--sc-accent); }
.sc-more { text-align: center; margin-top: 36px; }

@media (min-width: 960px) {
  .sc-card__media { height: 200px; }
  .sc-card__body { padding: 20px; }
  .sc-more { margin-top: 56px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.sc-about { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.sc-about__figure {
  width: 220px; height: 220px; border-radius: 50%; background: #fff;
  box-shadow: 0 16px 32px rgba(18,59,92,0.10); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sc-about__body { max-width: 560px; text-align: center; }
.sc-about__body h2 { font-size: 24px; margin-bottom: 16px; }
.sc-about__body > p { font-size: 15px; line-height: 1.7; color: var(--sc-ink-soft); margin-bottom: 24px; }
.sc-about__list { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.sc-about__list .sc-chip { font-size: 14.5px; }

@media (min-width: 960px) {
  .sc-about { flex-direction: row; text-align: left; gap: 72px; align-items: center; }
  .sc-about__figure { width: 360px; height: 360px; }
  .sc-about__body { text-align: left; max-width: 560px; }
  .sc-about__body h2 { font-size: 34px; max-width: 520px; }
  .sc-about__body > p { font-size: 16px; }
}

/* ==========================================================================
   Materials / services
   ========================================================================== */
.sc-materials { display: flex; flex-direction: column; gap: 20px; }
.sc-material {
  background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: 16px; padding: 28px 24px;
}
.sc-material__icon {
  width: 48px; height: 48px; border-radius: 13px; background: rgba(242,118,12,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.sc-material h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.sc-material p { font-size: 14px; line-height: 1.6; color: var(--sc-ink-soft); }

@media (min-width: 960px) {
  .sc-materials { flex-direction: row; gap: 32px; }
  .sc-material { flex: 1 1 0; padding: 36px 28px; }
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.sc-section--navy h2 { color: #fff; }
.sc-section--navy .sc-section__head p { color: rgba(255,255,255,0.75); }
.sc-cta__actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
@media (min-width: 960px) { .sc-cta__actions { flex-direction: row; max-width: none; justify-content: center; } }

.sc-contact-form { max-width: 560px; margin: 40px auto 0; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.sc-contact-form label { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.sc-contact-form input, .sc-contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: none; font-family: inherit; font-size: 14.5px;
}
.sc-contact-form textarea { min-height: 110px; resize: vertical; }
.sc-contact-form button { align-self: flex-start; }

/* ==========================================================================
   Footer
   ========================================================================== */
.sc-footer { background: var(--sc-navy-dark); padding: 40px 20px 24px; }
.sc-footer__grid { display: flex; flex-direction: column; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sc-footer__brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 10px; }
.sc-footer__grid p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.sc-footer__col h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.sc-footer__col a, .sc-footer__col div { font-size: 13.5px; color: rgba(255,255,255,0.65); }
.sc-footer__nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.sc-footer__nav a:hover { color: #fff; }
.sc-footer__contact div { margin-bottom: 8px; }
.sc-footer__social { display: flex; gap: 12px; }
.sc-footer__social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.sc-footer__bottom { padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.sc-footer__bottom span { font-size: 12px; color: rgba(255,255,255,0.5); }

@media (min-width: 960px) {
  .sc-footer { padding: 64px 48px 32px; }
  .sc-footer__grid { flex-direction: row; justify-content: space-between; gap: 48px; padding-bottom: 40px; }
  .sc-footer__brand { font-size: 20px; }
  .sc-footer__bottom { flex-direction: row; justify-content: space-between; padding-top: 24px; }
  .sc-footer__bottom span { font-size: 13px; }
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.sc-wa-fab {
  position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28); z-index: 999; transition: transform .15s ease;
}
.sc-wa-fab:hover { transform: scale(1.07); }
@media (min-width: 960px) {
  .sc-wa-fab { right: 32px; bottom: 32px; width: 64px; height: 64px; }
}

/* ==========================================================================
   WordPress core alignments (kept minimal, brochure site has no blog feed by default)
   ========================================================================== */
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
