/* =========================================================
   CANTINHO DE COLORIR
   ========================================================= */

:root{
  --paper:#fff9ef;
  --ink:#26332a;
  --muted:#6c746f;
  --gold:#efbd3d;
  --leaf:#719b72;
  --sky:#8bc5d1;
  --coral:#df8f7b;
  --berry:#b96480;
  --lavender:#a990c2;
  --white:#fff;
  --line:rgba(38,51,42,.13);
  --shadow:0 22px 65px rgba(63,47,29,.12);
  --serif:"Fraunces",Georgia,serif;
  --sans:"DM Sans",system-ui,sans-serif;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 8%,rgba(239,189,61,.14),transparent 27rem),
    radial-gradient(circle at 88% 24%,rgba(139,197,209,.13),transparent 29rem),
    var(--paper);
  overflow-x:hidden;
}

a{color:inherit}
button,input{font:inherit}
img{max-width:100%;display:block}

.paper-grain{
  position:fixed;
  inset:0;
  z-index:999;
  pointer-events:none;
  opacity:.16;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.paint-orb{
  position:fixed;
  z-index:-1;
  width:24rem;
  height:24rem;
  border-radius:50%;
  filter:blur(60px);
  opacity:.09;
}

.orb-one{left:-9rem;top:28vh;background:var(--gold)}
.orb-two{right:-8rem;bottom:10vh;background:var(--lavender)}

.site-header{
  width:min(1180px,calc(100% - 36px));
  margin:18px auto 0;
  padding:11px 14px 11px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:sticky;
  top:12px;
  z-index:90;
  border-radius:22px;
  background:rgba(255,249,239,.86);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 10px 30px rgba(64,47,25,.08);
}

.brand{
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
}

.brand-mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:48% 52% 56% 44% / 42% 42% 58% 58%;
  background:var(--gold);
  color:#fff;
  font-family:var(--serif);
  font-weight:700;
  transform:rotate(-4deg);
}

.brand strong,.brand small{display:block}
.brand strong{font-family:var(--serif)}
.brand small{font-size:.72rem;color:var(--muted)}

.main-nav{
  display:flex;
  align-items:center;
  gap:7px;
}

.main-nav a{
  text-decoration:none;
  padding:9px 11px;
  border-radius:12px;
  color:#465249;
  font-size:.86rem;
}

.main-nav a:hover,
.main-nav a.active{
  background:rgba(113,155,114,.11);
  color:var(--ink);
}

.menu-toggle{
  display:none;
  border:0;
  border-radius:12px;
  background:var(--ink);
  color:#fff;
  padding:9px 12px;
}

.color-hero{
  width:min(1180px,calc(100% - 36px));
  min-height:72vh;
  margin:0 auto;
  padding:78px 0 90px;
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:65px;
  align-items:center;
}

.eyebrow{
  text-transform:uppercase;
  font-size:.72rem;
  letter-spacing:.15em;
  font-weight:800;
  color:#6b766e;
}

.color-hero h1,
.section-heading h2,
.creative-band h2,
.parent-note h2{
  font-family:var(--serif);
  line-height:1.04;
  letter-spacing:-.035em;
}

.color-hero h1{
  margin:.25em 0;
  font-size:clamp(3.2rem,7vw,6.2rem);
}

.color-hero h1 em{
  color:var(--berry);
  font-style:normal;
}

.color-hero p{
  max-width:650px;
  color:var(--muted);
  font-size:1.08rem;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:27px 0;
}

.btn{
  border:0;
  border-radius:999px;
  min-height:48px;
  padding:13px 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  transition:.22s ease;
}

.btn:hover{transform:translateY(-2px)}

.btn-primary{
  background:var(--ink);
  color:#fff;
  box-shadow:0 10px 25px rgba(38,51,42,.15);
}

.btn-secondary{
  background:rgba(255,255,255,.64);
  border:1px solid var(--line);
}

.hero-tip{
  display:flex;
  gap:11px;
  align-items:flex-start;
  max-width:600px;
  padding:14px 16px;
  border-radius:17px;
  background:rgba(255,255,255,.5);
  border:1px solid rgba(255,255,255,.72);
}

.hero-tip span{font-size:1.4rem}
.hero-tip p{margin:0;font-size:.84rem}

.hero-art{
  min-height:520px;
  position:relative;
  border-radius:48% 52% 45% 55% / 42% 45% 55% 58%;
  background:
    radial-gradient(circle at 30% 22%,rgba(239,189,61,.35),transparent 30%),
    radial-gradient(circle at 78% 34%,rgba(139,197,209,.36),transparent 31%),
    radial-gradient(circle at 53% 78%,rgba(223,143,123,.27),transparent 29%),
    rgba(255,255,255,.35);
  box-shadow:var(--shadow);
}

.paper-sheet{
  position:absolute;
  width:190px;
  height:245px;
  background:#fffef9;
  border-radius:10px;
  border:1px solid rgba(38,51,42,.09);
  box-shadow:0 18px 35px rgba(43,32,20,.14);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.paper-sheet span{font-size:4rem;filter:grayscale(1)}
.paper-sheet strong{font-family:var(--serif);margin-top:14px}

.sheet-a{left:13%;top:18%;transform:rotate(-8deg)}
.sheet-b{left:42%;top:27%;transform:rotate(5deg)}
.sheet-c{right:6%;top:13%;transform:rotate(9deg)}

.pencil{
  position:absolute;
  width:13px;
  height:180px;
  border-radius:7px 7px 3px 3px;
  transform-origin:center;
  box-shadow:0 10px 20px rgba(0,0,0,.12);
}

.pencil:after{
  content:"";
  position:absolute;
  left:0;
  bottom:-24px;
  border-left:6.5px solid transparent;
  border-right:6.5px solid transparent;
  border-top:25px solid #e8d2ad;
}

.pencil-yellow{background:#e8b338;left:18%;bottom:5%;transform:rotate(62deg)}
.pencil-pink{background:#d98191;right:22%;bottom:6%;transform:rotate(35deg)}
.pencil-blue{background:#76adbc;right:6%;bottom:18%;transform:rotate(-29deg)}

.coloring-section,
.parent-note{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:90px 0;
}

.section-heading{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:45px;
  align-items:end;
  margin-bottom:30px;
}

.section-heading h2{
  margin:.25em 0 0;
  font-size:clamp(2.4rem,4.6vw,4.6rem);
}

.section-heading>p{
  color:var(--muted);
}

.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:28px;
}

.filter-button{
  border:1px solid var(--line);
  background:rgba(255,255,255,.58);
  color:var(--ink);
  padding:9px 13px;
  border-radius:999px;
  cursor:pointer;
}

.filter-button.active{
  background:var(--ink);
  color:#fff;
}

.coloring-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.coloring-card{
  border-radius:25px;
  overflow:hidden;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 14px 38px rgba(60,45,28,.08);
  transition:.25s ease;
}

.coloring-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 48px rgba(60,45,28,.12);
}

.coloring-preview{
  aspect-ratio:4/5.3;
  position:relative;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.coloring-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
  background:#fff;
}

.preview-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  text-align:center;
  padding:30px;
  color:#9a9f9b;
  background:
    linear-gradient(90deg,rgba(0,0,0,.025) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(rgba(0,0,0,.025) 1px,transparent 1px) 0 0/24px 24px,
    #fff;
}

.preview-placeholder span{
  font-size:3rem;
  filter:grayscale(1);
}

.preview-placeholder small{
  display:block;
  margin-top:8px;
}

.card-body{
  padding:20px;
}

.card-book{
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#778077;
}

.card-body h3{
  font-family:var(--serif);
  margin:7px 0;
  font-size:1.45rem;
}

.card-body p{
  min-height:3em;
  color:var(--muted);
  font-size:.86rem;
}

.card-actions{
  display:flex;
  gap:8px;
  margin-top:15px;
}

.card-actions .btn{
  flex:1;
  min-height:43px;
  padding:10px 14px;
  font-size:.8rem;
}

.creative-band{
  width:min(1180px,calc(100% - 36px));
  margin:20px auto;
  padding:52px;
  border-radius:32px;
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:55px;
  background:#293a31;
  color:#fff;
  box-shadow:var(--shadow);
}

.creative-band .eyebrow{color:#c7d4c9}
.creative-band h2{font-size:clamp(2.1rem,4vw,3.8rem)}
.creative-band p{color:#c4cec8}

.creative-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.creative-cards article{
  min-height:175px;
  padding:20px;
  border-radius:21px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
}

.creative-cards span{
  display:block;
  color:#e3c46d;
  font-family:var(--serif);
  font-size:1.6rem;
}

.creative-cards strong,
.creative-cards small{display:block}

.creative-cards strong{margin-top:35px}
.creative-cards small{color:#c0cac3}

.parent-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
}

.parent-note h2{
  margin:.25em 0;
  font-size:clamp(2rem,4vw,3.7rem);
}

.parent-note p{
  max-width:740px;
  color:var(--muted);
}

.image-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:300;
  padding:20px;
  overflow-y:auto;
  background:rgba(28,37,31,.53);
  backdrop-filter:blur(5px);
}

.image-modal.open{
  display:grid;
  place-items:center;
}

.modal-dialog{
  width:min(1000px,100%);
  min-height:580px;
  display:grid;
  grid-template-columns:1fr .8fr;
  position:relative;
  border-radius:28px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:0 32px 100px rgba(0,0,0,.25);
}

.close-button{
  position:absolute;
  right:17px;
  top:17px;
  z-index:5;
  width:43px;
  height:43px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  font-size:1.5rem;
}

.modal-preview{
  display:grid;
  place-items:center;
  padding:26px;
  background:#eee8dd;
}

.modal-preview img{
  max-height:72vh;
  background:#fff;
  box-shadow:0 14px 35px rgba(0,0,0,.13);
}

.modal-info{
  padding:52px 38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.modal-info h2{
  font-family:var(--serif);
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.06;
  margin:.3em 0;
}

.modal-info p,
.modal-info small{
  color:var(--muted);
}

.modal-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:20px 0 12px;
}

.site-footer{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:42px 0 55px;
  display:grid;
  grid-template-columns:1fr 1.15fr auto;
  gap:30px;
  align-items:start;
}

.site-footer strong,
.site-footer span{display:block}

.site-footer span,
.site-footer small{
  color:var(--muted);
  font-size:.78rem;
}

.footer-contact{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.footer-contact a{
  width:fit-content;
  color:var(--muted);
  text-decoration:none;
  font-size:.83rem;
}

.footer-links{
  display:flex;
  gap:13px;
  flex-wrap:wrap;
}

.footer-links a{
  font-size:.82rem;
}

.footer-copy{
  grid-column:1/-1;
  border-top:1px solid var(--line);
  padding-top:17px;
}

@media(max-width:980px){
  .menu-toggle{display:block}
  .main-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:68px;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    background:var(--paper);
    border-radius:18px;
    box-shadow:var(--shadow);
  }
  .main-nav.open{display:flex}

  .color-hero{
    grid-template-columns:1fr;
    gap:25px;
  }

  .hero-art{
    min-height:500px;
  }

  .section-heading{
    grid-template-columns:1fr;
    gap:14px;
  }

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

  .creative-band{
    grid-template-columns:1fr;
  }

  .modal-dialog{
    grid-template-columns:1fr;
  }

  .modal-preview{
    min-height:400px;
  }
}

@media(max-width:680px){
  .site-header,
  .color-hero,
  .coloring-section,
  .creative-band,
  .parent-note,
  .site-footer{
    width:min(100% - 22px,1180px);
  }

  .brand small{display:none}

  .color-hero{
    padding-top:55px;
  }

  .color-hero h1{
    font-size:clamp(3rem,15vw,4.6rem);
  }

  .hero-art{
    min-height:380px;
  }

  .paper-sheet{
    width:140px;
    height:190px;
  }

  .sheet-a{left:5%}
  .sheet-b{left:35%}
  .sheet-c{right:1%}

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

  .creative-band{
    padding:30px;
  }

  .creative-cards{
    grid-template-columns:1fr;
  }

  .creative-cards article{
    min-height:120px;
  }

  .creative-cards strong{
    margin-top:14px;
  }

  .parent-note{
    flex-direction:column;
    align-items:flex-start;
  }

  .modal-info{
    padding:35px 23px;
  }

  .site-footer{
    grid-template-columns:1fr;
  }

  .footer-copy{
    grid-column:1;
  }
}

@media print{
  body *{visibility:hidden!important}
  #modalImage,#modalImage *{visibility:visible!important}
  #modalImage{
    position:absolute;
    inset:0;
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    background:#fff;
    margin:auto;
  }
  @page{
    size:A4;
    margin:8mm;
  }
}
